Lines Matching refs:bv
198 const struct bio_vec *bv, unsigned *nsegs, in bvec_split_segs() argument
203 unsigned len = min(bv->bv_len, max_len); in bvec_split_segs()
208 seg_size = get_max_segment_size(q, bv->bv_page, in bvec_split_segs()
209 bv->bv_offset + total_len); in bvec_split_segs()
216 if ((bv->bv_offset + total_len) & queue_virt_boundary(q)) in bvec_split_segs()
223 return len > 0 || bv->bv_len > max_len; in bvec_split_segs()
250 struct bio_vec bv, bvprv, *bvprvp = NULL; in blk_bio_segment_split() local
256 bio_for_each_bvec(bv, bio, iter) { in blk_bio_segment_split()
261 if (bvprvp && bvec_gap_to_prev(q, bvprvp, bv.bv_offset)) in blk_bio_segment_split()
265 sectors + (bv.bv_len >> 9) <= max_sectors && in blk_bio_segment_split()
266 bv.bv_offset + bv.bv_len <= PAGE_SIZE) { in blk_bio_segment_split()
268 sectors += bv.bv_len >> 9; in blk_bio_segment_split()
269 } else if (bvec_split_segs(q, &bv, &nsegs, §ors, max_segs, in blk_bio_segment_split()
274 bvprv = bv; in blk_bio_segment_split()
370 struct bio_vec bv; in blk_recalc_rq_segments() local
384 rq_for_each_bvec(bv, rq, iter) in blk_recalc_rq_segments()
385 bvec_split_segs(rq->q, &bv, &nr_phys_segs, &nr_sectors, in blk_recalc_rq_segments()
442 static inline int __blk_bvec_map_sg(struct bio_vec bv, in __blk_bvec_map_sg() argument
446 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg()