Lines Matching refs:bvec
707 struct bio_vec *bvec; in __bio_add_page() local
770 bvec = &bio->bi_io_vec[bio->bi_vcnt]; in __bio_add_page()
771 bvec->bv_page = page; in __bio_add_page()
772 bvec->bv_len = len; in __bio_add_page()
773 bvec->bv_offset = offset; in __bio_add_page()
809 if (q->merge_bvec_fn(q, &bvm, bvec) < bvec->bv_len) in __bio_add_page()
814 if (bio->bi_vcnt > 1 && (BIOVEC_PHYS_MERGEABLE(bvec-1, bvec))) in __bio_add_page()
821 bvec->bv_page = NULL; in __bio_add_page()
822 bvec->bv_len = 0; in __bio_add_page()
823 bvec->bv_offset = 0; in __bio_add_page()
1050 struct bio_vec *bvec; in bio_copy_from_iter() local
1052 bio_for_each_segment_all(bvec, bio, i) { in bio_copy_from_iter()
1055 ret = copy_page_from_iter(bvec->bv_page, in bio_copy_from_iter()
1056 bvec->bv_offset, in bio_copy_from_iter()
1057 bvec->bv_len, in bio_copy_from_iter()
1063 if (ret < bvec->bv_len) in bio_copy_from_iter()
1081 struct bio_vec *bvec; in bio_copy_to_iter() local
1083 bio_for_each_segment_all(bvec, bio, i) { in bio_copy_to_iter()
1086 ret = copy_page_to_iter(bvec->bv_page, in bio_copy_to_iter()
1087 bvec->bv_offset, in bio_copy_to_iter()
1088 bvec->bv_len, in bio_copy_to_iter()
1094 if (ret < bvec->bv_len) in bio_copy_to_iter()
1103 struct bio_vec *bvec; in bio_free_pages() local
1106 bio_for_each_segment_all(bvec, bio, i) in bio_free_pages()
1107 __free_page(bvec->bv_page); in bio_free_pages()
1404 struct bio_vec *bvec; in __bio_unmap_user() local
1410 bio_for_each_segment_all(bvec, bio, i) { in __bio_unmap_user()
1412 set_page_dirty_lock(bvec->bv_page); in __bio_unmap_user()
1414 page_cache_release(bvec->bv_page); in __bio_unmap_user()
1501 struct bio_vec *bvec; in bio_copy_kern_endio_read() local
1504 bio_for_each_segment_all(bvec, bio, i) { in bio_copy_kern_endio_read()
1505 memcpy(p, page_address(bvec->bv_page), bvec->bv_len); in bio_copy_kern_endio_read()
1506 p += bvec->bv_len; in bio_copy_kern_endio_read()
1613 struct bio_vec *bvec; in bio_set_pages_dirty() local
1616 bio_for_each_segment_all(bvec, bio, i) { in bio_set_pages_dirty()
1617 struct page *page = bvec->bv_page; in bio_set_pages_dirty()
1626 struct bio_vec *bvec; in bio_release_pages() local
1629 bio_for_each_segment_all(bvec, bio, i) { in bio_release_pages()
1630 struct page *page = bvec->bv_page; in bio_release_pages()
1679 struct bio_vec *bvec; in bio_check_pages_dirty() local
1683 bio_for_each_segment_all(bvec, bio, i) { in bio_check_pages_dirty()
1684 struct page *page = bvec->bv_page; in bio_check_pages_dirty()
1688 bvec->bv_page = NULL; in bio_check_pages_dirty()
1738 struct bio_vec bvec; in bio_flush_dcache_pages() local
1741 bio_for_each_segment(bvec, bi, iter) in bio_flush_dcache_pages()
1742 flush_dcache_page(bvec.bv_page); in bio_flush_dcache_pages()