Lines Matching refs:ctx
197 struct blk_mq_ctx *ctx)
199 unsigned short idx = ctx->index_hw[hctx->type];
219 struct blk_mq_ctx *ctx = READ_ONCE(hctx->dispatch_from);
238 rq = blk_mq_dequeue_from_ctx(hctx, ctx);
262 ctx = blk_mq_next_ctx(hctx, rq->mq_ctx);
266 WRITE_ONCE(hctx->dispatch_from, ctx);
343 struct blk_mq_ctx *ctx;
353 ctx = blk_mq_get_ctx(q);
354 hctx = blk_mq_map_queue(q, bio->bi_opf, ctx);
357 list_empty_careful(&ctx->rq_lists[type]))
361 spin_lock(&ctx->lock);
367 if (blk_bio_list_merge(q, &ctx->rq_lists[type], bio, nr_segs))
370 spin_unlock(&ctx->lock);