Lines Matching refs:nr_segs
339 unsigned int *nr_segs) in __blk_queue_split() argument
346 split = blk_bio_discard_split(q, *bio, &q->bio_split, nr_segs); in __blk_queue_split()
350 nr_segs); in __blk_queue_split()
354 nr_segs); in __blk_queue_split()
357 split = blk_bio_segment_split(q, *bio, &q->bio_split, nr_segs); in __blk_queue_split()
387 unsigned int nr_segs; in blk_queue_split() local
390 __blk_queue_split(q, bio, &nr_segs); in blk_queue_split()
623 int ll_back_merge_fn(struct request *req, struct bio *bio, unsigned int nr_segs) in ll_back_merge_fn() argument
638 return ll_new_hw_segment(req, bio, nr_segs); in ll_back_merge_fn()
642 unsigned int nr_segs) in ll_front_merge_fn() argument
657 return ll_new_hw_segment(req, bio, nr_segs); in ll_front_merge_fn()
964 struct bio *bio, unsigned int nr_segs) in bio_attempt_back_merge() argument
968 if (!ll_back_merge_fn(req, bio, nr_segs)) in bio_attempt_back_merge()
988 struct bio *bio, unsigned int nr_segs) in bio_attempt_front_merge() argument
992 if (!ll_front_merge_fn(req, bio, nr_segs)) in bio_attempt_front_merge()
1041 unsigned int nr_segs, in blk_attempt_bio_merge() argument
1050 return bio_attempt_back_merge(rq, bio, nr_segs); in blk_attempt_bio_merge()
1054 return bio_attempt_front_merge(rq, bio, nr_segs); in blk_attempt_bio_merge()
1087 unsigned int nr_segs, bool *same_queue_rq) in blk_attempt_plug_merge() argument
1105 if (blk_attempt_bio_merge(q, rq, bio, nr_segs, false) == in blk_attempt_plug_merge()
1117 struct bio *bio, unsigned int nr_segs) in blk_bio_list_merge() argument
1126 switch (blk_attempt_bio_merge(q, rq, bio, nr_segs, true)) { in blk_bio_list_merge()
1142 unsigned int nr_segs, struct request **merged_request) in blk_mq_sched_try_merge() argument
1150 if (bio_attempt_back_merge(rq, bio, nr_segs) != BIO_MERGE_OK) in blk_mq_sched_try_merge()
1159 if (bio_attempt_front_merge(rq, bio, nr_segs) != BIO_MERGE_OK) in blk_mq_sched_try_merge()