Lines Matching refs:ctxs
1703 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr];
1738 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr];
3645 /* hctx->ctxs will be freed in queue's release handler */
3754 hctx->ctxs = kmalloc_array_node(nr_cpu_ids, sizeof(void *),
3756 if (!hctx->ctxs)
3779 kfree(hctx->ctxs);
3926 hctx->ctxs[hctx->nr_ctx++] = ctx;
4048 struct blk_mq_ctxs *ctxs;
4051 ctxs = kzalloc(sizeof(*ctxs), GFP_KERNEL);
4052 if (!ctxs)
4055 ctxs->queue_ctx = alloc_percpu(struct blk_mq_ctx);
4056 if (!ctxs->queue_ctx)
4060 struct blk_mq_ctx *ctx = per_cpu_ptr(ctxs->queue_ctx, cpu);
4061 ctx->ctxs = ctxs;
4064 q->mq_kobj = &ctxs->kobj;
4065 q->queue_ctx = ctxs->queue_ctx;
4069 kfree(ctxs);