Lines Matching refs:iov_offset
21 base = __p + i->iov_offset; \
23 i->iov_offset += len; \
30 size_t skip = i->iov_offset; \
45 i->iov_offset = skip; \
51 unsigned skip = i->iov_offset; \
73 i->iov_offset = skip; \
81 loff_t start = i->xarray_start + i->iov_offset; \
113 i->iov_offset += __off; \
216 n -= fault_in_readable(i->ubuf + i->iov_offset, n); in fault_in_iov_iter_readable()
224 for (p = iter_iov(i), skip = i->iov_offset; count; p++, skip = 0) { in fault_in_iov_iter_readable()
259 n -= fault_in_safe_writeable(i->ubuf + i->iov_offset, n); in fault_in_iov_iter_writeable()
267 for (p = iter_iov(i), skip = i->iov_offset; count; p++, skip = 0) { in fault_in_iov_iter_writeable()
297 .iov_offset = 0, in iov_iter_init()
611 size += i->iov_offset; in iov_iter_bvec_advance()
618 i->iov_offset = size; in iov_iter_bvec_advance()
631 size += i->iov_offset; // from beginning of current segment in iov_iter_iovec_advance()
637 i->iov_offset = size; in iov_iter_iovec_advance()
647 i->iov_offset += size; in iov_iter_advance()
669 if (unroll <= i->iov_offset) { in iov_iter_revert()
670 i->iov_offset -= unroll; in iov_iter_revert()
673 unroll -= i->iov_offset; in iov_iter_revert()
686 i->iov_offset = n - unroll; in iov_iter_revert()
698 i->iov_offset = n - unroll; in iov_iter_revert()
714 return min(i->count, iter_iov(i)->iov_len - i->iov_offset); in iov_iter_single_seg_count()
716 return min(i->count, i->bvec->bv_len - i->iov_offset); in iov_iter_single_seg_count()
733 .iov_offset = 0, in iov_iter_kvec()
750 .iov_offset = 0, in iov_iter_bvec()
780 .iov_offset = 0 in iov_iter_xarray()
802 .iov_offset = 0 in iov_iter_discard()
811 size_t skip = i->iov_offset; in iov_iter_aligned_iovec()
836 unsigned skip = i->iov_offset; in iov_iter_aligned_bvec()
872 if ((unsigned long)(i->ubuf + i->iov_offset) & addr_mask) in iov_iter_is_aligned()
886 if ((i->xarray_start + i->iov_offset) & addr_mask) in iov_iter_is_aligned()
898 size_t skip = i->iov_offset; in iov_iter_alignment_iovec()
921 unsigned skip = i->iov_offset; in iov_iter_alignment_bvec()
942 return ((unsigned long)i->ubuf + i->iov_offset) | size; in iov_iter_alignment()
954 return (i->xarray_start + i->iov_offset) | i->count; in iov_iter_alignment()
1040 pos = i->xarray_start + i->iov_offset; in iter_xarray_get_pages()
1053 i->iov_offset += maxsize; in iter_xarray_get_pages()
1065 return (unsigned long)i->ubuf + i->iov_offset; in first_iovec_segment()
1067 for (k = 0, skip = i->iov_offset; k < i->nr_segs; k++, skip = 0) { in first_iovec_segment()
1085 size_t skip = i->iov_offset, len; in first_bvec_segment()
1144 i->iov_offset += maxsize; in __iov_iter_get_pages_alloc()
1145 if (i->iov_offset == i->bvec->bv_len) { in __iov_iter_get_pages_alloc()
1146 i->iov_offset = 0; in __iov_iter_get_pages_alloc()
1258 size_t skip = i->iov_offset, size = i->count; in iov_npages()
1278 size_t skip = i->iov_offset, size = i->count; in bvec_npages()
1299 unsigned offs = offset_in_page(i->ubuf + i->iov_offset); in iov_iter_npages()
1309 unsigned offset = (i->xarray_start + i->iov_offset) % PAGE_SIZE; in iov_iter_npages()
1579 i->iov_offset = state->iov_offset; in iov_iter_restore()
1612 loff_t pos = i->xarray_start + i->iov_offset; in iov_iter_extract_xarray_pages()
1657 size_t skip = i->iov_offset, offset, size; in iov_iter_extract_bvec_pages()
1666 i->iov_offset = 0; in iov_iter_extract_bvec_pages()
1701 size_t skip = i->iov_offset, offset, len, size; in iov_iter_extract_kvec_pages()
1710 i->iov_offset = 0; in iov_iter_extract_kvec_pages()