Lines Matching refs:type
84 const int bit = ctx->index_hw[hctx->type]; in blk_mq_hctx_mark_pending()
93 const int bit = ctx->index_hw[hctx->type]; in blk_mq_hctx_clear_pending()
343 if (e && e->type->ops.prepare_request) { in blk_mq_rq_ctx_init()
344 if (e->type->icq_cache) in blk_mq_rq_ctx_init()
347 e->type->ops.prepare_request(rq); in blk_mq_rq_ctx_init()
378 e->type->ops.limit_depth && in __blk_mq_alloc_request()
380 e->type->ops.limit_depth(data->cmd_flags, data); in __blk_mq_alloc_request()
526 if (e && e->type->ops.finish_request) in blk_mq_free_request()
527 e->type->ops.finish_request(rq); in blk_mq_free_request()
1006 enum hctx_type type = hctx->type; in flush_busy_ctx() local
1009 list_splice_tail_init(&ctx->rq_lists[type], flush_data->list); in flush_busy_ctx()
1041 enum hctx_type type = hctx->type; in dispatch_rq_from_ctx() local
1044 if (!list_empty(&ctx->rq_lists[type])) { in dispatch_rq_from_ctx()
1045 dispatch_data->rq = list_entry_rq(ctx->rq_lists[type].next); in dispatch_rq_from_ctx()
1047 if (list_empty(&ctx->rq_lists[type])) in dispatch_rq_from_ctx()
1058 unsigned off = start ? start->index_hw[hctx->type] : 0; in blk_mq_dequeue_from_ctx()
1653 if (e && e->type->ops.dispatch_request && in blk_mq_has_sqsched()
1654 !(e->type->elevator_features & ELEVATOR_F_MQ_AWARE)) in blk_mq_has_sqsched()
1851 enum hctx_type type = hctx->type; in __blk_mq_insert_req_list() local
1858 list_add(&rq->queuelist, &ctx->rq_lists[type]); in __blk_mq_insert_req_list()
1860 list_add_tail(&rq->queuelist, &ctx->rq_lists[type]); in __blk_mq_insert_req_list()
1904 enum hctx_type type = hctx->type; in blk_mq_insert_requests() local
1916 list_splice_tail_init(list, &ctx->rq_lists[type]); in blk_mq_insert_requests()
2616 enum hctx_type type; in blk_mq_hctx_notify_dead() local
2623 type = hctx->type; in blk_mq_hctx_notify_dead()
2626 if (!list_empty(&ctx->rq_lists[type])) { in blk_mq_hctx_notify_dead()
2627 list_splice_init(&ctx->rq_lists[type], &tmp); in blk_mq_hctx_notify_dead()
2945 hctx->type = j; in blk_mq_map_swqueue()
2946 ctx->index_hw[hctx->type] = hctx->nr_ctx; in blk_mq_map_swqueue()
3650 if (q->elevator && q->elevator->type->ops.depth_updated) in blk_mq_update_nr_requests()
3651 q->elevator->type->ops.depth_updated(hctx); in blk_mq_update_nr_requests()
3674 struct elevator_type *type; member
3695 qe->type = q->elevator->type; in blk_mq_elv_switch_none()
3706 __module_get(qe->type->elevator_owner); in blk_mq_elv_switch_none()
3721 t = qe->type; in blk_mq_elv_switch_back()