Lines Matching refs:skip
30 size_t skip = i->iov_offset; \
32 len = min(n, __p->iov_len - skip); \
34 base = __p->iov_base + skip; \
37 skip += len; \
39 if (skip < __p->iov_len) \
43 skip = 0; \
45 i->iov_offset = skip; \
51 unsigned skip = i->iov_offset; \
53 unsigned offset = p->bv_offset + skip; \
58 len = min(min(n, (size_t)(p->bv_len - skip)), \
64 skip += len; \
65 if (skip == p->bv_len) { \
66 skip = 0; \
73 i->iov_offset = skip; \
221 size_t skip; in fault_in_iov_iter_readable() local
224 for (p = iter_iov(i), skip = i->iov_offset; count; p++, skip = 0) { in fault_in_iov_iter_readable()
225 size_t len = min(count, p->iov_len - skip); in fault_in_iov_iter_readable()
230 ret = fault_in_readable(p->iov_base + skip, len); in fault_in_iov_iter_readable()
264 size_t skip; in fault_in_iov_iter_writeable() local
267 for (p = iter_iov(i), skip = i->iov_offset; count; p++, skip = 0) { in fault_in_iov_iter_writeable()
268 size_t len = min(count, p->iov_len - skip); in fault_in_iov_iter_writeable()
273 ret = fault_in_safe_writeable(p->iov_base + skip, len); in fault_in_iov_iter_writeable()
813 size_t skip = i->iov_offset; in iov_iter_aligned_iovec() local
816 for (k = 0; k < i->nr_segs; k++, skip = 0) { in iov_iter_aligned_iovec()
818 size_t len = iov->iov_len - skip; in iov_iter_aligned_iovec()
824 if ((unsigned long)(iov->iov_base + skip) & addr_mask) in iov_iter_aligned_iovec()
838 unsigned skip = i->iov_offset; in iov_iter_aligned_bvec() local
841 for (k = 0; k < i->nr_segs; k++, skip = 0) { in iov_iter_aligned_bvec()
842 size_t len = i->bvec[k].bv_len - skip; in iov_iter_aligned_bvec()
848 if ((unsigned long)(i->bvec[k].bv_offset + skip) & addr_mask) in iov_iter_aligned_bvec()
900 size_t skip = i->iov_offset; in iov_iter_alignment_iovec() local
903 for (k = 0; k < i->nr_segs; k++, skip = 0) { in iov_iter_alignment_iovec()
905 size_t len = iov->iov_len - skip; in iov_iter_alignment_iovec()
907 res |= (unsigned long)iov->iov_base + skip; in iov_iter_alignment_iovec()
923 unsigned skip = i->iov_offset; in iov_iter_alignment_bvec() local
926 for (k = 0; k < i->nr_segs; k++, skip = 0) { in iov_iter_alignment_bvec()
927 size_t len = i->bvec[k].bv_len - skip; in iov_iter_alignment_bvec()
928 res |= (unsigned long)i->bvec[k].bv_offset + skip; in iov_iter_alignment_bvec()
1063 size_t skip; in first_iovec_segment() local
1069 for (k = 0, skip = i->iov_offset; k < i->nr_segs; k++, skip = 0) { in first_iovec_segment()
1071 size_t len = iov->iov_len - skip; in first_iovec_segment()
1077 return (unsigned long)iov->iov_base + skip; in first_iovec_segment()
1087 size_t skip = i->iov_offset, len; in first_bvec_segment() local
1089 len = i->bvec->bv_len - skip; in first_bvec_segment()
1092 skip += i->bvec->bv_offset; in first_bvec_segment()
1093 page = i->bvec->bv_page + skip / PAGE_SIZE; in first_bvec_segment()
1094 *start = skip % PAGE_SIZE; in first_bvec_segment()
1260 size_t skip = i->iov_offset, size = i->count; in iov_npages() local
1264 for (p = iter_iov(i); size; skip = 0, p++) { in iov_npages()
1265 unsigned offs = offset_in_page(p->iov_base + skip); in iov_npages()
1266 size_t len = min(p->iov_len - skip, size); in iov_npages()
1280 size_t skip = i->iov_offset, size = i->count; in bvec_npages() local
1284 for (p = i->bvec; size; skip = 0, p++) { in bvec_npages()
1285 unsigned offs = (p->bv_offset + skip) % PAGE_SIZE; in bvec_npages()
1286 size_t len = min(p->bv_len - skip, size); in bvec_npages()
1659 size_t skip = i->iov_offset, offset, size; in iov_iter_extract_bvec_pages() local
1665 size = min(maxsize, i->bvec->bv_len - skip); in iov_iter_extract_bvec_pages()
1671 skip = 0; in iov_iter_extract_bvec_pages()
1674 skip += i->bvec->bv_offset; in iov_iter_extract_bvec_pages()
1675 page = i->bvec->bv_page + skip / PAGE_SIZE; in iov_iter_extract_bvec_pages()
1676 offset = skip % PAGE_SIZE; in iov_iter_extract_bvec_pages()
1703 size_t skip = i->iov_offset, offset, len, size; in iov_iter_extract_kvec_pages() local
1709 size = min(maxsize, i->kvec->iov_len - skip); in iov_iter_extract_kvec_pages()
1715 skip = 0; in iov_iter_extract_kvec_pages()
1718 kaddr = i->kvec->iov_base + skip; in iov_iter_extract_kvec_pages()