Lines Matching refs:off
49 KASSERT(off >= 0, ("%s: off %d < 0", __func__, off)); \
51 while (off > 0) { \
53 if (off < iov->iov_len) \
55 off -= iov->iov_len; \
62 cuio_copydata(struct uio* uio, int off, int len, caddr_t cp)
71 count = min(iov->iov_len - off, len);
72 bcopy(((caddr_t)iov->iov_base) + off, cp, count);
75 off = 0;
82 cuio_copyback(struct uio* uio, int off, int len, c_caddr_t cp)
91 count = min(iov->iov_len - off, len);
92 bcopy(cp, ((caddr_t)iov->iov_base) + off, count);
95 off = 0;
105 cuio_getptr(struct uio *uio, int loc, int *off)
113 *off = loc;
122 *off = uio->uio_iov[ind].iov_len;
130 * Apply function f to the data in an iovec list starting "off" bytes from
134 cuio_apply(struct uio *uio, int off, int len, int (*f)(void *, void *, u_int),
145 count = min(iov->iov_len - off, len);
146 rval = (*f)(arg, ((caddr_t)iov->iov_base) + off, count);
150 off = 0;
158 crypto_copyback(int flags, caddr_t buf, int off, int size, c_caddr_t in)
162 m_copyback((struct mbuf *)buf, off, size, in);
164 cuio_copyback((struct uio *)buf, off, size, in);
166 bcopy(in, buf + off, size);
170 crypto_copydata(int flags, caddr_t buf, int off, int size, caddr_t out)
174 m_copydata((struct mbuf *)buf, off, size, out);
176 cuio_copydata((struct uio *)buf, off, size, out);
178 bcopy(buf + off, out, size);
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);