| /freebsd-10-stable/sys/kern/ |
| D | subr_uio.c | 70 static int uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault); 101 struct uio uio; in physcopyin() local 106 uio.uio_iov = iov; in physcopyin() 107 uio.uio_iovcnt = 1; in physcopyin() 108 uio.uio_offset = 0; in physcopyin() 109 uio.uio_resid = len; in physcopyin() 110 uio.uio_segflg = UIO_SYSSPACE; in physcopyin() 111 uio.uio_rw = UIO_WRITE; in physcopyin() 114 return (uiomove_fromphys(m, dst & PAGE_MASK, len, &uio)); in physcopyin() 122 struct uio uio; in physcopyout() local [all …]
|
| D | kern_physio.c | 39 physio(struct cdev *dev, struct uio *uio, int ioflag) in physio() argument 67 (uio->uio_resid > dev->si_iosize_max || uio->uio_resid > MAXPHYS || in physio() 68 uio->uio_iovcnt > 1)) { in physio() 72 if (uio->uio_resid > dev->si_iosize_max) in physio() 75 uio->uio_resid, dev->si_iosize_max); in physio() 76 if (uio->uio_resid > MAXPHYS) in physio() 79 uio->uio_resid, MAXPHYS); in physio() 80 if (uio->uio_iovcnt > 1) in physio() 83 uio->uio_iovcnt); in physio() 94 if (uio->uio_segflg != UIO_USERSPACE) { in physio() [all …]
|
| D | vfs_vnops.c | 125 do_vn_io_fault(struct vnode *vp, struct uio *uio) in do_vn_io_fault() argument 129 return (uio->uio_segflg == UIO_USERSPACE && vp->v_type == VREG && in do_vn_io_fault() 156 static int vn_io_fault1(struct vnode *vp, struct uio *uio, 458 sequential_heuristic(struct uio *uio, struct file *fp) in sequential_heuristic() argument 472 if ((uio->uio_offset == 0 && fp->f_seqcount > 0) || in sequential_heuristic() 473 uio->uio_offset == fp->f_nextoff) { in sequential_heuristic() 483 fp->f_seqcount += howmany(uio->uio_resid, 16384); in sequential_heuristic() 505 struct uio auio; in vn_rdwr() 724 foffset_lock_uio(struct file *fp, struct uio *uio, int flags) in foffset_lock_uio() argument 728 uio->uio_offset = foffset_lock(fp, flags); in foffset_lock_uio() [all …]
|
| /freebsd-10-stable/sys/ofed/include/linux/ |
| D | socket.h | 38 struct uio uio; in memcpy_toiovec() local 41 uio.uio_iov = v; in memcpy_toiovec() 42 uio.uio_iovcnt = -1; in memcpy_toiovec() 43 uio.uio_offset = 0; in memcpy_toiovec() 44 uio.uio_resid = len; in memcpy_toiovec() 45 uio.uio_segflag = UIO_USERSPACE; in memcpy_toiovec() 46 uio.uio_rw = UIO_READ; in memcpy_toiovec() 47 error = -uiomove(kdata, len, &uio); in memcpy_toiovec() 54 struct uio uio; in memcpy_fromiovec() local 57 uio.uio_iov = v; in memcpy_fromiovec() [all …]
|
| /freebsd-10-stable/sys/fs/fuse/ |
| D | fuse_io.c | 104 fuse_read_directbackend(struct vnode *vp, struct uio *uio, 107 fuse_read_biobackend(struct vnode *vp, struct uio *uio, 110 fuse_write_directbackend(struct vnode *vp, struct uio *uio, 113 fuse_write_biobackend(struct vnode *vp, struct uio *uio, 117 fuse_io_dispatch(struct vnode *vp, struct uio *uio, int ioflag, in fuse_io_dispatch() argument 126 (uio->uio_rw == UIO_READ) ? FUFH_RDONLY : FUFH_WRONLY, &fufh); in fuse_io_dispatch() 143 switch (uio->uio_rw) { in fuse_io_dispatch() 148 err = fuse_read_directbackend(vp, uio, cred, fufh); in fuse_io_dispatch() 152 err = fuse_read_biobackend(vp, uio, cred, fufh); in fuse_io_dispatch() 159 err = fuse_write_directbackend(vp, uio, cred, fufh); in fuse_io_dispatch() [all …]
|
| /freebsd-10-stable/sys/cddl/compat/opensolaris/kern/ |
| D | opensolaris_uio.c | 52 uiocopy(void *p, size_t n, enum uio_rw rw, struct uio *uio, size_t *cbytes) in uiocopy() argument 55 struct uio small_uio_clone; in uiocopy() 56 struct uio *uio_clone; in uiocopy() 59 ASSERT3U(uio->uio_rw, ==, rw); in uiocopy() 60 if (uio->uio_iovcnt == 1) { in uiocopy() 61 small_uio_clone = *uio; in uiocopy() 62 small_iovec[0] = *uio->uio_iov; in uiocopy() 66 uio_clone = cloneuio(uio); in uiocopy() 70 *cbytes = uio->uio_resid - uio_clone->uio_resid; in uiocopy() 80 uioskip(uio_t *uio, size_t n) in uioskip() argument [all …]
|
| /freebsd-10-stable/sys/dev/iscsi_initiator/ |
| D | isc_soc.c | 188 struct uio *uio = &pq->uio; in isc_sendPDU() local 195 bzero(uio, sizeof(struct uio)); in isc_sendPDU() 196 uio->uio_rw = UIO_WRITE; in isc_sendPDU() 197 uio->uio_segflg = UIO_SYSSPACE; in isc_sendPDU() 198 uio->uio_td = sp->td; in isc_sendPDU() 199 uio->uio_iov = iv = pq->iov; in isc_sendPDU() 203 uio->uio_resid = iv->iov_len; in isc_sendPDU() 210 uio->uio_resid += iv->iov_len; in isc_sendPDU() 219 uio->uio_resid += iv->iov_len ; in isc_sendPDU() 227 uio->uio_resid += iv->iov_len ; in isc_sendPDU() [all …]
|
| /freebsd-10-stable/sys/dev/terasic/mtl/ |
| D | terasic_mtl_pixel.c | 66 terasic_mtl_pixel_read(struct cdev *dev, struct uio *uio, int flag) in terasic_mtl_pixel_read() argument 73 if (uio->uio_offset < 0 || uio->uio_offset % 4 != 0 || in terasic_mtl_pixel_read() 74 uio->uio_resid % 4 != 0) in terasic_mtl_pixel_read() 79 if ((uio->uio_offset + uio->uio_resid < 0) || in terasic_mtl_pixel_read() 80 (uio->uio_offset + uio->uio_resid > size)) in terasic_mtl_pixel_read() 82 while (uio->uio_resid > 0) { in terasic_mtl_pixel_read() 83 offset = uio->uio_offset; in terasic_mtl_pixel_read() 87 error = uiomove(&v, sizeof(v), uio); in terasic_mtl_pixel_read() 95 terasic_mtl_pixel_write(struct cdev *dev, struct uio *uio, int flag) in terasic_mtl_pixel_write() argument 102 if (uio->uio_offset < 0 || uio->uio_offset % 4 != 0 || in terasic_mtl_pixel_write() [all …]
|
| D | terasic_mtl_text.c | 68 terasic_mtl_text_read(struct cdev *dev, struct uio *uio, int flag) in terasic_mtl_text_read() argument 75 if (uio->uio_offset < 0 || uio->uio_offset % 2 != 0 || in terasic_mtl_text_read() 76 uio->uio_resid % 2 != 0) in terasic_mtl_text_read() 81 if ((uio->uio_offset + uio->uio_resid < 0) || in terasic_mtl_text_read() 82 (uio->uio_offset + uio->uio_resid > size)) in terasic_mtl_text_read() 84 while (uio->uio_resid > 0) { in terasic_mtl_text_read() 85 offset = uio->uio_offset; in terasic_mtl_text_read() 89 error = uiomove(&v, sizeof(v), uio); in terasic_mtl_text_read() 97 terasic_mtl_text_write(struct cdev *dev, struct uio *uio, int flag) in terasic_mtl_text_write() argument 104 if (uio->uio_offset < 0 || uio->uio_offset % 2 != 0 || in terasic_mtl_text_write() [all …]
|
| /freebsd-10-stable/sys/mips/mips/ |
| D | mem.c | 75 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() argument 89 while (uio->uio_resid > 0 && !error) { in memrw() 90 iov = uio->uio_iov; in memrw() 92 uio->uio_iov++; in memrw() 93 uio->uio_iovcnt--; in memrw() 94 if (uio->uio_iovcnt < 0) in memrw() 99 v = uio->uio_offset; in memrw() 101 off = uio->uio_offset & PAGE_MASK; in memrw() 109 error = uiomove_fromphys(&marr, off, cnt, uio); in memrw() 112 va = uio->uio_offset; in memrw() [all …]
|
| D | uio_machdep.c | 62 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 75 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys() 77 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys() 81 while (n > 0 && uio->uio_resid) { in uiomove_fromphys() 82 iov = uio->uio_iov; in uiomove_fromphys() 85 uio->uio_iov++; in uiomove_fromphys() 86 uio->uio_iovcnt--; in uiomove_fromphys() 108 switch (uio->uio_segflg) { in uiomove_fromphys() 111 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() 122 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() [all …]
|
| /freebsd-10-stable/contrib/netbsd-tests/usr.bin/cut/ |
| D | d_basic.out | 10 qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm 11 :qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm 21 qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm 22 :qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm 32 qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm 33 :qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm 43 qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm 44 :qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm 54 qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm 55 :qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm [all …]
|
| /freebsd-10-stable/sys/amd64/amd64/ |
| D | uio_machdep.c | 59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 69 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys() 71 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys() 75 while (n > 0 && uio->uio_resid) { in uiomove_fromphys() 76 iov = uio->uio_iov; in uiomove_fromphys() 79 uio->uio_iov++; in uiomove_fromphys() 80 uio->uio_iovcnt--; in uiomove_fromphys() 89 switch (uio->uio_segflg) { in uiomove_fromphys() 92 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() 100 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() [all …]
|
| /freebsd-10-stable/sys/ia64/ia64/ |
| D | uio_machdep.c | 59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 69 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys() 71 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys() 75 while (n > 0 && uio->uio_resid) { in uiomove_fromphys() 76 iov = uio->uio_iov; in uiomove_fromphys() 79 uio->uio_iov++; in uiomove_fromphys() 80 uio->uio_iovcnt--; in uiomove_fromphys() 90 switch (uio->uio_segflg) { in uiomove_fromphys() 93 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() 101 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() [all …]
|
| /freebsd-10-stable/sys/arm/arm/ |
| D | uio_machdep.c | 60 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 71 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys() 73 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys() 77 while (n > 0 && uio->uio_resid) { in uiomove_fromphys() 78 iov = uio->uio_iov; in uiomove_fromphys() 81 uio->uio_iov++; in uiomove_fromphys() 82 uio->uio_iovcnt--; in uiomove_fromphys() 91 switch (uio->uio_segflg) { in uiomove_fromphys() 94 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() 104 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() [all …]
|
| D | mem.c | 81 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() argument 89 while (uio->uio_resid > 0 && error == 0) { in memrw() 90 iov = uio->uio_iov; in memrw() 92 uio->uio_iov++; in memrw() 93 uio->uio_iovcnt--; in memrw() 94 if (uio->uio_iovcnt < 0) in memrw() 102 v = uio->uio_offset; in memrw() 116 o = (int)uio->uio_offset & PAGE_MASK; in memrw() 120 error = uiomove((caddr_t)&_tmppt[o], (int)c, uio); in memrw() 133 addr = trunc_page(uio->uio_offset); in memrw() [all …]
|
| /freebsd-10-stable/sys/dev/altera/avgen/ |
| D | altera_avgen.c | 78 altera_avgen_read(struct cdev *dev, struct uio *uio, int flag) in altera_avgen_read() argument 95 if (uio->uio_offset < 0 || uio->uio_offset % width != 0 || in altera_avgen_read() 96 uio->uio_resid % width != 0) in altera_avgen_read() 99 if ((uio->uio_offset + uio->uio_resid < 0) || in altera_avgen_read() 100 (uio->uio_offset + uio->uio_resid > size)) in altera_avgen_read() 102 while (uio->uio_resid > 0) { in altera_avgen_read() 103 offset = uio->uio_offset; in altera_avgen_read() 109 error = uiomove(&v1, sizeof(v1), uio); in altera_avgen_read() 114 error = uiomove(&v2, sizeof(v2), uio); in altera_avgen_read() 119 error = uiomove(&v4, sizeof(v4), uio); in altera_avgen_read() [all …]
|
| /freebsd-10-stable/sys/dev/iicbus/ |
| D | icee.c | 224 icee_read(struct cdev *dev, struct uio *uio, int ioflag) in icee_read() argument 236 if (uio->uio_offset == sc->size) in icee_read() 238 if (uio->uio_offset > sc->size) in icee_read() 243 while (uio->uio_resid > 0) { in icee_read() 244 if (uio->uio_offset >= sc->size) in icee_read() 246 len = MIN(MAX_RD_SZ - (uio->uio_offset & (MAX_RD_SZ - 1)), in icee_read() 247 uio->uio_resid); in icee_read() 250 slave = (uio->uio_offset >> 7) | sc->addr; in icee_read() 253 addr[0] = uio->uio_offset & 0xff; in icee_read() 256 slave = sc->addr | (uio->uio_offset >> 15); in icee_read() [all …]
|
| /freebsd-10-stable/sys/i386/i386/ |
| D | uio_machdep.c | 59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 70 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys() 72 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys() 76 while (n > 0 && uio->uio_resid) { in uiomove_fromphys() 77 iov = uio->uio_iov; in uiomove_fromphys() 80 uio->uio_iov++; in uiomove_fromphys() 81 uio->uio_iovcnt--; in uiomove_fromphys() 91 switch (uio->uio_segflg) { in uiomove_fromphys() 94 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() 105 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() [all …]
|
| D | mem.c | 80 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() argument 92 if (dev2unit(dev) == CDEV_MINOR_KMEM && uio->uio_resid > 0) { in memrw() 93 if (uio->uio_offset < (vm_offset_t)VADDR(PTDPTDI, 0)) in memrw() 96 if (!kernacc((caddr_t)(int)uio->uio_offset, uio->uio_resid, in memrw() 97 uio->uio_rw == UIO_READ ? VM_PROT_READ : VM_PROT_WRITE)) in memrw() 101 while (uio->uio_resid > 0 && error == 0) { in memrw() 102 iov = uio->uio_iov; in memrw() 104 uio->uio_iov++; in memrw() 105 uio->uio_iovcnt--; in memrw() 106 if (uio->uio_iovcnt < 0) in memrw() [all …]
|
| /freebsd-10-stable/sys/powerpc/powerpc/ |
| D | uio_machdep.c | 62 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 74 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys() 76 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys() 81 while (n > 0 && uio->uio_resid) { in uiomove_fromphys() 82 iov = uio->uio_iov; in uiomove_fromphys() 85 uio->uio_iov++; in uiomove_fromphys() 86 uio->uio_iovcnt--; in uiomove_fromphys() 98 switch (uio->uio_segflg) { in uiomove_fromphys() 101 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() 111 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() [all …]
|
| /freebsd-10-stable/sys/opencrypto/ |
| D | criov.c | 62 cuio_copydata(struct uio* uio, int off, int len, caddr_t cp) in cuio_copydata() argument 64 struct iovec *iov = uio->uio_iov; in cuio_copydata() 65 int iol = uio->uio_iovcnt; in cuio_copydata() 82 cuio_copyback(struct uio* uio, int off, int len, caddr_t cp) in cuio_copyback() argument 84 struct iovec *iov = uio->uio_iov; in cuio_copyback() 85 int iol = uio->uio_iovcnt; in cuio_copyback() 105 cuio_getptr(struct uio *uio, int loc, int *off) in cuio_getptr() argument 107 struct iovec *iov = uio->uio_iov; in cuio_getptr() 108 int iol = uio->uio_iovcnt; in cuio_getptr() 138 cuio_apply(struct uio *uio, int off, int len, int (*f)(void *, void *, u_int), in cuio_apply() argument [all …]
|
| /freebsd-10-stable/sys/sparc64/sparc64/ |
| D | mem.c | 83 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() argument 103 while (uio->uio_resid > 0 && error == 0) { in memrw() 104 iov = uio->uio_iov; in memrw() 106 uio->uio_iov++; in memrw() 107 uio->uio_iovcnt--; in memrw() 108 if (uio->uio_iovcnt < 0) in memrw() 113 pa = uio->uio_offset & ~PAGE_MASK; in memrw() 119 off = uio->uio_offset & PAGE_MASK; in memrw() 150 uio); in memrw() 155 uio); in memrw() [all …]
|
| D | uio_machdep.c | 63 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 76 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys() 78 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys() 82 while (n > 0 && uio->uio_resid) { in uiomove_fromphys() 83 iov = uio->uio_iov; in uiomove_fromphys() 86 uio->uio_iov++; in uiomove_fromphys() 87 uio->uio_iovcnt--; in uiomove_fromphys() 104 switch (uio->uio_segflg) { in uiomove_fromphys() 107 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() 118 if (uio->uio_rw == UIO_READ) in uiomove_fromphys() [all …]
|
| /freebsd-10-stable/sys/ufs/ffs/ |
| D | ffs_rawread.c | 68 struct uio *uio); 72 int ffs_rawread(struct vnode *vp, struct uio *uio, int *workdone); 271 struct uio *uio) in ffs_rawread_main() argument 282 td = uio->uio_td ? uio->uio_td : curthread; in ffs_rawread_main() 283 udata = uio->uio_iov->iov_base; in ffs_rawread_main() 284 resid = uio->uio_resid; in ffs_rawread_main() 285 offset = uio->uio_offset; in ffs_rawread_main() 423 uio->uio_iov->iov_base = udata; in ffs_rawread_main() 424 uio->uio_resid = resid; in ffs_rawread_main() 425 uio->uio_offset = offset; in ffs_rawread_main() [all …]
|