Lines Matching refs:nsegs

98 					 unsigned *nsegs)  in blk_bio_discard_split()  argument
105 *nsegs = 1; in blk_bio_discard_split()
140 struct bio *bio, struct bio_set *bs, unsigned *nsegs) in blk_bio_write_zeroes_split() argument
142 *nsegs = 0; in blk_bio_write_zeroes_split()
156 unsigned *nsegs) in blk_bio_write_same_split() argument
158 *nsegs = 1; in blk_bio_write_same_split()
231 const struct bio_vec *bv, unsigned *nsegs, in bvec_split_segs() argument
240 while (len && *nsegs < max_segs) { in bvec_split_segs()
245 (*nsegs)++; in bvec_split_segs()
285 unsigned nsegs = 0, sectors = 0; in blk_bio_segment_split() local
297 if (nsegs < max_segs && in blk_bio_segment_split()
300 nsegs++; in blk_bio_segment_split()
302 } else if (bvec_split_segs(q, &bv, &nsegs, &sectors, max_segs, in blk_bio_segment_split()
311 *segs = nsegs; in blk_bio_segment_split()
314 *segs = nsegs; in blk_bio_segment_split()
449 unsigned nsegs = 0, total = 0; in blk_bvec_map_sg() local
473 nsegs++; in blk_bvec_map_sg()
476 return nsegs; in blk_bvec_map_sg()
515 int nsegs = 0; in __blk_bios_map_sg() local
530 nsegs += __blk_bvec_map_sg(bvec, sglist, sg); in __blk_bios_map_sg()
532 nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg); in __blk_bios_map_sg()
542 return nsegs; in __blk_bios_map_sg()
552 int nsegs = 0; in __blk_rq_map_sg() local
555 nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, last_sg); in __blk_rq_map_sg()
557 nsegs = __blk_bvec_map_sg(bio_iovec(rq->bio), sglist, last_sg); in __blk_rq_map_sg()
559 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, last_sg); in __blk_rq_map_sg()
568 WARN_ON(nsegs > blk_rq_nr_phys_segments(rq)); in __blk_rq_map_sg()
570 return nsegs; in __blk_rq_map_sg()