• Home
  • Raw
  • Download

Lines Matching refs:skip

22 	size_t skip = i->iov_offset;				\
24 len = min(n, __p->iov_len - skip); \
26 base = __p->iov_base + skip; \
29 skip += len; \
31 if (skip < __p->iov_len) \
35 skip = 0; \
37 i->iov_offset = skip; \
43 unsigned skip = i->iov_offset; \
45 unsigned offset = p->bv_offset + skip; \
50 len = min(min(n, (size_t)(p->bv_len - skip)), \
56 skip += len; \
57 if (skip == p->bv_len) { \
58 skip = 0; \
65 i->iov_offset = skip; \
176 size_t skip, copy, left, wanted; in copy_page_to_iter_iovec() local
190 skip = i->iov_offset; in copy_page_to_iter_iovec()
191 buf = iov->iov_base + skip; in copy_page_to_iter_iovec()
192 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
201 skip += copy; in copy_page_to_iter_iovec()
211 skip = copy; in copy_page_to_iter_iovec()
222 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
230 skip += copy; in copy_page_to_iter_iovec()
239 skip = copy; in copy_page_to_iter_iovec()
246 if (skip == iov->iov_len) { in copy_page_to_iter_iovec()
248 skip = 0; in copy_page_to_iter_iovec()
253 i->iov_offset = skip; in copy_page_to_iter_iovec()
260 size_t skip, copy, left, wanted; in copy_page_from_iter_iovec() local
274 skip = i->iov_offset; in copy_page_from_iter_iovec()
275 buf = iov->iov_base + skip; in copy_page_from_iter_iovec()
276 copy = min(bytes, iov->iov_len - skip); in copy_page_from_iter_iovec()
285 skip += copy; in copy_page_from_iter_iovec()
295 skip = copy; in copy_page_from_iter_iovec()
306 copy = min(bytes, iov->iov_len - skip); in copy_page_from_iter_iovec()
314 skip += copy; in copy_page_from_iter_iovec()
323 skip = copy; in copy_page_from_iter_iovec()
330 if (skip == iov->iov_len) { in copy_page_from_iter_iovec()
332 skip = 0; in copy_page_from_iter_iovec()
337 i->iov_offset = skip; in copy_page_from_iter_iovec()
451 size_t skip; in fault_in_iov_iter_readable() local
454 for (p = i->iov, skip = i->iov_offset; count; p++, skip = 0) { in fault_in_iov_iter_readable()
455 size_t len = min(count, p->iov_len - skip); in fault_in_iov_iter_readable()
460 ret = fault_in_readable(p->iov_base + skip, len); in fault_in_iov_iter_readable()
490 size_t skip; in fault_in_iov_iter_writeable() local
493 for (p = i->iov, skip = i->iov_offset; count; p++, skip = 0) { in fault_in_iov_iter_writeable()
494 size_t len = min(count, p->iov_len - skip); in fault_in_iov_iter_writeable()
499 ret = fault_in_safe_writeable(p->iov_base + skip, len); in fault_in_iov_iter_writeable()
1284 size_t skip = i->iov_offset; in iov_iter_alignment_iovec() local
1287 for (k = 0; k < i->nr_segs; k++, skip = 0) { in iov_iter_alignment_iovec()
1288 size_t len = i->iov[k].iov_len - skip; in iov_iter_alignment_iovec()
1290 res |= (unsigned long)i->iov[k].iov_base + skip; in iov_iter_alignment_iovec()
1306 unsigned skip = i->iov_offset; in iov_iter_alignment_bvec() local
1309 for (k = 0; k < i->nr_segs; k++, skip = 0) { in iov_iter_alignment_bvec()
1310 size_t len = i->bvec[k].bv_len - skip; in iov_iter_alignment_bvec()
1311 res |= (unsigned long)i->bvec[k].bv_offset + skip; in iov_iter_alignment_bvec()
1481 size_t skip; in first_iovec_segment() local
1484 for (k = 0, skip = i->iov_offset; k < i->nr_segs; k++, skip = 0) { in first_iovec_segment()
1485 unsigned long addr = (unsigned long)i->iov[k].iov_base + skip; in first_iovec_segment()
1486 size_t len = i->iov[k].iov_len - skip; in first_iovec_segment()
1507 size_t skip = i->iov_offset, len; in first_bvec_segment() local
1509 len = i->bvec->bv_len - skip; in first_bvec_segment()
1512 skip += i->bvec->bv_offset; in first_bvec_segment()
1513 page = i->bvec->bv_page + skip / PAGE_SIZE; in first_bvec_segment()
1514 len += (*start = skip % PAGE_SIZE); in first_bvec_segment()
1767 size_t skip = i->iov_offset, size = i->count; in iov_npages() local
1771 for (p = i->iov; size; skip = 0, p++) { in iov_npages()
1772 unsigned offs = offset_in_page(p->iov_base + skip); in iov_npages()
1773 size_t len = min(p->iov_len - skip, size); in iov_npages()
1787 size_t skip = i->iov_offset, size = i->count; in bvec_npages() local
1791 for (p = i->bvec; size; skip = 0, p++) { in bvec_npages()
1792 unsigned offs = (p->bv_offset + skip) % PAGE_SIZE; in bvec_npages()
1793 size_t len = min(p->bv_len - skip, size); in bvec_npages()