Lines Matching refs:cnt
107 size_t cnt;
117 cnt = iov->iov_len;
118 if (cnt == 0) {
124 if (cnt > n)
125 cnt = n;
132 cnt);
135 cnt);
140 iov->iov_base = (char *)iov->iov_base + cnt;
141 iov->iov_len -= cnt;
142 uio->uio_resid -= cnt;
143 uio->uio_offset += cnt;
144 cp += cnt;
145 KDASSERT(cnt <= n);
146 n -= cnt;
174 size_t cnt;
192 cnt = len;
193 if (cnt == 0) {
201 if (cnt > n)
202 cnt = n;
208 error = copyout_vmspace(vm, cp, base, cnt);
210 error = copyin_vmspace(vm, base, cp, cnt);
215 base += cnt;
216 len -= cnt;
217 resid -= cnt;
218 cp += cnt;
219 KDASSERT(cnt <= n);
220 n -= cnt;
230 size_t cnt;
238 cnt = iov->iov_len;
239 if (cnt == 0) {
245 if (cnt > n)
246 cnt = n;
247 iov->iov_base = (char *)iov->iov_base + cnt;
248 iov->iov_len -= cnt;
249 uio->uio_resid -= cnt;
250 uio->uio_offset += cnt;
251 KDASSERT(cnt <= n);
252 n -= cnt;