Lines Matching refs:ctxs
1302 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in flush_busy_ctx()
1337 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in dispatch_rq_from_ctx()
3209 hctx->ctxs = kmalloc_array_node(nr_cpu_ids, sizeof(void *), in blk_mq_alloc_hctx()
3211 if (!hctx->ctxs) in blk_mq_alloc_hctx()
3236 kfree(hctx->ctxs); in blk_mq_alloc_hctx()
3382 hctx->ctxs[hctx->nr_ctx++] = ctx; in blk_mq_map_swqueue()
3504 struct blk_mq_ctxs *ctxs; in blk_mq_alloc_ctxs() local
3507 ctxs = kzalloc(sizeof(*ctxs), GFP_KERNEL); in blk_mq_alloc_ctxs()
3508 if (!ctxs) in blk_mq_alloc_ctxs()
3511 ctxs->queue_ctx = alloc_percpu(struct blk_mq_ctx); in blk_mq_alloc_ctxs()
3512 if (!ctxs->queue_ctx) in blk_mq_alloc_ctxs()
3516 struct blk_mq_ctx *ctx = per_cpu_ptr(ctxs->queue_ctx, cpu); in blk_mq_alloc_ctxs()
3517 ctx->ctxs = ctxs; in blk_mq_alloc_ctxs()
3520 q->mq_kobj = &ctxs->kobj; in blk_mq_alloc_ctxs()
3521 q->queue_ctx = ctxs->queue_ctx; in blk_mq_alloc_ctxs()
3525 kfree(ctxs); in blk_mq_alloc_ctxs()