Lines Matching refs:bv
201 const struct bio_vec *bv, unsigned *nsegs, in bvec_split_segs() argument
206 unsigned len = min(bv->bv_len, max_len); in bvec_split_segs()
211 seg_size = get_max_segment_size(q, bv->bv_page, in bvec_split_segs()
212 bv->bv_offset + total_len); in bvec_split_segs()
219 if ((bv->bv_offset + total_len) & queue_virt_boundary(q)) in bvec_split_segs()
226 return len > 0 || bv->bv_len > max_len; in bvec_split_segs()
253 struct bio_vec bv, bvprv, *bvprvp = NULL; in blk_bio_segment_split() local
259 bio_for_each_bvec(bv, bio, iter) { in blk_bio_segment_split()
264 if (bvprvp && bvec_gap_to_prev(q, bvprvp, bv.bv_offset)) in blk_bio_segment_split()
268 sectors + (bv.bv_len >> 9) <= max_sectors && in blk_bio_segment_split()
269 bv.bv_offset + bv.bv_len <= PAGE_SIZE) { in blk_bio_segment_split()
271 sectors += bv.bv_len >> 9; in blk_bio_segment_split()
272 } else if (bvec_split_segs(q, &bv, &nsegs, §ors, max_segs, in blk_bio_segment_split()
277 bvprv = bv; in blk_bio_segment_split()
375 struct bio_vec bv; in blk_recalc_rq_segments() local
397 rq_for_each_bvec(bv, rq, iter) in blk_recalc_rq_segments()
398 bvec_split_segs(rq->q, &bv, &nr_phys_segs, &nr_sectors, in blk_recalc_rq_segments()
455 static inline int __blk_bvec_map_sg(struct bio_vec bv, in __blk_bvec_map_sg() argument
459 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg()