Searched refs:uio (Results 1 - 25 of 698) sorted by relevance

1234567891011>>

/freebsd-10.1-release/sys/ofed/include/linux/
H A Dsocket.h38 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.1-release/lib/libc/stdio/
H A Dputw.c49 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 Dfputs.c54 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 Dputs.c55 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 Dfwrite.c56 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.1-release/sys/kern/
H A Dsubr_uio.c63 static int uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault);
94 struct uio uio; local
99 uio.uio_iov = iov;
100 uio.uio_iovcnt = 1;
101 uio.uio_offset = 0;
102 uio.uio_resid = len;
103 uio.uio_segflg = UIO_SYSSPACE;
104 uio
115 struct uio uio; local
134 uiomove(void *cp, int n, struct uio *uio) argument
141 uiomove_nofault(void *cp, int n, struct uio *uio) argument
148 uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault) argument
228 uiomove_frombuf(void *buf, int buflen, struct uio *uio) argument
246 ureadc(int c, struct uio *uio) argument
345 struct uio *uio; local
380 struct uio *uio; local
[all...]
H A Dkern_physio.c29 #include <sys/uio.h>
35 physio(struct cdev *dev, struct uio *uio, int ioflag) argument
62 (uio->uio_resid > dev->si_iosize_max || uio->uio_resid > MAXPHYS ||
63 uio->uio_iovcnt > 1)) {
67 if (uio->uio_resid > dev->si_iosize_max)
70 uio->uio_resid, dev->si_iosize_max);
71 if (uio->uio_resid > MAXPHYS)
74 uio
[all...]
/freebsd-10.1-release/contrib/sendmail/libsm/
H A Dfput.c43 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 Dfwrite.c45 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.1-release/sys/sys/
H A Duio.h29 * @(#)uio.h 8.5 (Berkeley) 2/22/94
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);
104 struct uio *ui
[all...]
/freebsd-10.1-release/sys/mips/mips/
H A Dmem.c59 #include <sys/uio.h>
75 memrw(struct cdev *dev, struct uio *uio, int flags) argument
91 while (uio->uio_resid > 0 && !error) {
92 iov = uio->uio_iov;
94 uio->uio_iov++;
95 uio->uio_iovcnt--;
96 if (uio->uio_iovcnt < 0)
101 v = uio->uio_offset;
103 off = uio
[all...]
H A Duio_machdep.c48 #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.1-release/sys/cddl/compat/opensolaris/sys/
H A Duio.h32 #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));
83 #define uiomove(cp, n, dir, uio) zfs_uiomov
[all...]
/freebsd-10.1-release/sys/arm/arm/
H A Dmem.c59 #include <sys/uio.h>
77 memrw(struct cdev *dev, struct uio *uio, int flags) argument
87 while (uio->uio_resid > 0 && error == 0) {
88 iov = uio->uio_iov;
90 uio->uio_iov++;
91 uio->uio_iovcnt--;
92 if (uio->uio_iovcnt < 0)
100 v = uio->uio_offset;
113 o = (int)uio
[all...]
H A Duio_machdep.c47 #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.1-release/sys/amd64/amd64/
H A Duio_machdep.c47 #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.1-release/sys/i386/i386/
H A Duio_machdep.c49 #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.1-release/sys/ia64/ia64/
H A Duio_machdep.c47 #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.1-release/sys/powerpc/powerpc/
H A Duio_machdep.c47 #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.1-release/sys/sparc64/sparc64/
H A Duio_machdep.c48 #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.1-release/sys/dev/terasic/mtl/
H A Dterasic_mtl_pixel.c42 #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 Dterasic_mtl_text.c44 #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.1-release/sys/dev/lindev/
H A Dfull.c36 #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.1-release/sys/fs/fuse/
H A Dfuse_io.h61 int fuse_io_dispatch(struct vnode *vp, struct uio *uio, int ioflag,
/freebsd-10.1-release/sys/opencrypto/
H A Dcriov.c40 #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...]

Completed in 147 milliseconds

1234567891011>>