Lines Matching refs:ctx
213 struct blk_mq_ctx *ctx)
215 unsigned short idx = ctx->index_hw[hctx->type];
235 struct blk_mq_ctx *ctx = READ_ONCE(hctx->dispatch_from);
251 rq = blk_mq_dequeue_from_ctx(hctx, ctx);
273 ctx = blk_mq_next_ctx(hctx, rq->mq_ctx);
277 WRITE_ONCE(hctx->dispatch_from, ctx);
358 struct blk_mq_ctx *ctx;
366 ctx = blk_mq_get_ctx(q);
367 hctx = blk_mq_map_queue(q, bio->bi_opf, ctx);
370 list_empty_careful(&ctx->rq_lists[type]))
374 spin_lock(&ctx->lock);
380 if (blk_bio_list_merge(q, &ctx->rq_lists[type], bio, nr_segs)) {
381 ctx->rq_merged++;
385 spin_unlock(&ctx->lock);
432 struct blk_mq_ctx *ctx = rq->mq_ctx;
470 spin_lock(&ctx->lock);
472 spin_unlock(&ctx->lock);
481 struct blk_mq_ctx *ctx,
508 blk_mq_insert_requests(hctx, ctx, list);