Lines Matching refs:len
50 KASSERT(len >= 0, ("%s: len %d < 0", __func__, len)); \
62 cuio_copydata(struct uio* uio, int off, int len, caddr_t cp)
69 while (len > 0) {
71 count = min(iov->iov_len - off, len);
73 len -= count;
82 cuio_copyback(struct uio* uio, int off, int len, caddr_t cp)
89 while (len > 0) {
91 count = min(iov->iov_len - off, len);
93 len -= count;
107 int ind, len;
111 len = uio->uio_iov[ind].iov_len;
112 if (len > loc) {
116 loc -= len;
131 * the beginning, continuing for "len" bytes.
134 cuio_apply(struct uio *uio, int off, int len, int (*f)(void *, void *, u_int),
143 while (len > 0) {
145 count = min(iov->iov_len - off, len);
149 len -= count;
182 crypto_apply(int flags, caddr_t buf, int off, int len,
188 error = m_apply((struct mbuf *)buf, off, len, f, arg);
190 error = cuio_apply((struct uio *)buf, off, len, f, arg);
192 error = (*f)(arg, buf + off, len);