Home
last modified time | relevance | path

Searched refs:nr_segs (Results 1 – 9 of 9) sorted by relevance

/block/
Dblk-merge.c301 void __blk_queue_split(struct bio **bio, unsigned int *nr_segs) in __blk_queue_split() argument
309 split = blk_bio_discard_split(q, *bio, &q->bio_split, nr_segs); in __blk_queue_split()
313 nr_segs); in __blk_queue_split()
317 nr_segs); in __blk_queue_split()
332 *nr_segs = 1; in __blk_queue_split()
335 split = blk_bio_segment_split(q, *bio, &q->bio_split, nr_segs); in __blk_queue_split()
364 unsigned int nr_segs; in blk_queue_split() local
366 __blk_queue_split(bio, &nr_segs); in blk_queue_split()
585 int ll_back_merge_fn(struct request *req, struct bio *bio, unsigned int nr_segs) in ll_back_merge_fn() argument
600 return ll_new_hw_segment(req, bio, nr_segs); in ll_back_merge_fn()
[all …]
Dblk-mq-sched.h12 unsigned int nr_segs, struct request **merged_request);
14 unsigned int nr_segs);
33 unsigned int nr_segs) in blk_mq_sched_bio_merge() argument
38 return __blk_mq_sched_bio_merge(q, bio, nr_segs); in blk_mq_sched_bio_merge()
Dblk.h91 unsigned int nr_segs) in blk_rq_bio_prep() argument
93 rq->nr_phys_segments = nr_segs; in blk_rq_bio_prep()
184 unsigned int nr_segs, struct request **same_queue_rq);
186 struct bio *bio, unsigned int nr_segs);
236 void __blk_queue_split(struct bio **bio, unsigned int *nr_segs);
238 unsigned int nr_segs);
Dblk-map.c26 if (data->nr_segs > UIO_MAXIOV) in bio_alloc_map_data()
29 bmd = kmalloc(struct_size(bmd, iov, data->nr_segs), gfp_mask); in bio_alloc_map_data()
32 memcpy(bmd->iov, data->iov, sizeof(struct iovec) * data->nr_segs); in bio_alloc_map_data()
529 unsigned int nr_segs = 0; in blk_rq_append_bio() local
534 nr_segs++; in blk_rq_append_bio()
537 blk_rq_bio_prep(rq, *bio, nr_segs); in blk_rq_append_bio()
539 if (!ll_back_merge_fn(rq, *bio, nr_segs)) { in blk_rq_append_bio()
Dblk-mq-sched.c354 unsigned int nr_segs) in __blk_mq_sched_bio_merge() argument
363 return e->type->ops.bio_merge(q, bio, nr_segs); in __blk_mq_sched_bio_merge()
379 if (blk_bio_list_merge(q, &ctx->rq_lists[type], bio, nr_segs)) { in __blk_mq_sched_bio_merge()
Dblk-mq.c2030 unsigned int nr_segs) in blk_mq_bio_to_request() argument
2039 blk_rq_bio_prep(rq, bio, nr_segs); in blk_mq_bio_to_request()
2261 unsigned int nr_segs; in blk_mq_submit_bio() local
2266 __blk_queue_split(&bio, &nr_segs); in blk_mq_submit_bio()
2272 blk_attempt_plug_merge(q, bio, nr_segs, &same_queue_rq)) in blk_mq_submit_bio()
2275 if (blk_mq_sched_bio_merge(q, bio, nr_segs)) in blk_mq_submit_bio()
2295 blk_mq_bio_to_request(rq, bio, nr_segs); in blk_mq_submit_bio()
Dkyber-iosched.c566 unsigned int nr_segs) in kyber_bio_merge() argument
577 merged = blk_bio_list_merge(hctx->queue, rq_list, bio, nr_segs); in kyber_bio_merge()
Dmq-deadline-main.c693 unsigned int nr_segs) in dd_bio_merge() argument
700 ret = blk_mq_sched_try_merge(q, bio, nr_segs, &free); in dd_bio_merge()
Dbfq-iosched.c2222 unsigned int nr_segs) in bfq_bio_merge() argument
2251 ret = blk_mq_sched_try_merge(q, bio, nr_segs, &free); in bfq_bio_merge()