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

1234567891011>>

/freebsd-10.3-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.3-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.3-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.3-release/sys/mips/mips/
H A Dmem.c59 #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 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.3-release/sys/cddl/compat/opensolaris/sys/
H A Duio.h26 * $FreeBSD: releng/10.3/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.3-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.3-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.3-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.3-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...]
H A Dmem.c54 #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.3-release/sys/arm/arm/
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.3-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.3-release/sys/kern/
H A Dsubr_uio.c70 static int uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault);
101 struct uio uio; local
106 uio.uio_iov = iov;
107 uio.uio_iovcnt = 1;
108 uio.uio_offset = 0;
109 uio.uio_resid = len;
110 uio.uio_segflg = UIO_SYSSPACE;
111 uio
122 struct uio uio; local
193 uiomove(void *cp, int n, struct uio *uio) argument
200 uiomove_nofault(void *cp, int n, struct uio *uio) argument
207 uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault) argument
287 uiomove_frombuf(void *buf, int buflen, struct uio *uio) argument
305 ureadc(int c, struct uio *uio) argument
404 struct uio *uio; local
439 struct uio *uio; local
[all...]
/freebsd-10.3-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.3-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.3-release/sys/fs/fuse/
H A Dfuse_io.h61 int fuse_io_dispatch(struct vnode *vp, struct uio *uio, int ioflag,
H A Dfuse_io.c66 #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.3-release/sys/sys/
H A Duio.h29 * @(#)uio.h 8.5 (Berkeley) 2/22/94
30 * $FreeBSD: releng/10.3/sys/sys/uio.h 292348 2015-12-16 19:01:14Z ken $
63 struct uio { struct
90 struct uio *cloneuio(struct uio *uiop);
97 int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop);
106 int uiomove(void *cp, int n, struct uio *uio);
107 int uiomove_frombuf(void *buf, int buflen, struct uio *uio);
[all...]
/freebsd-10.3-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 225 milliseconds

1234567891011>>