Lines Matching refs:bvec

685 	struct bio_vec *bvec;  in __bio_add_pc_page()  local
704 bvec = &bio->bi_io_vec[bio->bi_vcnt - 1]; in __bio_add_pc_page()
705 if (bvec_gap_to_prev(q, bvec, offset)) in __bio_add_pc_page()
715 bvec = &bio->bi_io_vec[bio->bi_vcnt]; in __bio_add_pc_page()
716 bvec->bv_page = page; in __bio_add_pc_page()
717 bvec->bv_len = len; in __bio_add_pc_page()
718 bvec->bv_offset = offset; in __bio_add_pc_page()
824 struct bio_vec *bvec; in bio_release_pages() local
829 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_release_pages()
830 if (mark_dirty && !PageCompound(bvec->bv_page)) in bio_release_pages()
831 set_page_dirty_lock(bvec->bv_page); in bio_release_pages()
832 put_page(bvec->bv_page); in bio_release_pages()
838 const struct bio_vec *bv = iter->bvec; in __bio_iov_bvec_add_pages()
1116 struct bio_vec *bvec; in bio_copy_from_iter() local
1119 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_copy_from_iter()
1122 ret = copy_page_from_iter(bvec->bv_page, in bio_copy_from_iter()
1123 bvec->bv_offset, in bio_copy_from_iter()
1124 bvec->bv_len, in bio_copy_from_iter()
1130 if (ret < bvec->bv_len) in bio_copy_from_iter()
1147 struct bio_vec *bvec; in bio_copy_to_iter() local
1150 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_copy_to_iter()
1153 ret = copy_page_to_iter(bvec->bv_page, in bio_copy_to_iter()
1154 bvec->bv_offset, in bio_copy_to_iter()
1155 bvec->bv_len, in bio_copy_to_iter()
1161 if (ret < bvec->bv_len) in bio_copy_to_iter()
1170 struct bio_vec *bvec; in bio_free_pages() local
1173 bio_for_each_segment_all(bvec, bio, iter_all) in bio_free_pages()
1174 __free_page(bvec->bv_page); in bio_free_pages()
1523 struct bio_vec *bvec; in bio_copy_kern_endio_read() local
1526 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_copy_kern_endio_read()
1527 memcpy(p, page_address(bvec->bv_page), bvec->bv_len); in bio_copy_kern_endio_read()
1528 p += bvec->bv_len; in bio_copy_kern_endio_read()
1633 struct bio_vec *bvec; in bio_set_pages_dirty() local
1636 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_set_pages_dirty()
1637 if (!PageCompound(bvec->bv_page)) in bio_set_pages_dirty()
1638 set_page_dirty_lock(bvec->bv_page); in bio_set_pages_dirty()
1681 struct bio_vec *bvec; in bio_check_pages_dirty() local
1685 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_check_pages_dirty()
1686 if (!PageDirty(bvec->bv_page) && !PageCompound(bvec->bv_page)) in bio_check_pages_dirty()