Lines Matching refs:offset
739 *page, unsigned int len, unsigned int offset) in bio_add_pc_page() argument
762 offset == prev->bv_offset + prev->bv_len) { in bio_add_pc_page()
772 if (bvec_gap_to_prev(q, prev, offset)) in bio_add_pc_page()
786 bvec->bv_offset = offset; in bio_add_pc_page()
893 unsigned int len, unsigned int offset) in bio_add_page() argument
895 if (!__bio_try_merge_page(bio, page, len, offset)) { in bio_add_page()
898 __bio_add_page(bio, page, len, offset); in bio_add_page()
919 size_t offset; in __bio_iov_iter_get_pages() local
922 size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset); in __bio_iov_iter_get_pages()
925 idx = nr_pages = (size + offset + PAGE_SIZE - 1) / PAGE_SIZE; in __bio_iov_iter_get_pages()
944 bv[0].bv_offset += offset; in __bio_iov_iter_get_pages()
945 bv[0].bv_len -= offset; in __bio_iov_iter_get_pages()
946 bv[nr_pages - 1].bv_len -= nr_pages * PAGE_SIZE - offset - size; in __bio_iov_iter_get_pages()
1267 unsigned int offset = map_data ? offset_in_page(map_data->offset) : 0; in bio_copy_user_iov() local
1288 if (offset) in bio_copy_user_iov()
1314 i = map_data->offset / PAGE_SIZE; in bio_copy_user_iov()
1319 bytes -= offset; in bio_copy_user_iov()
1342 if (bio_add_pc_page(q, bio, page, bytes, offset) < bytes) { in bio_copy_user_iov()
1349 offset = 0; in bio_copy_user_iov()
1394 int ret, offset; in bio_map_user_iov() local
1452 offset = offset_in_page(uaddr); in bio_map_user_iov()
1454 unsigned int bytes = PAGE_SIZE - offset; in bio_map_user_iov()
1466 if (bio_add_pc_page(q, bio, pages[j], bytes, offset) < in bio_map_user_iov()
1478 offset = 0; in bio_map_user_iov()
1567 int offset, i; in bio_map_kern() local
1574 offset = offset_in_page(kaddr); in bio_map_kern()
1576 unsigned int bytes = PAGE_SIZE - offset; in bio_map_kern()
1585 offset) < bytes) { in bio_map_kern()
1593 offset = 0; in bio_map_kern()
1969 void bio_trim(struct bio *bio, int offset, int size) in bio_trim() argument
1976 if (offset == 0 && size == bio->bi_iter.bi_size) in bio_trim()
1981 bio_advance(bio, offset << 9); in bio_trim()