Lines Matching refs:partlen
86 size_t partlen = min(iov->iov[iov->i].iov_len, len); in vringh_kiov_advance() local
88 iov->consumed += partlen; in vringh_kiov_advance()
89 iov->iov[iov->i].iov_len -= partlen; in vringh_kiov_advance()
90 iov->iov[iov->i].iov_base += partlen; in vringh_kiov_advance()
101 len -= partlen; in vringh_kiov_advance()
117 size_t partlen; in vringh_iov_xfer() local
119 partlen = min(iov->iov[iov->i].iov_len, len); in vringh_iov_xfer()
120 err = xfer(vrh, iov->iov[iov->i].iov_base, ptr, partlen); in vringh_iov_xfer()
123 done += partlen; in vringh_iov_xfer()
124 len -= partlen; in vringh_iov_xfer()
125 ptr += partlen; in vringh_iov_xfer()
126 iov->consumed += partlen; in vringh_iov_xfer()
127 iov->iov[iov->i].iov_len -= partlen; in vringh_iov_xfer()
128 iov->iov[iov->i].iov_base += partlen; in vringh_iov_xfer()