Lines Matching defs:nsegs
110 unsigned *nsegs, struct bio_set *bs)
116 *nsegs = 1;
151 unsigned *nsegs, struct bio_set *bs)
153 *nsegs = 0;
215 * @nsegs: [in,out] Number of segments in the bio being built. Incremented
221 * @max_segs: [in] upper bound for *@nsegs
228 * *@nsegs segments and *@sectors sectors would make that bio unacceptable for
232 const struct bio_vec *bv, unsigned *nsegs, unsigned *bytes,
240 while (len && *nsegs < max_segs) {
245 (*nsegs)++;
284 unsigned nsegs = 0, bytes = 0;
294 if (nsegs < lim->max_segments &&
297 nsegs++;
300 if (bvec_split_segs(lim, &bv, &nsegs, &bytes,
309 *segs = nsegs;
322 *segs = nsegs;
467 unsigned nsegs = 0, total = 0;
491 nsegs++;
494 return nsegs;
533 int nsegs = 0;
548 nsegs += __blk_bvec_map_sg(bvec, sglist, sg);
550 nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg);
560 return nsegs;
570 int nsegs = 0;
573 nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, last_sg);
575 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, last_sg);
584 WARN_ON(nsegs > blk_rq_nr_phys_segments(rq));
586 return nsegs;