/freebsd-10.2-release/sys/ofed/include/linux/ |
H A D | socket.h | 38 struct uio uio; local 41 uio.uio_iov = v; 42 uio.uio_iovcnt = -1; 43 uio.uio_offset = 0; 44 uio.uio_resid = len; 45 uio.uio_segflag = UIO_USERSPACE; 46 uio.uio_rw = UIO_READ; 47 error = -uiomove(kdata, len, &uio); 54 struct uio ui local [all...] |
/freebsd-10.2-release/lib/libc/stdio/ |
H A D | putw.c | 49 struct __suio uio; local 53 uio.uio_resid = iov.iov_len = sizeof(w); 54 uio.uio_iov = &iov; 55 uio.uio_iovcnt = 1; 57 retval = __sfvwrite(fp, &uio);
|
H A D | fputs.c | 54 struct __suio uio; local 58 uio.uio_resid = iov.iov_len = strlen(s); 59 uio.uio_iov = &iov; 60 uio.uio_iovcnt = 1; 63 retval = __sfvwrite(fp, &uio);
|
H A D | puts.c | 55 struct __suio uio; local 62 uio.uio_resid = c + 1; 63 uio.uio_iov = &iov[0]; 64 uio.uio_iovcnt = 2; 67 retval = __sfvwrite(stdout, &uio) ? EOF : '\n';
|
H A D | fwrite.c | 56 struct __suio uio; local 81 uio.uio_resid = iov.iov_len = n; 82 uio.uio_iov = &iov; 83 uio.uio_iovcnt = 1; 92 if (__sfvwrite(fp, &uio) != 0) 93 count = (n - uio.uio_resid) / size;
|
/freebsd-10.2-release/sys/kern/ |
H A D | subr_uio.c | 68 static int uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault); 99 struct uio uio; local 104 uio.uio_iov = iov; 105 uio.uio_iovcnt = 1; 106 uio.uio_offset = 0; 107 uio.uio_resid = len; 108 uio.uio_segflg = UIO_SYSSPACE; 109 uio 120 struct uio uio; local 139 uiomove(void *cp, int n, struct uio *uio) argument 146 uiomove_nofault(void *cp, int n, struct uio *uio) argument 153 uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault) argument 233 uiomove_frombuf(void *buf, int buflen, struct uio *uio) argument 251 ureadc(int c, struct uio *uio) argument 350 struct uio *uio; local 385 struct uio *uio; local [all...] |
/freebsd-10.2-release/contrib/sendmail/libsm/ |
H A D | fput.c | 43 struct sm_uio uio; local 48 iov.iov_len = uio.uio_resid = strlen(s); 49 uio.uio_iov = &iov; 50 uio.uio_iovcnt = 1; 51 return sm_fvwrite(fp, timeout, &uio);
|
H A D | fwrite.c | 45 struct sm_uio uio; local 57 uio.uio_resid = iov.iov_len = size; 58 uio.uio_iov = &iov; 59 uio.uio_iovcnt = 1; 62 if (sm_fvwrite(fp, timeout, &uio) == 0) 66 return size - uio.uio_resid;
|
/freebsd-10.2-release/sys/sys/ |
H A D | uio.h | 29 * @(#)uio.h 8.5 (Berkeley) 2/22/94 30 * $FreeBSD: releng/10.2/sys/sys/uio.h 255608 2013-09-16 06:25:54Z kib $ 63 struct uio { struct 89 struct uio *cloneuio(struct uio *uiop); 96 int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop); 101 int uiomove(void *cp, int n, struct uio *uio); 102 int uiomove_frombuf(void *buf, int buflen, struct uio *uio); [all...] |
/freebsd-10.2-release/sys/mips/mips/ |
H A D | mem.c | 59 #include <sys/uio.h> 75 memrw(struct cdev *dev, struct uio *uio, int flags) argument 89 while (uio->uio_resid > 0 && !error) { 90 iov = uio->uio_iov; 92 uio->uio_iov++; 93 uio->uio_iovcnt--; 94 if (uio->uio_iovcnt < 0) 99 v = uio->uio_offset; 101 off = uio [all...] |
H A D | uio_machdep.c | 48 #include <sys/uio.h> 62 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument 75 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, 77 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, 81 while (n > 0 && uio->uio_resid) { 82 iov = uio->uio_iov; 85 uio [all...] |
/freebsd-10.2-release/sys/cddl/compat/opensolaris/sys/ |
H A D | uio.h | 26 * $FreeBSD: releng/10.2/sys/cddl/compat/opensolaris/sys/uio.h 219089 2011-02-27 19:41:40Z pjd $ 32 #include_next <sys/uio.h> 36 #define FOF_OFFSET 1 /* Use the offset in uio argument */ 38 struct uio { struct 51 typedef struct uio uio_t; 62 /* Extended uio fields */ 63 enum xuio_type xu_type; /* What kind of uio structure? */ 77 zfs_uiomove(void *cp, size_t n, enum uio_rw dir, uio_t *uio) argument 80 ASSERT(uio->uio_rw == dir); 81 return (uiomove(cp, (int)n, uio)); [all...] |
/freebsd-10.2-release/sys/i386/i386/ |
H A D | uio_machdep.c | 49 #include <sys/uio.h> 59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument 70 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, 72 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, 76 while (n > 0 && uio->uio_resid) { 77 iov = uio->uio_iov; 80 uio [all...] |
/freebsd-10.2-release/sys/ia64/ia64/ |
H A D | uio_machdep.c | 47 #include <sys/uio.h> 59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument 69 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, 71 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, 75 while (n > 0 && uio->uio_resid) { 76 iov = uio->uio_iov; 79 uio [all...] |
H A D | mem.c | 54 #include <sys/uio.h> 87 memrw(struct cdev *dev, struct uio *uio, int flags) argument 97 rw = (uio->uio_rw == UIO_READ) ? VM_PROT_READ : VM_PROT_WRITE; 99 while (uio->uio_resid > 0 && !error) { 100 iov = uio->uio_iov; 102 uio->uio_iov++; 103 uio->uio_iovcnt--; 104 if (uio->uio_iovcnt < 0) 109 ofs = uio [all...] |
/freebsd-10.2-release/sys/powerpc/powerpc/ |
H A D | uio_machdep.c | 47 #include <sys/uio.h> 62 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument 74 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, 76 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, 81 while (n > 0 && uio->uio_resid) { 82 iov = uio->uio_iov; 85 uio [all...] |
/freebsd-10.2-release/sys/sparc64/sparc64/ |
H A D | uio_machdep.c | 48 #include <sys/uio.h> 63 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument 76 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, 78 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, 82 while (n > 0 && uio->uio_resid) { 83 iov = uio->uio_iov; 86 uio [all...] |
/freebsd-10.2-release/sys/arm/arm/ |
H A D | uio_machdep.c | 47 #include <sys/uio.h> 60 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument 71 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, 73 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, 77 while (n > 0 && uio->uio_resid) { 78 iov = uio->uio_iov; 81 uio [all...] |
/freebsd-10.2-release/sys/amd64/amd64/ |
H A D | uio_machdep.c | 47 #include <sys/uio.h> 59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) argument 69 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, 71 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, 75 while (n > 0 && uio->uio_resid) { 76 iov = uio->uio_iov; 79 uio [all...] |
/freebsd-10.2-release/sys/dev/terasic/mtl/ |
H A D | terasic_mtl_pixel.c | 42 #include <sys/uio.h> 66 terasic_mtl_pixel_read(struct cdev *dev, struct uio *uio, int flag) argument 73 if (uio->uio_offset < 0 || uio->uio_offset % 4 != 0 || 74 uio->uio_resid % 4 != 0) 79 if ((uio->uio_offset + uio->uio_resid < 0) || 80 (uio->uio_offset + uio 95 terasic_mtl_pixel_write(struct cdev *dev, struct uio *uio, int flag) argument [all...] |
H A D | terasic_mtl_text.c | 44 #include <sys/uio.h> 68 terasic_mtl_text_read(struct cdev *dev, struct uio *uio, int flag) argument 75 if (uio->uio_offset < 0 || uio->uio_offset % 2 != 0 || 76 uio->uio_resid % 2 != 0) 81 if ((uio->uio_offset + uio->uio_resid < 0) || 82 (uio->uio_offset + uio 97 terasic_mtl_text_write(struct cdev *dev, struct uio *uio, int flag) argument [all...] |
/freebsd-10.2-release/sys/fs/fuse/ |
H A D | fuse_io.h | 61 int fuse_io_dispatch(struct vnode *vp, struct uio *uio, int ioflag,
|
H A D | fuse_io.c | 66 #include <sys/uio.h> 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 *ui argument 174 fuse_read_biobackend(struct vnode *vp, struct uio *uio, struct ucred *cred, struct fuse_filehandle *fufh) argument 267 fuse_read_directbackend(struct vnode *vp, struct uio *uio, struct ucred *cred, struct fuse_filehandle *fufh) argument 320 fuse_write_directbackend(struct vnode *vp, struct uio *uio, struct ucred *cred, struct fuse_filehandle *fufh) argument 371 fuse_write_biobackend(struct vnode *vp, struct uio *uio, struct ucred *cred, struct fuse_filehandle *fufh, int ioflag) argument 608 struct uio uio; local [all...] |
/freebsd-10.2-release/sys/dev/lindev/ |
H A D | full.c | 36 #include <sys/uio.h> 56 full_read(struct cdev *dev __unused, struct uio *uio, int flags __unused) argument 60 while (uio->uio_resid > 0 && error == 0) 61 error = uiomove(zbuf, MIN(uio->uio_resid, PAGE_SIZE), uio); 68 full_write(struct cdev *dev __unused, struct uio *uio __unused,
|
/freebsd-10.2-release/sys/opencrypto/ |
H A D | criov.c | 40 #include <sys/uio.h> 62 cuio_copydata(struct uio* uio, int off, int len, caddr_t cp) argument 64 struct iovec *iov = uio->uio_iov; 65 int iol = uio->uio_iovcnt; 82 cuio_copyback(struct uio* uio, int off, int len, caddr_t cp) argument 84 struct iovec *iov = uio->uio_iov; 85 int iol = uio->uio_iovcnt; 105 cuio_getptr(struct uio *ui argument 138 cuio_apply(struct uio *uio, int off, int len, int (*f)(void *, void *, u_int), void *arg) argument [all...] |