Lines Matching refs:ctxs
983 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in flush_busy_ctx()
1018 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in dispatch_rq_from_ctx()
2375 hctx->ctxs = kmalloc_array_node(nr_cpu_ids, sizeof(void *), in blk_mq_alloc_hctx()
2377 if (!hctx->ctxs) in blk_mq_alloc_hctx()
2403 kfree(hctx->ctxs); in blk_mq_alloc_hctx()
2524 hctx->ctxs[hctx->nr_ctx++] = ctx; in blk_mq_map_swqueue()
2644 struct blk_mq_ctxs *ctxs; in blk_mq_alloc_ctxs() local
2647 ctxs = kzalloc(sizeof(*ctxs), GFP_KERNEL); in blk_mq_alloc_ctxs()
2648 if (!ctxs) in blk_mq_alloc_ctxs()
2651 ctxs->queue_ctx = alloc_percpu(struct blk_mq_ctx); in blk_mq_alloc_ctxs()
2652 if (!ctxs->queue_ctx) in blk_mq_alloc_ctxs()
2656 struct blk_mq_ctx *ctx = per_cpu_ptr(ctxs->queue_ctx, cpu); in blk_mq_alloc_ctxs()
2657 ctx->ctxs = ctxs; in blk_mq_alloc_ctxs()
2660 q->mq_kobj = &ctxs->kobj; in blk_mq_alloc_ctxs()
2661 q->queue_ctx = ctxs->queue_ctx; in blk_mq_alloc_ctxs()
2665 kfree(ctxs); in blk_mq_alloc_ctxs()