Lines Matching refs:nsegs

15 					 unsigned *nsegs)  in blk_bio_discard_split()  argument
22 *nsegs = 1; in blk_bio_discard_split()
58 unsigned *nsegs) in blk_bio_write_same_split() argument
60 *nsegs = 1; in blk_bio_write_same_split()
90 unsigned seg_size = 0, nsegs = 0, sectors = 0; in blk_bio_segment_split() local
109 if (nsegs < queue_max_segments(q) && in blk_bio_segment_split()
111 nsegs++; in blk_bio_segment_split()
132 if (nsegs == 1 && seg_size > front_seg_size) in blk_bio_segment_split()
137 if (nsegs == queue_max_segments(q)) in blk_bio_segment_split()
140 nsegs++; in blk_bio_segment_split()
146 if (nsegs == 1 && seg_size > front_seg_size) in blk_bio_segment_split()
152 *segs = nsegs; in blk_bio_segment_split()
171 unsigned nsegs; in blk_queue_split() local
174 split = blk_bio_discard_split(q, *bio, bs, &nsegs); in blk_queue_split()
176 split = blk_bio_write_same_split(q, *bio, bs, &nsegs); in blk_queue_split()
178 split = blk_bio_segment_split(q, *bio, q->bio_split, &nsegs); in blk_queue_split()
182 res->bi_phys_segments = nsegs; in blk_queue_split()
338 struct scatterlist **sg, int *nsegs, int *cluster) in __blk_segment_map_sg() argument
373 (*nsegs)++; in __blk_segment_map_sg()
384 int nsegs, cluster; in __blk_bios_map_sg() local
386 nsegs = 0; in __blk_bios_map_sg()
415 &nsegs, &cluster); in __blk_bios_map_sg()
417 return nsegs; in __blk_bios_map_sg()
428 int nsegs = 0; in blk_rq_map_sg() local
431 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, &sg); in blk_rq_map_sg()
452 nsegs++; in blk_rq_map_sg()
463 WARN_ON(nsegs > rq->nr_phys_segments); in blk_rq_map_sg()
465 return nsegs; in blk_rq_map_sg()