Lines Matching refs:bv
194 const struct bio_vec *bv, unsigned *nsegs, in bvec_split_segs() argument
199 unsigned len = min(bv->bv_len, max_len); in bvec_split_segs()
204 seg_size = get_max_segment_size(q, bv->bv_offset + total_len); in bvec_split_segs()
211 if ((bv->bv_offset + total_len) & queue_virt_boundary(q)) in bvec_split_segs()
218 return len > 0 || bv->bv_len > max_len; in bvec_split_segs()
245 struct bio_vec bv, bvprv, *bvprvp = NULL; in blk_bio_segment_split() local
251 bio_for_each_bvec(bv, bio, iter) { in blk_bio_segment_split()
256 if (bvprvp && bvec_gap_to_prev(q, bvprvp, bv.bv_offset)) in blk_bio_segment_split()
260 sectors + (bv.bv_len >> 9) <= max_sectors && in blk_bio_segment_split()
261 bv.bv_offset + bv.bv_len <= PAGE_SIZE) { in blk_bio_segment_split()
263 sectors += bv.bv_len >> 9; in blk_bio_segment_split()
264 } else if (bvec_split_segs(q, &bv, &nsegs, §ors, max_segs, in blk_bio_segment_split()
269 bvprv = bv; in blk_bio_segment_split()
361 struct bio_vec bv; in blk_recalc_rq_segments() local
375 rq_for_each_bvec(bv, rq, iter) in blk_recalc_rq_segments()
376 bvec_split_segs(rq->q, &bv, &nr_phys_segs, &nr_sectors, in blk_recalc_rq_segments()
432 static inline int __blk_bvec_map_sg(struct bio_vec bv, in __blk_bvec_map_sg() argument
436 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg()