/freebsd/sys/contrib/openzfs/module/icp/core/ |
H A D | kcf_prov_lib.c | 42 zfs_uio_t *uiop = data->cd_uio; in crypto_uio_copy_to_data() local 50 if (zfs_uio_segflg(uiop) != UIO_SYSSPACE) { in crypto_uio_copy_to_data() 58 offset = zfs_uio_index_at_offset(uiop, offset, &vec_idx); in crypto_uio_copy_to_data() 60 if (vec_idx == zfs_uio_iovcnt(uiop) && length > 0) { in crypto_uio_copy_to_data() 68 while (vec_idx < zfs_uio_iovcnt(uiop) && length > 0) { in crypto_uio_copy_to_data() 69 cur_len = MIN(zfs_uio_iovlen(uiop, vec_idx) - in crypto_uio_copy_to_data() 72 datap = (uchar_t *)(zfs_uio_iovbase(uiop, vec_idx) + offset); in crypto_uio_copy_to_data() 81 if (vec_idx == zfs_uio_iovcnt(uiop) && length > 0) { in crypto_uio_copy_to_data() 132 zfs_uio_t *uiop = input->cd_uio; in crypto_update_uio() local 148 offset = zfs_uio_index_at_offset(uiop, offset, &vec_idx); in crypto_update_uio() [all …]
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_io.c | 182 smbfs_readvnode(struct vnode *vp, struct uio *uiop, struct ucred *cred) in smbfs_readvnode() argument 194 if (uiop->uio_segflg == UIO_NOCOPY) in smbfs_readvnode() 201 if (uiop->uio_resid == 0) in smbfs_readvnode() 203 if (uiop->uio_offset < 0) in smbfs_readvnode() 207 td = uiop->uio_td; in smbfs_readvnode() 212 error = smbfs_readvdir(vp, uiop, cred); in smbfs_readvnode() 238 error = smb_read(smp->sm_share, np->n_fid, uiop, scred); in smbfs_readvnode() 244 smbfs_writevnode(struct vnode *vp, struct uio *uiop, in smbfs_writevnode() argument 257 SMBVDEBUG("ofs=%jd,resid=%zd\n", (intmax_t)uiop->uio_offset, in smbfs_writevnode() 258 uiop->uio_resid); in smbfs_writevnode() [all …]
|
H A D | smbfs_node.h | 96 int smbfs_readvnode(struct vnode *vp, struct uio *uiop, struct ucred *cred); 97 int smbfs_writevnode(struct vnode *vp, struct uio *uiop, struct ucred *cred, int ioflag);
|
/freebsd/sys/kern/ |
H A D | subr_mchain.c | 271 mb_put_uio(struct mbchain *mbp, struct uio *uiop, int size) in mb_put_uio() argument 276 mtype = (uiop->uio_segflg == UIO_SYSSPACE) ? MB_MSYSTEM : MB_MUSER; in mb_put_uio() 278 while (size > 0 && uiop->uio_resid) { in mb_put_uio() 279 if (uiop->uio_iovcnt <= 0 || uiop->uio_iov == NULL) in mb_put_uio() 281 left = uiop->uio_iov->iov_len; in mb_put_uio() 283 uiop->uio_iov++; in mb_put_uio() 284 uiop->uio_iovcnt--; in mb_put_uio() 289 error = mb_put_mem(mbp, uiop->uio_iov->iov_base, left, mtype); in mb_put_uio() 292 uiop->uio_offset += left; in mb_put_uio() 293 uiop->uio_resid -= left; in mb_put_uio() [all …]
|
H A D | subr_uio.c | 373 copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop) in copyinuio() argument 380 *uiop = NULL; in copyinuio() 403 *uiop = uio; in copyinuio() 429 cloneuio(struct uio *uiop) in cloneuio() argument 435 iovlen = uiop->uio_iovcnt * sizeof(struct iovec); in cloneuio() 436 uio = allocuio(uiop->uio_iovcnt); in cloneuio() 438 *uio = *uiop; in cloneuio() 440 bcopy(uiop->uio_iov, uio->uio_iov, iovlen); in cloneuio()
|
H A D | vfs_aio.c | 552 if (job->uiop != &job->uio) in aio_free_entry() 553 freeuio(job->uiop); in aio_free_entry() 768 job->uiop->uio_td = td; in aio_process_rw() 772 cnt = job->uiop->uio_resid; in aio_process_rw() 784 if (job->uiop->uio_resid == 0) in aio_process_rw() 787 error = fo_read(fp, job->uiop, fp->f_cred, in aio_process_rw() 793 error = fo_write(fp, job->uiop, fp->f_cred, (job->ioflags & in aio_process_rw() 806 if (error != 0 && job->uiop->uio_resid != cnt) { in aio_process_rw() 816 cnt -= job->uiop->uio_resid; in aio_process_rw() 1230 iovcnt = job->uiop->uio_iovcnt; in aio_qbio() [all …]
|
H A D | sys_socket.c | 618 job_total_nbytes = job->uiop->uio_resid + job->aio_done; in soaio_process_job() 620 cnt = job->uiop->uio_resid; in soaio_process_job() 621 job->uiop->uio_offset = 0; in soaio_process_job() 622 job->uiop->uio_td = td; in soaio_process_job() 638 error = soreceive(so, NULL, job->uiop, NULL, NULL, in soaio_process_job() 650 error = sousrsend(so, NULL, job->uiop, NULL, flags, in soaio_process_job() 656 done += cnt - job->uiop->uio_resid; in soaio_process_job()
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clcomsubs.c | 55 nfsm_uiombuf(struct nfsrv_descript *nd, struct uio *uiop, int siz) in nfsm_uiombuf() argument 63 KASSERT(uiop->uio_iovcnt == 1, ("nfsm_uiotombuf: iovcnt != 1")); in nfsm_uiombuf() 75 left = uiop->uio_iov->iov_len; in nfsm_uiombuf() 76 uiocp = uiop->uio_iov->iov_base; in nfsm_uiombuf() 105 if (uiop->uio_segflg == UIO_SYSSPACE) in nfsm_uiombuf() 120 uiop->uio_offset += xfer; in nfsm_uiombuf() 121 uiop->uio_resid -= xfer; in nfsm_uiombuf() 123 tcp = (char *)uiop->uio_iov->iov_base; in nfsm_uiombuf() 125 uiop->uio_iov->iov_base = (void *)tcp; in nfsm_uiombuf() 126 uiop->uio_iov->iov_len -= uiosiz; in nfsm_uiombuf() [all …]
|
H A D | nfs_clbio.c | 72 static int nfs_directio_write(struct vnode *vp, struct uio *uiop, 764 nfs_directio_write(struct vnode *vp, struct uio *uiop, struct ucred *cred, in nfs_directio_write() 770 struct thread *td = uiop->uio_td; in nfs_directio_write() 777 while (uiop->uio_resid > 0) { in nfs_directio_write() 778 size = MIN(uiop->uio_resid, wsize); in nfs_directio_write() 779 size = MIN(uiop->uio_iov->iov_len, size); in nfs_directio_write() 780 iov.iov_base = uiop->uio_iov->iov_base; in nfs_directio_write() 784 uio.uio_offset = uiop->uio_offset; in nfs_directio_write() 786 uio.uio_segflg = uiop->uio_segflg; in nfs_directio_write() 810 uiop in ncl_write() 735 nfs_directio_write(struct vnode * vp,struct uio * uiop,struct ucred * cred,int ioflag) nfs_directio_write() argument 1524 struct uio *uiop; ncl_doio() local [all...] |
H A D | nfs_clrpcops.c | 1746 nfsrpc_readlink(vnode_t vp, struct uio *uiop, struct ucred *cred, in nfsrpc_readlink() argument 1787 error = nfsm_mbufuio(nd, uiop, len); in nfsrpc_readlink() 1802 nfsrpc_read(vnode_t vp, struct uio *uiop, struct ucred *cred, in nfsrpc_read() argument 1828 error = nfsrpc_readrpc(vp, uiop, newcred, &stateid, p, nap, in nfsrpc_read() 1870 nfsrpc_readrpc(vnode_t vp, struct uio *uiop, struct ucred *cred, in nfsrpc_readrpc() argument 1883 tsiz = uiop->uio_resid; in nfsrpc_readrpc() 1884 tmp_off = uiop->uio_offset + tsiz; in nfsrpc_readrpc() 1886 if (tmp_off > nmp->nm_maxfilesize || tmp_off < uiop->uio_offset) { in nfsrpc_readrpc() 1901 *tl++ = txdr_unsigned(uiop->uio_offset); in nfsrpc_readrpc() 1905 txdr_hyper(uiop->uio_offset, tl); in nfsrpc_readrpc() [all …]
|
H A D | nfs_clvnops.c | 1554 ncl_readlinkrpc(struct vnode *vp, struct uio *uiop, struct ucred *cred) in ncl_readlinkrpc() argument 1559 error = nfsrpc_readlink(vp, uiop, cred, uiop->uio_td, &nfsva, in ncl_readlinkrpc() 1567 error = nfscl_maperr(uiop->uio_td, error, (uid_t)0, (gid_t)0); in ncl_readlinkrpc() 1576 ncl_readrpc(struct vnode *vp, struct uio *uiop, struct ucred *cred) in ncl_readrpc() argument 1586 error = nfscl_doiods(vp, uiop, NULL, NULL, in ncl_readrpc() 1587 NFSV4OPEN_ACCESSREAD, 0, cred, uiop->uio_td); in ncl_readrpc() 1590 error = nfsrpc_read(vp, uiop, cred, uiop->uio_td, &nfsva, in ncl_readrpc() 1598 error = nfscl_maperr(uiop->uio_td, error, (uid_t)0, (gid_t)0); in ncl_readrpc() 1606 ncl_writerpc(struct vnode *vp, struct uio *uiop, struct ucred *cred, in ncl_writerpc() argument 1617 error = nfscl_doiods(vp, uiop, iomode, must_commit, in ncl_writerpc() [all …]
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_io.c | 117 tarfs_io_read(struct tarfs_mount *tmp, bool raw, struct uio *uiop) in tarfs_io_read() argument 120 off_t off = uiop->uio_offset; in tarfs_io_read() 121 size_t len = uiop->uio_resid; in tarfs_io_read() 128 error = VOP_READ(tmp->vp, uiop, IO_NODELOCKED, in tarfs_io_read() 129 uiop->uio_td->td_ucred); in tarfs_io_read() 136 error = VOP_READ(tmp->znode, uiop, in tarfs_io_read() 138 uiop->uio_td->td_ucred); in tarfs_io_read() 143 (size_t)off, len, error, uiop->uio_resid); in tarfs_io_read() 318 tarfs_zread_zstd(struct tarfs_zio *zio, struct uio *uiop) in tarfs_zread_zstd() argument 332 off_t off = uiop->uio_offset; in tarfs_zread_zstd() [all …]
|
H A D | tarfs_vnops.c | 509 struct uio *uiop; in tarfs_readlink() 515 uiop = ap->a_uio; in tarfs_readlink() 524 if (uiop->uio_offset < 0) in tarfs_reclaim() 531 tnp, tnp->name, uiop->uio_offset, uiop->uio_resid); in tarfs_reclaim() 533 while ((resid = uiop->uio_resid) > 0) { in tarfs_reclaim() 534 if (tnp->size <= uiop->uio_offset) in tarfs_reclaim() 536 len = MIN(tnp->size - uiop->uio_offset, resid); in tarfs_reclaim() 540 error = tarfs_read_file(tnp, len, uiop); in tarfs_print() 541 if (error != 0 || resid == uiop in tarfs_print() 455 struct uio *uiop; tarfs_read() local 498 struct uio *uiop; tarfs_readlink() local [all...] |
H A D | tarfs_subr.c | 418 tarfs_read_file(struct tarfs_node *tnp, size_t len, struct uio *uiop) in tarfs_read_file() argument 427 tnp->name, uiop->uio_offset, resid); in tarfs_read_file() 429 if (uiop->uio_offset > tnp->blk[i].o + tnp->blk[i].l) { in tarfs_read_file() 434 uiop->uio_offset < tnp->blk[i].o) { in tarfs_read_file() 436 copylen = tnp->blk[i].o - uiop->uio_offset; in tarfs_read_file() 441 auio = *uiop; in tarfs_read_file() 450 uiop->uio_offset += copylen - auio.uio_resid; in tarfs_read_file() 451 uiop->uio_resid -= copylen - auio.uio_resid; in tarfs_read_file() 455 uiop->uio_offset < tnp->blk[i].o + tnp->blk[i].l) { in tarfs_read_file() 460 auio = *uiop; in tarfs_read_file() [all …]
|
H A D | tarfs.h | 241 int tarfs_read_file(struct tarfs_node *tnp, size_t len, struct uio *uiop); 246 struct uio *uiop);
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_io.c | 742 struct uio *uiop; in fuse_io_strategy() local 774 uiop = &uio; in fuse_io_strategy() 775 uiop->uio_iov = &io; in fuse_io_strategy() 776 uiop->uio_iovcnt = 1; in fuse_io_strategy() 777 uiop->uio_segflg = UIO_SYSSPACE; in fuse_io_strategy() 778 uiop->uio_td = curthread; in fuse_io_strategy() 793 io.iov_len = uiop->uio_resid = bp->b_bcount; in fuse_io_strategy() 795 uiop->uio_rw = UIO_READ; in fuse_io_strategy() 797 uiop->uio_offset = ((off_t)bp->b_lblkno) * biosize; in fuse_io_strategy() 798 error = fuse_read_directbackend(vp, uiop, cred, fufh); in fuse_io_strategy() [all …]
|
/freebsd/sys/sys/ |
H A D | uio.h | 81 struct uio *cloneuio(struct uio *uiop); 84 int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop);
|
H A D | mchain.h | 80 int mb_put_uio(struct mbchain *mbp, struct uio *uiop, int size); 99 int md_get_uio(struct mdchain *mdp, struct uio *uiop, int size);
|
H A D | aio.h | 155 struct uio *uiop; /* (*) Possibly malloced uio */ member
|
/freebsd/sys/nfsclient/ |
H A D | nfs.h | 157 int (*nr_readrpc)(struct vnode *vp, struct uio *uiop, 159 int (*nr_writerpc)(struct vnode *vp, struct uio *uiop, 162 int (*nr_readlinkrpc)(struct vnode *vp, struct uio *uiop,
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdport.c | 869 struct uio io, *uiop = &io; in nfsvno_readlink() local 875 uiop->uio_iovcnt = nfsrv_createiovec_extpgs(len, maxextsiz, in nfsvno_readlink() 878 uiop->uio_iovcnt = nfsrv_createiovec(len, &mp3, &mp, &iv); in nfsvno_readlink() 879 uiop->uio_iov = iv; in nfsvno_readlink() 880 uiop->uio_offset = 0; in nfsvno_readlink() 881 uiop->uio_resid = len; in nfsvno_readlink() 882 uiop->uio_rw = UIO_READ; in nfsvno_readlink() 883 uiop->uio_segflg = UIO_SYSSPACE; in nfsvno_readlink() 884 uiop->uio_td = NULL; in nfsvno_readlink() 885 error = VOP_READLINK(vp, uiop, cred); in nfsvno_readlink() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/ |
H A D | modes.c | 46 zfs_uio_t *uiop = out->cd_uio; in crypto_init_ptrs() local 50 offset = zfs_uio_index_at_offset(uiop, offset, &vec_idx); in crypto_init_ptrs()
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_util.h | 118 struct uio **uiop);
|
H A D | freebsd32_misc.c | 1194 freebsd32_copyinuio(const struct iovec32 *iovp, u_int iovcnt, struct uio **uiop) in freebsd32_copyinuio() argument 1201 *uiop = NULL; in freebsd32_copyinuio() 1227 *uiop = uio; in freebsd32_copyinuio()
|
/freebsd/sys/fs/nfs/ |
H A D | nfs_commonsubs.c | 653 nfsm_mbufuio(struct nfsrv_descript *nd, struct uio *uiop, int siz) in nfsm_mbufuio() argument 666 if (uiop->uio_iovcnt <= 0 || uiop->uio_iov == NULL) { in nfsm_mbufuio() 670 left = uiop->uio_iov->iov_len; in nfsm_mbufuio() 671 uiocp = uiop->uio_iov->iov_base; in nfsm_mbufuio() 688 if (uiop->uio_segflg == UIO_SYSSPACE) in nfsm_mbufuio() 699 uiop->uio_offset += xfer; in nfsm_mbufuio() 700 uiop->uio_resid -= xfer; in nfsm_mbufuio() 702 if (uiop->uio_iov->iov_len <= siz) { in nfsm_mbufuio() 703 uiop->uio_iovcnt--; in nfsm_mbufuio() 704 uiop->uio_iov++; in nfsm_mbufuio() [all …]
|