Lines Matching refs:bvec
724 struct bio_vec *bvec; in bio_add_pc_page() local
765 bvec = &bio->bi_io_vec[bio->bi_vcnt]; in bio_add_pc_page()
766 bvec->bv_page = page; in bio_add_pc_page()
767 bvec->bv_len = len; in bio_add_pc_page()
768 bvec->bv_offset = offset; in bio_add_pc_page()
788 if (bio->bi_vcnt > 1 && (BIOVEC_PHYS_MERGEABLE(bvec-1, bvec))) in bio_add_pc_page()
795 bvec->bv_page = NULL; in bio_add_pc_page()
796 bvec->bv_len = 0; in bio_add_pc_page()
797 bvec->bv_offset = 0; in bio_add_pc_page()
1026 struct bio_vec *bvec; in bio_copy_from_iter() local
1028 bio_for_each_segment_all(bvec, bio, i) { in bio_copy_from_iter()
1031 ret = copy_page_from_iter(bvec->bv_page, in bio_copy_from_iter()
1032 bvec->bv_offset, in bio_copy_from_iter()
1033 bvec->bv_len, in bio_copy_from_iter()
1039 if (ret < bvec->bv_len) in bio_copy_from_iter()
1057 struct bio_vec *bvec; in bio_copy_to_iter() local
1059 bio_for_each_segment_all(bvec, bio, i) { in bio_copy_to_iter()
1062 ret = copy_page_to_iter(bvec->bv_page, in bio_copy_to_iter()
1063 bvec->bv_offset, in bio_copy_to_iter()
1064 bvec->bv_len, in bio_copy_to_iter()
1070 if (ret < bvec->bv_len) in bio_copy_to_iter()
1079 struct bio_vec *bvec; in bio_free_pages() local
1082 bio_for_each_segment_all(bvec, bio, i) in bio_free_pages()
1083 __free_page(bvec->bv_page); in bio_free_pages()
1269 struct bio_vec *bvec; in bio_map_user_iov() local
1381 bio_for_each_segment_all(bvec, bio, j) { in bio_map_user_iov()
1382 put_page(bvec->bv_page); in bio_map_user_iov()
1392 struct bio_vec *bvec; in __bio_unmap_user() local
1398 bio_for_each_segment_all(bvec, bio, i) { in __bio_unmap_user()
1400 set_page_dirty_lock(bvec->bv_page); in __bio_unmap_user()
1402 put_page(bvec->bv_page); in __bio_unmap_user()
1488 struct bio_vec *bvec; in bio_copy_kern_endio_read() local
1491 bio_for_each_segment_all(bvec, bio, i) { in bio_copy_kern_endio_read()
1492 memcpy(p, page_address(bvec->bv_page), bvec->bv_len); in bio_copy_kern_endio_read()
1493 p += bvec->bv_len; in bio_copy_kern_endio_read()
1599 struct bio_vec *bvec; in bio_set_pages_dirty() local
1602 bio_for_each_segment_all(bvec, bio, i) { in bio_set_pages_dirty()
1603 struct page *page = bvec->bv_page; in bio_set_pages_dirty()
1612 struct bio_vec *bvec; in bio_release_pages() local
1615 bio_for_each_segment_all(bvec, bio, i) { in bio_release_pages()
1616 struct page *page = bvec->bv_page; in bio_release_pages()
1665 struct bio_vec *bvec; in bio_check_pages_dirty() local
1669 bio_for_each_segment_all(bvec, bio, i) { in bio_check_pages_dirty()
1670 struct page *page = bvec->bv_page; in bio_check_pages_dirty()
1674 bvec->bv_page = NULL; in bio_check_pages_dirty()
1724 struct bio_vec bvec; in bio_flush_dcache_pages() local
1727 bio_for_each_segment(bvec, bi, iter) in bio_flush_dcache_pages()
1728 flush_dcache_page(bvec.bv_page); in bio_flush_dcache_pages()