Home
last modified time | relevance | path

Searched refs:uio (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/trueos/sys/kern/
HDsubr_uio.c68 static int uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault);
99 struct uio uio; in physcopyin() local
104 uio.uio_iov = iov; in physcopyin()
105 uio.uio_iovcnt = 1; in physcopyin()
106 uio.uio_offset = 0; in physcopyin()
107 uio.uio_resid = len; in physcopyin()
108 uio.uio_segflg = UIO_SYSSPACE; in physcopyin()
109 uio.uio_rw = UIO_WRITE; in physcopyin()
112 return (uiomove_fromphys(m, dst & PAGE_MASK, len, &uio)); in physcopyin()
120 struct uio uio; in physcopyout() local
[all …]
HDkern_physio.c39 physio(struct cdev *dev, struct uio *uio, int ioflag) in physio() argument
61 (uio->uio_resid > dev->si_iosize_max || uio->uio_resid > MAXPHYS || in physio()
62 uio->uio_iovcnt > 1)) { in physio()
66 if (uio->uio_resid > dev->si_iosize_max) in physio()
69 uio->uio_resid, dev->si_iosize_max); in physio()
70 if (uio->uio_resid > MAXPHYS) in physio()
73 uio->uio_resid, MAXPHYS); in physio()
74 if (uio->uio_iovcnt > 1) in physio()
77 uio->uio_iovcnt); in physio()
88 if (uio->uio_segflg != UIO_USERSPACE) { in physio()
[all …]
/trueos/sys/ofed/include/linux/
HDsocket.h38 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 …]
/trueos/sys/fs/fuse/
HDfuse_io.c104 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 …]
HDfuse_internal.h118 uio_resid(struct uio *uio) in uio_resid() argument
120 return (uio->uio_resid); in uio_resid()
124 uio_offset(struct uio *uio) in uio_offset() argument
126 return (uio->uio_offset); in uio_offset()
130 uio_setoffset(struct uio *uio, off_t offset) in uio_setoffset() argument
132 uio->uio_offset = offset; in uio_setoffset()
136 uio_setresid(struct uio *uio, ssize_t resid) in uio_setresid() argument
138 uio->uio_resid = resid; in uio_setresid()
253 fuse_internal_fsync_callback(struct fuse_ticket *tick, struct uio *uio);
263 struct uio *uio,
[all …]
/trueos/sys/dev/iscsi_initiator/
HDisc_soc.c188 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 …]
/trueos/sys/dev/terasic/mtl/
HDterasic_mtl_pixel.c66 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 …]
HDterasic_mtl_text.c68 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 …]
/trueos/sys/mips/mips/
HDmem.c75 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 …]
HDuio_machdep.c62 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 …]
/trueos/contrib/netbsd-tests/usr.bin/cut/
HDd_basic.out10 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 …]
HDd_dflag.out6 qwe rty uio p[] asd fgh jkl zxc vbn nm
17 qwe rty uio p[] asd fgh jkl zxc vbn nm
28 qwe rty uio p[] asd fgh jkl zxc vbn nm
32 uio
39 qwe rty uio p[] asd fgh jkl zxc vbn nm
50 qwe rty uio p[] asd fgh jkl zxc vbn nm
54 rty:uio
61 qwe rty uio p[] asd fgh jkl zxc vbn nm
72 qwe rty uio p[] asd fgh jkl zxc vbn nm
76 qwe:rty:uio:p[]:asd:fgh:jkl
[all …]
/trueos/sys/dev/iicbus/
HDicee.c140 icee_read(struct cdev *dev, struct uio *uio, int ioflag) in icee_read() argument
152 if (uio->uio_offset == sc->size) in icee_read()
154 if (uio->uio_offset > sc->size) in icee_read()
160 while (uio->uio_resid > 0) { in icee_read()
161 if (uio->uio_offset >= sc->size) in icee_read()
163 len = MIN(sc->rd_sz - (uio->uio_offset & (sc->rd_sz - 1)), in icee_read()
164 uio->uio_resid); in icee_read()
167 slave = (uio->uio_offset >> 7) | sc->addr; in icee_read()
170 addr[0] = uio->uio_offset & 0xff; in icee_read()
173 slave = sc->addr | (uio->uio_offset >> 15); in icee_read()
[all …]
/trueos/sys/ia64/ia64/
HDuio_machdep.c59 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 …]
/trueos/sys/amd64/amd64/
HDuio_machdep.c59 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 …]
/trueos/sys/arm/arm/
HDuio_machdep.c60 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 …]
HDmem.c81 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 …]
/trueos/sys/dev/altera/avgen/
HDaltera_avgen.c78 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 …]
/trueos/sys/i386/i386/
HDuio_machdep.c59 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 …]
/trueos/sys/powerpc/powerpc/
HDuio_machdep.c62 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 …]
/trueos/sys/opencrypto/
HDcriov.c62 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 …]
/trueos/sys/sparc64/sparc64/
HDmem.c83 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 …]
HDuio_machdep.c63 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 …]
/trueos/sys/sys/
HDuio.h63 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 *uio);
105 int uiomove_nofault(void *cp, int n, struct uio *uio);
106 int uiomove_object(struct vm_object *obj, off_t obj_size, struct uio *uio);
/trueos/sys/ufs/ffs/
HDffs_vnops.c103 extern int ffs_rawread(struct vnode *vp, struct uio *uio, int *workdone);
110 static int ffs_extread(struct vnode *vp, struct uio *uio, int ioflag);
111 static int ffs_extwrite(struct vnode *vp, struct uio *uio, int ioflag,
431 struct uio *uio; local
443 uio = ap->a_uio;
447 return (ffs_extread(vp, uio, ioflag));
455 error = ffs_rawread(vp, uio, &workdone);
465 if (uio->uio_rw != UIO_READ)
474 orig_resid = uio->uio_resid;
478 KASSERT(uio->uio_offset >= 0, ("ffs_read: uio->uio_offset < 0"));
[all …]

12345678910>>...16