Lines Matching refs:ctxs
1013 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in flush_busy_ctx()
1048 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in dispatch_rq_from_ctx()
2812 hctx->ctxs = kmalloc_array_node(nr_cpu_ids, sizeof(void *), in blk_mq_alloc_hctx()
2814 if (!hctx->ctxs) in blk_mq_alloc_hctx()
2839 kfree(hctx->ctxs); in blk_mq_alloc_hctx()
2964 hctx->ctxs[hctx->nr_ctx++] = ctx; in blk_mq_map_swqueue()
3084 struct blk_mq_ctxs *ctxs; in blk_mq_alloc_ctxs() local
3087 ctxs = kzalloc(sizeof(*ctxs), GFP_KERNEL); in blk_mq_alloc_ctxs()
3088 if (!ctxs) in blk_mq_alloc_ctxs()
3091 ctxs->queue_ctx = alloc_percpu(struct blk_mq_ctx); in blk_mq_alloc_ctxs()
3092 if (!ctxs->queue_ctx) in blk_mq_alloc_ctxs()
3096 struct blk_mq_ctx *ctx = per_cpu_ptr(ctxs->queue_ctx, cpu); in blk_mq_alloc_ctxs()
3097 ctx->ctxs = ctxs; in blk_mq_alloc_ctxs()
3100 q->mq_kobj = &ctxs->kobj; in blk_mq_alloc_ctxs()
3101 q->queue_ctx = ctxs->queue_ctx; in blk_mq_alloc_ctxs()
3105 kfree(ctxs); in blk_mq_alloc_ctxs()