Home
last modified time | relevance | path

Searched refs:bvec (Results 1 – 5 of 5) sorted by relevance

/block/
Dblk-map.c48 struct bio_vec *bvec; in bio_copy_from_iter() local
51 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_copy_from_iter()
54 ret = copy_page_from_iter(bvec->bv_page, in bio_copy_from_iter()
55 bvec->bv_offset, in bio_copy_from_iter()
56 bvec->bv_len, in bio_copy_from_iter()
62 if (ret < bvec->bv_len) in bio_copy_from_iter()
79 struct bio_vec *bvec; in bio_copy_to_iter() local
82 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_copy_to_iter()
85 ret = copy_page_to_iter(bvec->bv_page, in bio_copy_to_iter()
86 bvec->bv_offset, in bio_copy_to_iter()
[all …]
Dblk-merge.c421 struct bio_vec *bvec, struct scatterlist *sglist, in blk_bvec_map_sg() argument
424 unsigned nbytes = bvec->bv_len; in blk_bvec_map_sg()
428 unsigned offset = bvec->bv_offset + total; in blk_bvec_map_sg()
429 unsigned len = min(get_max_segment_size(q, bvec->bv_page, in blk_bvec_map_sg()
431 struct page *page = bvec->bv_page; in blk_bvec_map_sg()
465 __blk_segment_map_sg_merge(struct request_queue *q, struct bio_vec *bvec, in __blk_segment_map_sg_merge() argument
469 int nbytes = bvec->bv_len; in __blk_segment_map_sg_merge()
477 if (!biovec_phys_mergeable(q, bvprv, bvec)) in __blk_segment_map_sg_merge()
489 struct bio_vec bvec, bvprv = { NULL }; in __blk_bios_map_sg() local
495 bio_for_each_bvec(bvec, bio, iter) { in __blk_bios_map_sg()
[all …]
Dbio.c797 struct bio_vec *bvec; in bio_add_hw_page() local
813 bvec = &bio->bi_io_vec[bio->bi_vcnt - 1]; in bio_add_hw_page()
814 if (bvec_gap_to_prev(q, bvec, offset)) in bio_add_hw_page()
824 bvec = &bio->bi_io_vec[bio->bi_vcnt]; in bio_add_hw_page()
825 bvec->bv_page = page; in bio_add_hw_page()
826 bvec->bv_len = len; in bio_add_hw_page()
827 bvec->bv_offset = offset; in bio_add_hw_page()
953 struct bio_vec *bvec; in bio_release_pages() local
958 bio_for_each_segment_all(bvec, bio, iter_all) { in bio_release_pages()
960 set_page_dirty_lock(bvec->bv_page); in bio_release_pages()
[all …]
Dbounce.c165 struct bio_vec *bvec, orig_vec; in bounce_end_io() local
172 bio_for_each_segment_all(bvec, bio, iter_all) { in bounce_end_io()
174 if (bvec->bv_page != orig_vec.bv_page) { in bounce_end_io()
175 dec_zone_page_state(bvec->bv_page, NR_BOUNCE); in bounce_end_io()
176 mempool_free(bvec->bv_page, pool); in bounce_end_io()
Dblk-core.c1545 struct bio_vec bvec; in rq_flush_dcache_pages() local
1547 rq_for_each_segment(bvec, rq, iter) in rq_flush_dcache_pages()
1548 flush_dcache_page(bvec.bv_page); in rq_flush_dcache_pages()