Lines Matching refs:ctxs
1027 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr];
1062 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr];
2675 /* hctx->ctxs will be freed in queue's release handler */
2790 hctx->ctxs = kmalloc_array_node(nr_cpu_ids, sizeof(void *),
2792 if (!hctx->ctxs)
2817 kfree(hctx->ctxs);
2942 hctx->ctxs[hctx->nr_ctx++] = ctx;
3064 struct blk_mq_ctxs *ctxs;
3067 ctxs = kzalloc(sizeof(*ctxs), GFP_KERNEL);
3068 if (!ctxs)
3071 ctxs->queue_ctx = alloc_percpu(struct blk_mq_ctx);
3072 if (!ctxs->queue_ctx)
3076 struct blk_mq_ctx *ctx = per_cpu_ptr(ctxs->queue_ctx, cpu);
3077 ctx->ctxs = ctxs;
3080 q->mq_kobj = &ctxs->kobj;
3081 q->queue_ctx = ctxs->queue_ctx;
3085 kfree(ctxs);