/netbsd/sys/kern/ |
H A D | sys_generic.c | 130 struct uio auio; in dofileread() local 139 auio.uio_iov = &aiov; in dofileread() 140 auio.uio_iovcnt = 1; in dofileread() 189 struct uio auio; in do_filereadv() local 245 auio.uio_iov = iov; in do_filereadv() 250 auio.uio_resid = 0; in do_filereadv() 329 struct uio auio; in dofilewrite() local 336 auio.uio_iovcnt = 1; in dofilewrite() 391 struct uio auio; in do_filewritev() local 447 auio.uio_iov = iov; in do_filewritev() [all …]
|
H A D | vfs_vnops.c | 532 struct uio auio; in vn_rdwr() local 543 auio.uio_iov = &aiov; in vn_rdwr() 544 auio.uio_iovcnt = 1; in vn_rdwr() 547 auio.uio_resid = len; in vn_rdwr() 549 auio.uio_rw = rw; in vn_rdwr() 584 struct uio auio; in vn_readdir() local 595 auio.uio_iov = &aiov; in vn_readdir() 596 auio.uio_iovcnt = 1; in vn_readdir() 1429 struct uio auio; in vn_extattr_get() local 1437 auio.uio_iovcnt = 1; in vn_extattr_get() [all …]
|
H A D | vfs_xattr.c | 219 struct uio auio; in extattr_set_vp() local 252 auio.uio_iov = &aiov; in extattr_set_vp() 253 auio.uio_iovcnt = 1; in extattr_set_vp() 254 auio.uio_offset = 0; in extattr_set_vp() 269 cnt -= auio.uio_resid; in extattr_set_vp() 306 auio.uio_iovcnt = 1; in extattr_get_vp() 307 auio.uio_offset = 0; in extattr_get_vp() 316 auiop = &auio; in extattr_get_vp() 387 auio.uio_iovcnt = 1; in extattr_list_vp() 388 auio.uio_offset = 0; in extattr_list_vp() [all …]
|
H A D | uipc_syscalls.c | 545 struct uio auio; in do_sys_sendmsg_so() local 569 auio.uio_iov = iov; in do_sys_sendmsg_so() 576 auio.uio_resid = 0; in do_sys_sendmsg_so() 580 tiov = auio.uio_iov; in do_sys_sendmsg_so() 628 len = auio.uio_resid; in do_sys_sendmsg_so() 922 struct uio auio; in do_sys_recvmsg_so() local 947 auio.uio_iov = iov; in do_sys_recvmsg_so() 953 auio.uio_resid = 0; in do_sys_recvmsg_so() 957 tiov = auio.uio_iov; in do_sys_recvmsg_so() 976 len = auio.uio_resid; in do_sys_recvmsg_so() [all …]
|
H A D | kern_ktrace.c | 1279 struct uio auio; in ktrwrite() local 1286 auio.uio_iov = iov = &aiov[0]; in ktrwrite() 1287 auio.uio_offset = 0; in ktrwrite() 1288 auio.uio_rw = UIO_WRITE; in ktrwrite() 1289 auio.uio_resid = 0; in ktrwrite() 1290 auio.uio_iovcnt = 0; in ktrwrite() 1291 UIO_SETUP_SYSSPACE(&auio); in ktrwrite() 1321 auio.uio_resid += hlen; in ktrwrite() 1322 auio.uio_iovcnt++; in ktrwrite() 1327 auio.uio_iovcnt++; in ktrwrite() [all …]
|
/netbsd/sys/dev/audio/ |
H A D | audiobell.c | 106 struct uio auio; in audiobell() local 203 auio.uio_iov = &aiov; in audiobell() 204 auio.uio_iovcnt = 1; in audiobell() 205 auio.uio_offset = 0; in audiobell() 206 auio.uio_resid = len; in audiobell() 207 auio.uio_rw = UIO_WRITE; in audiobell() 208 UIO_SETUP_SYSSPACE(&auio); in audiobell() 209 if (audiobellwrite(file, &auio) != 0) in audiobell()
|
/netbsd/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | dmu_diff.c | 56 struct uio auio; in write_bytes() local 61 auio.uio_iov = &aiov; in write_bytes() 62 auio.uio_iovcnt = 1; in write_bytes() 63 auio.uio_resid = aiov.iov_len; in write_bytes() 64 auio.uio_rw = UIO_WRITE; in write_bytes() 65 auio.uio_offset = (off_t)-1; in write_bytes() 67 auio.uio_segflg = UIO_SYSSPACE; in write_bytes() 68 auio.uio_td = da->da_td; in write_bytes() 71 auio.uio_vmspace = vmspace_kernel(); in write_bytes() 78 return (fo_write(da->da_fp, &auio, da->da_td->td_ucred, 0, da->da_td)); in write_bytes() [all …]
|
/netbsd/sys/compat/linux32/common/ |
H A D | linux32_dirent.c | 109 struct uio auio; in linux32_sys_getdents() local 157 auio.uio_iov = &aiov; in linux32_sys_getdents() 158 auio.uio_iovcnt = 1; in linux32_sys_getdents() 159 auio.uio_rw = UIO_READ; in linux32_sys_getdents() 160 auio.uio_resid = buflen; in linux32_sys_getdents() 161 auio.uio_offset = off; in linux32_sys_getdents() 162 UIO_SETUP_SYSSPACE(&auio); in linux32_sys_getdents() 167 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in linux32_sys_getdents() 175 if ((len = buflen - auio.uio_resid) == 0) in linux32_sys_getdents()
|
/netbsd/sys/nfs/ |
H A D | nfs_clntsocket.c | 100 struct uio auio; in nfs_receive() local 169 auio.uio_iov = &aio; in nfs_receive() 170 auio.uio_iovcnt = 1; in nfs_receive() 171 auio.uio_rw = UIO_READ; in nfs_receive() 172 auio.uio_offset = 0; in nfs_receive() 174 UIO_SETUP_SYSSPACE(&auio); in nfs_receive() 223 auio.uio_resid = len; in nfs_receive() 227 &auio, mp, NULL, &rcvflg); in nfs_receive() 231 if (len != auio.uio_resid) in nfs_receive() 265 len -= auio.uio_resid; in nfs_receive() [all …]
|
H A D | nfs_clntsubs.c | 476 struct uio auio; in nfs_cookieheuristic() local 487 auio.uio_iov = &aiov; in nfs_cookieheuristic() 488 auio.uio_iovcnt = 1; in nfs_cookieheuristic() 489 auio.uio_rw = UIO_READ; in nfs_cookieheuristic() 490 auio.uio_resid = NFS_DIRFRAGSIZ; in nfs_cookieheuristic() 491 auio.uio_offset = 0; in nfs_cookieheuristic() 492 UIO_SETUP_SYSSPACE(&auio); in nfs_cookieheuristic() 494 error = VOP_READDIR(vp, &auio, cred, &eof, &cookies, &nc); in nfs_cookieheuristic() 496 len = NFS_DIRFRAGSIZ - auio.uio_resid; in nfs_cookieheuristic()
|
H A D | nfs_srvsocket.c | 127 struct uio auio; in nfsrv_rcv() local 145 auio.uio_resid = 1000000000; in nfsrv_rcv() 148 error = (*so->so_receive)(so, &nam, &auio, &mp, NULL, &flags); in nfsrv_rcv() 160 slp->ns_cc += 1000000000 - auio.uio_resid; in nfsrv_rcv() 163 slp->ns_cc = 1000000000 - auio.uio_resid; in nfsrv_rcv() 181 auio.uio_resid = 1000000000; in nfsrv_rcv() 184 error = (*so->so_receive)(so, &nam, &auio, &mp, NULL, in nfsrv_rcv()
|
/netbsd/sys/compat/common/ |
H A D | vfs_syscalls_12.c | 126 struct uio auio; in compat_12_sys_getdirentries() local 169 auio.uio_iov = &aiov; in compat_12_sys_getdirentries() 170 auio.uio_iovcnt = 1; in compat_12_sys_getdirentries() 171 auio.uio_rw = UIO_READ; in compat_12_sys_getdirentries() 172 auio.uio_resid = buflen; in compat_12_sys_getdirentries() 173 auio.uio_offset = off; in compat_12_sys_getdirentries() 174 UIO_SETUP_SYSSPACE(&auio); in compat_12_sys_getdirentries() 179 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in compat_12_sys_getdirentries() 187 if ((len = buflen - auio.uio_resid) == 0) in compat_12_sys_getdirentries()
|
H A D | vfs_syscalls_43.c | 344 struct uio auio; in compat_43_sys_getdirentries() local 387 auio.uio_iov = &aiov; in compat_43_sys_getdirentries() 388 auio.uio_iovcnt = 1; in compat_43_sys_getdirentries() 389 auio.uio_rw = UIO_READ; in compat_43_sys_getdirentries() 390 auio.uio_resid = buflen; in compat_43_sys_getdirentries() 391 auio.uio_offset = off; in compat_43_sys_getdirentries() 392 UIO_SETUP_SYSSPACE(&auio); in compat_43_sys_getdirentries() 397 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in compat_43_sys_getdirentries() 405 if ((len = buflen - auio.uio_resid) == 0) in compat_43_sys_getdirentries()
|
H A D | vfs_syscalls_30.c | 215 struct uio auio; in compat_30_sys_getdents() local 246 auio.uio_iov = &aiov; in compat_30_sys_getdents() 247 auio.uio_iovcnt = 1; in compat_30_sys_getdents() 248 auio.uio_rw = UIO_READ; in compat_30_sys_getdents() 249 auio.uio_resid = buflen; in compat_30_sys_getdents() 250 auio.uio_offset = off; in compat_30_sys_getdents() 251 UIO_SETUP_SYSSPACE(&auio); in compat_30_sys_getdents() 256 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in compat_30_sys_getdents() 264 if ((len = buflen - auio.uio_resid) == 0) in compat_30_sys_getdents()
|
/netbsd/sys/rump/kern/lib/libsys_sunos/ |
H A D | rump_sunos_compat.c | 266 struct uio auio; in rump_sunos_sys_getdents() local 295 auio.uio_iov = &aiov; in rump_sunos_sys_getdents() 296 auio.uio_iovcnt = 1; in rump_sunos_sys_getdents() 297 auio.uio_rw = UIO_READ; in rump_sunos_sys_getdents() 298 auio.uio_resid = buflen; in rump_sunos_sys_getdents() 299 auio.uio_offset = off; in rump_sunos_sys_getdents() 300 UIO_SETUP_SYSSPACE(&auio); in rump_sunos_sys_getdents() 305 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in rump_sunos_sys_getdents() 313 if ((len = buflen - auio.uio_resid) == 0) in rump_sunos_sys_getdents()
|
/netbsd/external/cddl/osnet/sys/sys/ |
H A D | uio.h | 115 uio_t auio; in zfs_uiocopy() local 121 memcpy(&auio, uio, sizeof(*uio)); in zfs_uiocopy() 123 auio.uio_iov = &aiov; in zfs_uiocopy() 124 auio.uio_iovcnt = 1; in zfs_uiocopy() 129 error = uiomove(cp, cnt, &auio); in zfs_uiocopy()
|
/netbsd/sys/compat/netbsd32/ |
H A D | netbsd32_fs.c | 139 struct uio auio; in dofilereadv32() local 165 auio.uio_iov = iov; in dofilereadv32() 167 auio.uio_rw = UIO_READ; in dofilereadv32() 172 auio.uio_resid = 0; in dofilereadv32() 196 cnt = auio.uio_resid; in dofilereadv32() 202 cnt -= auio.uio_resid; in dofilereadv32() 245 struct uio auio; in dofilewritev32() local 271 auio.uio_iov = iov; in dofilewritev32() 278 auio.uio_resid = 0; in dofilewritev32() 302 cnt = auio.uio_resid; in dofilewritev32() [all …]
|
/netbsd/sys/ufs/lfs/ |
H A D | ulfs_quota1.c | 795 struct uio auio; in lfs_dq1get() local 800 auio.uio_iov = &aiov; in lfs_dq1get() 801 auio.uio_iovcnt = 1; in lfs_dq1get() 806 auio.uio_rw = UIO_READ; in lfs_dq1get() 807 UIO_SETUP_SYSSPACE(&auio); in lfs_dq1get() 842 struct uio auio; in lfs_dq1sync() local 854 auio.uio_iov = &aiov; in lfs_dq1sync() 855 auio.uio_iovcnt = 1; in lfs_dq1sync() 860 auio.uio_rw = UIO_WRITE; in lfs_dq1sync() 861 UIO_SETUP_SYSSPACE(&auio); in lfs_dq1sync() [all …]
|
H A D | ulfs_extattr.c | 523 struct uio auio; in ulfs_extattr_iterate_directory() local 533 auio.uio_iov = &aiov; in ulfs_extattr_iterate_directory() 534 auio.uio_iovcnt = 1; in ulfs_extattr_iterate_directory() 535 auio.uio_rw = UIO_READ; in ulfs_extattr_iterate_directory() 536 auio.uio_offset = 0; in ulfs_extattr_iterate_directory() 537 UIO_SETUP_SYSSPACE(&auio); in ulfs_extattr_iterate_directory() 541 vargs.a_uio = &auio; in ulfs_extattr_iterate_directory() 753 struct uio auio; in ulfs_extattr_enable() local 781 auio.uio_iov = &aiov; in ulfs_extattr_enable() 782 auio.uio_iovcnt = 1; in ulfs_extattr_enable() [all …]
|
/netbsd/sys/ufs/ufs/ |
H A D | ufs_quota1.c | 805 struct uio auio; in dq1get() local 810 auio.uio_iov = &aiov; in dq1get() 811 auio.uio_iovcnt = 1; in dq1get() 816 auio.uio_rw = UIO_READ; in dq1get() 817 UIO_SETUP_SYSSPACE(&auio); in dq1get() 852 struct uio auio; in dq1sync() local 864 auio.uio_iov = &aiov; in dq1sync() 865 auio.uio_iovcnt = 1; in dq1sync() 870 auio.uio_rw = UIO_WRITE; in dq1sync() 871 UIO_SETUP_SYSSPACE(&auio); in dq1sync() [all …]
|
H A D | ufs_extattr.c | 519 struct uio auio; in ufs_extattr_iterate_directory() local 529 auio.uio_iov = &aiov; in ufs_extattr_iterate_directory() 530 auio.uio_iovcnt = 1; in ufs_extattr_iterate_directory() 531 auio.uio_rw = UIO_READ; in ufs_extattr_iterate_directory() 532 auio.uio_offset = 0; in ufs_extattr_iterate_directory() 533 UIO_SETUP_SYSSPACE(&auio); in ufs_extattr_iterate_directory() 537 vargs.a_uio = &auio; in ufs_extattr_iterate_directory() 755 struct uio auio; in ufs_extattr_enable() local 783 auio.uio_iov = &aiov; in ufs_extattr_enable() 784 auio.uio_iovcnt = 1; in ufs_extattr_enable() [all …]
|
/netbsd/sys/ufs/ext2fs/ |
H A D | ext2fs_lookup.c | 163 struct uio auio; in ext2fs_readdir() local 180 auio = *uio; in ext2fs_readdir() 181 auio.uio_iov = &aiov; in ext2fs_readdir() 182 auio.uio_iovcnt = 1; in ext2fs_readdir() 184 auio.uio_resid = e2fs_count; in ext2fs_readdir() 185 UIO_SETUP_SYSSPACE(&auio); in ext2fs_readdir() 882 struct uio auio; in ext2fs_direnter() local 927 auio.uio_iov = &aiov; in ext2fs_direnter() 928 auio.uio_iovcnt = 1; in ext2fs_direnter() 929 auio.uio_rw = UIO_WRITE; in ext2fs_direnter() [all …]
|
/netbsd/sys/compat/linux/common/ |
H A D | linux_file64.c | 410 struct uio auio; in linux_sys_getdents64() local 451 auio.uio_iov = &aiov; in linux_sys_getdents64() 452 auio.uio_iovcnt = 1; in linux_sys_getdents64() 453 auio.uio_rw = UIO_READ; in linux_sys_getdents64() 454 auio.uio_resid = buflen; in linux_sys_getdents64() 455 auio.uio_offset = off; in linux_sys_getdents64() 456 UIO_SETUP_SYSSPACE(&auio); in linux_sys_getdents64() 461 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in linux_sys_getdents64() 469 if ((len = buflen - auio.uio_resid) == 0) in linux_sys_getdents64()
|
/netbsd/sys/fs/nfs/common/ |
H A D | krpc_subr.c | 199 struct uio auio; in krpc_call() local 345 bzero(&auio, sizeof(auio)); in krpc_call() 346 auio.uio_resid = len = 1<<16; in krpc_call() 348 error = soreceive(so, &from, &auio, &m, NULL, &rcvflg); in krpc_call() 355 len -= auio.uio_resid; in krpc_call()
|
/netbsd/sys/dev/mca/ |
H A D | ed_mca.c | 546 struct uio auio; in edmcaioctl() 551 auio.uio_iov = &aiov; in edmcaioctl() 552 auio.uio_iovcnt = 1; in edmcaioctl() 553 auio.uio_resid = fop->df_count; in edmcaioctl() 554 auio.uio_segflg = 0; in edmcaioctl() 555 auio.uio_offset = in edmcaioctl() 557 auio.uio_lwp = l; in edmcaioctl() 559 &auio); in edmcaioctl() 560 fop->df_count -= auio.uio_resid; in edmcaioctl()
|