Home
last modified time | relevance | path

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

12345678910>>...15

/freebsd-head/sys/contrib/openzfs/module/os/linux/zfs/
HDzfs_uio.c66 zfs_uiomove_iov(void *p, size_t n, zfs_uio_rw_t rw, zfs_uio_t *uio) in zfs_uiomove_iov() argument
68 const struct iovec *iov = uio->uio_iov; in zfs_uiomove_iov()
69 size_t skip = uio->uio_skip; in zfs_uiomove_iov()
72 ASSERT3S(uio->uio_segflg, ==, UIO_SYSSPACE); in zfs_uiomove_iov()
73 while (n && uio->uio_resid) { in zfs_uiomove_iov()
82 uio->uio_iov = (++iov); in zfs_uiomove_iov()
83 uio->uio_iovcnt--; in zfs_uiomove_iov()
85 uio->uio_skip = skip; in zfs_uiomove_iov()
86 uio->uio_resid -= cnt; in zfs_uiomove_iov()
87 uio->uio_loffset += cnt; in zfs_uiomove_iov()
[all …]
/freebsd-head/sys/kern/
HDsubr_uio.c67 static int uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault);
98 struct uio uio; in physcopyin() local
103 uio.uio_iov = iov; in physcopyin()
104 uio.uio_iovcnt = 1; in physcopyin()
105 uio.uio_offset = 0; in physcopyin()
106 uio.uio_resid = len; in physcopyin()
107 uio.uio_segflg = UIO_SYSSPACE; in physcopyin()
108 uio.uio_rw = UIO_WRITE; in physcopyin()
111 return (uiomove_fromphys(m, dst & PAGE_MASK, len, &uio)); in physcopyin()
119 struct uio uio; in physcopyout() local
[all …]
HDkern_physio.c40 physio(struct cdev *dev, struct uio *uio, int ioflag) in physio() argument
70 (uio->uio_resid > dev->si_iosize_max || uio->uio_resid > maxphys || in physio()
71 uio->uio_iovcnt > 1)) { in physio()
75 if (uio->uio_resid > dev->si_iosize_max) in physio()
78 uio->uio_resid, dev->si_iosize_max); in physio()
79 if (uio->uio_resid > maxphys) in physio()
82 uio->uio_resid, maxphys); in physio()
83 if (uio->uio_iovcnt > 1) in physio()
86 uio->uio_iovcnt); in physio()
91 if (uio->uio_segflg != UIO_USERSPACE) { in physio()
[all …]
/freebsd-head/sys/contrib/openzfs/module/os/freebsd/spl/
HDspl_uio.c54 zfs_freeuio(struct uio *uio) in zfs_freeuio() argument
57 freeuio(uio); in zfs_freeuio()
59 free(uio, M_IOV); in zfs_freeuio()
64 zfs_uiomove(void *cp, size_t n, zfs_uio_rw_t dir, zfs_uio_t *uio) in zfs_uiomove() argument
66 ASSERT3U(zfs_uio_rw(uio), ==, dir); in zfs_uiomove()
67 return (uiomove(cp, (int)n, GET_UIO_STRUCT(uio))); in zfs_uiomove()
75 zfs_uiocopy(void *p, size_t n, zfs_uio_rw_t rw, zfs_uio_t *uio, size_t *cbytes) in zfs_uiocopy() argument
78 struct uio small_uio_clone; in zfs_uiocopy()
79 struct uio *uio_clone; in zfs_uiocopy()
82 ASSERT3U(zfs_uio_rw(uio), ==, rw); in zfs_uiocopy()
[all …]
/freebsd-head/sys/contrib/openzfs/include/os/linux/spl/sys/
HDuio.h105 zfs_uio_setoffset(zfs_uio_t *uio, offset_t off) in zfs_uio_setoffset() argument
107 uio->uio_loffset = off; in zfs_uio_setoffset()
111 zfs_uio_setsoffset(zfs_uio_t *uio, offset_t off) in zfs_uio_setsoffset() argument
113 ASSERT3U(zfs_uio_offset(uio), ==, off); in zfs_uio_setsoffset()
114 zfs_uio_soffset(uio) = off; in zfs_uio_setsoffset()
118 zfs_uio_advance(zfs_uio_t *uio, ssize_t size) in zfs_uio_advance() argument
120 uio->uio_resid -= size; in zfs_uio_advance()
121 uio->uio_loffset += size; in zfs_uio_advance()
125 zfs_uio_iovec_init(zfs_uio_t *uio, const struct iovec *iov, in zfs_uio_iovec_init() argument
131 uio->uio_iov = iov; in zfs_uio_iovec_init()
[all …]
/freebsd-head/sys/contrib/openzfs/lib/libspl/include/sys/
HDuio.h45 #include_next <sys/uio.h>
78 #define zfs_uio_segflg(uio) (uio)->uio_segflg argument
79 #define zfs_uio_offset(uio) (uio)->uio_loffset argument
80 #define zfs_uio_resid(uio) (uio)->uio_resid argument
81 #define zfs_uio_iovcnt(uio) (uio)->uio_iovcnt argument
82 #define zfs_uio_iovlen(uio, idx) (uio)->uio_iov[(idx)].iov_len argument
83 #define zfs_uio_iovbase(uio, idx) (uio)->uio_iov[(idx)].iov_base argument
112 zfs_uio_iov_at_index(zfs_uio_t *uio, uint_t idx, void **base, uint64_t *len) in zfs_uio_iov_at_index() argument
114 *base = zfs_uio_iovbase(uio, idx); in zfs_uio_iov_at_index()
115 *len = zfs_uio_iovlen(uio, idx); in zfs_uio_iov_at_index()
[all …]
/freebsd-head/sys/compat/linuxkpi/common/include/linux/
HDsocket.h49 struct uio uio; in memcpy_toiovec() local
52 uio.uio_iov = v; in memcpy_toiovec()
53 uio.uio_iovcnt = -1; in memcpy_toiovec()
54 uio.uio_offset = 0; in memcpy_toiovec()
55 uio.uio_resid = len; in memcpy_toiovec()
56 uio.uio_segflag = UIO_USERSPACE; in memcpy_toiovec()
57 uio.uio_rw = UIO_READ; in memcpy_toiovec()
58 error = -uiomove(kdata, len, &uio); in memcpy_toiovec()
65 struct uio uio; in memcpy_fromiovec() local
68 uio.uio_iov = v; in memcpy_fromiovec()
[all …]
/freebsd-head/sys/cddl/compat/opensolaris/kern/
HDopensolaris_uio.c51 uiocopy(void *p, size_t n, enum uio_rw rw, struct uio *uio, size_t *cbytes) in uiocopy() argument
54 struct uio small_uio_clone; in uiocopy()
55 struct uio *uio_clone; in uiocopy()
58 ASSERT3U(uio->uio_rw, ==, rw); in uiocopy()
59 if (uio->uio_iovcnt == 1) { in uiocopy()
60 small_uio_clone = *uio; in uiocopy()
61 small_iovec[0] = *uio->uio_iov; in uiocopy()
65 uio_clone = cloneuio(uio); in uiocopy()
69 *cbytes = uio->uio_resid - uio_clone->uio_resid; in uiocopy()
79 uioskip(uio_t *uio, size_t n) in uioskip() argument
[all …]
/freebsd-head/sys/arm64/arm64/
HDuio_machdep.c54 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument
65 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys()
67 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys()
69 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
70 ("%s: uio %p resid underflow", __func__, uio)); in uiomove_fromphys()
75 while (n > 0 && uio->uio_resid) { in uiomove_fromphys()
76 KASSERT(uio->uio_iovcnt > 0, in uiomove_fromphys()
77 ("%s: uio %p iovcnt underflow", __func__, uio)); in uiomove_fromphys()
79 iov = uio->uio_iov; in uiomove_fromphys()
82 uio->uio_iov++; in uiomove_fromphys()
[all …]
/freebsd-head/sys/amd64/amd64/
HDuio_machdep.c56 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument
67 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys()
69 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys()
71 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
72 ("%s: uio %p resid underflow", __func__, uio)); in uiomove_fromphys()
77 while (n > 0 && uio->uio_resid) { in uiomove_fromphys()
78 KASSERT(uio->uio_iovcnt > 0, in uiomove_fromphys()
79 ("%s: uio %p iovcnt underflow", __func__, uio)); in uiomove_fromphys()
81 iov = uio->uio_iov; in uiomove_fromphys()
84 uio->uio_iov++; in uiomove_fromphys()
[all …]
/freebsd-head/sys/riscv/riscv/
HDuio_machdep.c54 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument
65 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys()
67 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys()
69 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
70 ("%s: uio %p resid underflow", __func__, uio)); in uiomove_fromphys()
75 while (n > 0 && uio->uio_resid) { in uiomove_fromphys()
76 KASSERT(uio->uio_iovcnt > 0, in uiomove_fromphys()
77 ("%s: uio %p iovcnt underflow", __func__, uio)); in uiomove_fromphys()
79 iov = uio->uio_iov; in uiomove_fromphys()
82 uio->uio_iov++; in uiomove_fromphys()
[all …]
HDmem.c46 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() argument
58 orig_resid = uio->uio_resid; in memrw()
59 while (uio->uio_resid > 0 && error == 0) { in memrw()
60 iov = uio->uio_iov; in memrw()
62 uio->uio_iov++; in memrw()
63 uio->uio_iovcnt--; in memrw()
64 if (uio->uio_iovcnt < 0) in memrw()
69 v = uio->uio_offset; in memrw()
79 error = uiomove((void *)v, cnt, uio); in memrw()
83 switch (uio->uio_rw) { in memrw()
[all …]
/freebsd-head/sys/arm/arm/
HDuio_machdep.c57 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument
68 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys()
70 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys()
72 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
73 ("%s: uio %p resid underflow", __func__, uio)); in uiomove_fromphys()
77 while (n > 0 && uio->uio_resid) { in uiomove_fromphys()
78 KASSERT(uio->uio_iovcnt > 0, in uiomove_fromphys()
79 ("%s: uio %p iovcnt underflow", __func__, uio)); in uiomove_fromphys()
81 iov = uio->uio_iov; in uiomove_fromphys()
84 uio->uio_iov++; in uiomove_fromphys()
[all …]
HDmem.c83 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() argument
91 while (uio->uio_resid > 0 && error == 0) { in memrw()
92 iov = uio->uio_iov; in memrw()
94 uio->uio_iov++; in memrw()
95 uio->uio_iovcnt--; in memrw()
96 if (uio->uio_iovcnt < 0) in memrw()
104 v = uio->uio_offset; in memrw()
119 o = (int)uio->uio_offset & PAGE_MASK; in memrw()
123 error = uiomove((caddr_t)&_tmppt[o], (int)c, uio); in memrw()
136 addr = trunc_page(uio->uio_offset); in memrw()
[all …]
/freebsd-head/sys/i386/i386/
HDuio_machdep.c56 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument
67 KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE, in uiomove_fromphys()
69 KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, in uiomove_fromphys()
71 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
72 ("%s: uio %p resid underflow", __func__, uio)); in uiomove_fromphys()
76 while (n > 0 && uio->uio_resid) { in uiomove_fromphys()
77 KASSERT(uio->uio_iovcnt > 0, in uiomove_fromphys()
78 ("%s: uio %p iovcnt underflow", __func__, uio)); in uiomove_fromphys()
80 iov = uio->uio_iov; in uiomove_fromphys()
83 uio->uio_iov++; in uiomove_fromphys()
[all …]
HDmem.c79 memrw(struct cdev *dev, struct uio *uio, int flags) in memrw() argument
91 if (dev2unit(dev) == CDEV_MINOR_KMEM && uio->uio_resid > 0) { in memrw()
92 if (!kernacc((caddr_t)(int)uio->uio_offset, uio->uio_resid, in memrw()
93 uio->uio_rw == UIO_READ ? VM_PROT_READ : VM_PROT_WRITE)) in memrw()
97 while (uio->uio_resid > 0 && error == 0) { in memrw()
98 iov = uio->uio_iov; in memrw()
100 uio->uio_iov++; in memrw()
101 uio->uio_iovcnt--; in memrw()
102 if (uio->uio_iovcnt < 0) in memrw()
107 if (uio->uio_offset > cpu_getmaxphyaddr()) { in memrw()
[all …]
/freebsd-head/sys/powerpc/powerpc/
HDuio_machdep.c59 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()
75 KASSERT(uio->uio_resid >= 0, in uiomove_fromphys()
76 ("%s: uio %p resid underflow", __func__, uio)); in uiomove_fromphys()
80 while (n > 0 && uio->uio_resid) { in uiomove_fromphys()
81 KASSERT(uio->uio_iovcnt > 0, in uiomove_fromphys()
82 ("%s: uio %p iovcnt underflow", __func__, uio)); in uiomove_fromphys()
84 iov = uio->uio_iov; in uiomove_fromphys()
87 uio->uio_iov++; in uiomove_fromphys()
[all …]
/freebsd-head/sys/contrib/openzfs/include/os/freebsd/spl/sys/
HDuio.h35 #include_next <sys/uio.h>
58 struct uio *uio; member
64 #define GET_UIO_STRUCT(u) (u)->uio
78 zfs_uio_setoffset(zfs_uio_t *uio, offset_t off) in zfs_uio_setoffset() argument
80 zfs_uio_offset(uio) = off; in zfs_uio_setoffset()
84 zfs_uio_setsoffset(zfs_uio_t *uio, offset_t off) in zfs_uio_setsoffset() argument
86 ASSERT3U(zfs_uio_offset(uio), ==, off); in zfs_uio_setsoffset()
87 zfs_uio_soffset(uio) = off; in zfs_uio_setsoffset()
91 zfs_uio_advance(zfs_uio_t *uio, ssize_t size) in zfs_uio_advance() argument
93 zfs_uio_resid(uio) -= size; in zfs_uio_advance()
[all …]
/freebsd-head/sys/sys/
HDuio.h52 struct uio { struct
79 struct uio *allocuio(u_int iovcnt);
80 void freeuio(struct uio *uio);
81 struct uio *cloneuio(struct uio *uiop);
84 int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop);
93 void uioadvance(struct uio *, size_t);
94 int uiomove(void *cp, int n, struct uio *uio);
95 int uiomove_frombuf(void *buf, int buflen, struct uio *uio);
97 struct uio *uio);
98 int uiomove_nofault(void *cp, int n, struct uio *uio);
[all …]
/freebsd-head/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 …]
/freebsd-head/sys/fs/fuse/
HDfuse_io.c126 fuse_read_biobackend(struct vnode *vp, struct uio *uio, int ioflag, in fuse_read_biobackend() argument
141 if (uio->uio_offset < 0) in fuse_read_biobackend()
150 for (err = 0, bp = NULL; uio->uio_resid > 0; bp = NULL) { in fuse_read_biobackend()
155 if (filesize - uio->uio_offset <= 0) in fuse_read_biobackend()
157 lbn = uio->uio_offset / biosize; in fuse_read_biobackend()
158 on = uio->uio_offset & (biosize - 1); in fuse_read_biobackend()
178 long totread = uio->uio_resid + on; in fuse_read_biobackend()
209 uio->uio_resid); in fuse_read_biobackend()
212 err = uiomove(bp->b_data + on, n, uio); in fuse_read_biobackend()
216 uio->uio_resid, n, bp); in fuse_read_biobackend()
[all …]
HDfuse_internal.h122 uio_resid(struct uio *uio) in uio_resid() argument
124 return (uio->uio_resid); in uio_resid()
128 uio_offset(struct uio *uio) in uio_offset() argument
130 return (uio->uio_offset); in uio_offset()
134 uio_setoffset(struct uio *uio, off_t offset) in uio_setoffset() argument
136 uio->uio_offset = offset; in uio_setoffset()
231 int fuse_internal_fsync_callback(struct fuse_ticket *tick, struct uio *uio);
240 int fuse_internal_invalidate_entry(struct mount *mp, struct uio *uio);
241 int fuse_internal_invalidate_inode(struct mount *mp, struct uio *uio);
251 int fuse_internal_readdir(struct vnode *vp, struct uio *uio,
[all …]
/freebsd-head/sys/ufs/ffs/
HDffs_rawread.c64 struct uio *uio);
68 int ffs_rawread(struct vnode *vp, struct uio *uio, int *workdone);
253 struct uio *uio) in ffs_rawread_main() argument
263 td = uio->uio_td ? uio->uio_td : curthread; in ffs_rawread_main()
264 udata = uio->uio_iov->iov_base; in ffs_rawread_main()
265 resid = uio->uio_resid; in ffs_rawread_main()
266 offset = uio->uio_offset; in ffs_rawread_main()
387 uio->uio_iov->iov_base = udata; in ffs_rawread_main()
388 uio->uio_resid = resid; in ffs_rawread_main()
389 uio->uio_offset = offset; in ffs_rawread_main()
[all …]
/freebsd-head/sys/dev/iicbus/
HDicee.c216 icee_read(struct cdev *dev, struct uio *uio, int ioflag) in icee_read() argument
228 if (uio->uio_offset == sc->size) in icee_read()
230 if (uio->uio_offset > sc->size) in icee_read()
235 while (uio->uio_resid > 0) { in icee_read()
236 if (uio->uio_offset >= sc->size) in icee_read()
238 len = MIN(MAX_RD_SZ - (uio->uio_offset & (MAX_RD_SZ - 1)), in icee_read()
239 uio->uio_resid); in icee_read()
242 slave = (uio->uio_offset >> 7) | sc->addr; in icee_read()
245 addr[0] = uio->uio_offset & 0xff; in icee_read()
248 slave = sc->addr | (uio->uio_offset >> 15); in icee_read()
[all …]

12345678910>>...15