Lines Matching refs:nsegs
110 unsigned *nsegs, struct bio_set *bs) in bio_split_discard() argument
116 *nsegs = 1; in bio_split_discard()
147 unsigned *nsegs, struct bio_set *bs) in bio_split_write_zeroes() argument
149 *nsegs = 0; in bio_split_write_zeroes()
228 const struct bio_vec *bv, unsigned *nsegs, unsigned *bytes, in bvec_split_segs() argument
236 while (len && *nsegs < max_segs) { in bvec_split_segs()
241 (*nsegs)++; in bvec_split_segs()
280 unsigned nsegs = 0, bytes = 0; in bio_split_rw() local
290 if (nsegs < lim->max_segments && in bio_split_rw()
293 nsegs++; in bio_split_rw()
296 if (bvec_split_segs(lim, &bv, &nsegs, &bytes, in bio_split_rw()
305 *segs = nsegs; in bio_split_rw()
318 *segs = nsegs; in bio_split_rw()
464 unsigned nsegs = 0, total = 0; in blk_bvec_map_sg() local
488 nsegs++; in blk_bvec_map_sg()
491 return nsegs; in blk_bvec_map_sg()
530 int nsegs = 0; in __blk_bios_map_sg() local
545 nsegs += __blk_bvec_map_sg(bvec, sglist, sg); in __blk_bios_map_sg()
547 nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg); in __blk_bios_map_sg()
557 return nsegs; in __blk_bios_map_sg()
567 int nsegs = 0; in __blk_rq_map_sg() local
570 nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, last_sg); in __blk_rq_map_sg()
572 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, last_sg); in __blk_rq_map_sg()
581 WARN_ON(nsegs > blk_rq_nr_phys_segments(rq)); in __blk_rq_map_sg()
583 return nsegs; in __blk_rq_map_sg()