Lines Matching refs:type
97 if (e->type->ops.has_work && !e->type->ops.has_work(hctx)) in blk_mq_do_dispatch_sched()
103 rq = e->type->ops.dispatch_request(hctx); in blk_mq_do_dispatch_sched()
121 unsigned short idx = ctx->index_hw[hctx->type]; in blk_mq_next_ctx()
174 const bool has_sched_dispatch = e && e->type->ops.dispatch_request; in blk_mq_sched_dispatch_requests()
312 enum hctx_type type = hctx->type; in blk_mq_attempt_merge() local
316 if (blk_mq_bio_list_merge(q, &ctx->rq_lists[type], bio, nr_segs)) { in blk_mq_attempt_merge()
331 enum hctx_type type; in __blk_mq_sched_bio_merge() local
333 if (e && e->type->ops.bio_merge) in __blk_mq_sched_bio_merge()
334 return e->type->ops.bio_merge(hctx, bio, nr_segs); in __blk_mq_sched_bio_merge()
336 type = hctx->type; in __blk_mq_sched_bio_merge()
338 !list_empty_careful(&ctx->rq_lists[type])) { in __blk_mq_sched_bio_merge()
397 if (e && e->type->ops.insert_requests) { in blk_mq_sched_insert_request()
401 e->type->ops.insert_requests(hctx, &list, at_head); in blk_mq_sched_insert_request()
428 if (e && e->type->ops.insert_requests) in blk_mq_sched_insert_requests()
429 e->type->ops.insert_requests(hctx, list, false); in blk_mq_sched_insert_requests()
571 if (e->type->ops.exit_hctx && hctx->sched_data) { in blk_mq_exit_sched()
572 e->type->ops.exit_hctx(hctx, i); in blk_mq_exit_sched()
577 if (e->type->ops.exit_sched) in blk_mq_exit_sched()
578 e->type->ops.exit_sched(e); in blk_mq_exit_sched()