Lines Matching refs:ctx
631 __acquires(&ctx->lock) \
633 struct blk_mq_ctx *ctx = m->private; \
635 spin_lock(&ctx->lock); \
636 return seq_list_start(&ctx->rq_lists[type], *pos); \
642 struct blk_mq_ctx *ctx = m->private; \
644 return seq_list_next(v, &ctx->rq_lists[type], pos); \
648 __releases(&ctx->lock) \
650 struct blk_mq_ctx *ctx = m->private; \
652 spin_unlock(&ctx->lock); \
668 struct blk_mq_ctx *ctx = data; in ctx_dispatched_show() local
670 seq_printf(m, "%lu %lu\n", ctx->rq_dispatched[1], ctx->rq_dispatched[0]); in ctx_dispatched_show()
677 struct blk_mq_ctx *ctx = data; in ctx_dispatched_write() local
679 ctx->rq_dispatched[0] = ctx->rq_dispatched[1] = 0; in ctx_dispatched_write()
685 struct blk_mq_ctx *ctx = data; in ctx_merged_show() local
687 seq_printf(m, "%lu\n", ctx->rq_merged); in ctx_merged_show()
694 struct blk_mq_ctx *ctx = data; in ctx_merged_write() local
696 ctx->rq_merged = 0; in ctx_merged_write()
702 struct blk_mq_ctx *ctx = data; in ctx_completed_show() local
704 seq_printf(m, "%lu %lu\n", ctx->rq_completed[1], ctx->rq_completed[0]); in ctx_completed_show()
711 struct blk_mq_ctx *ctx = data; in ctx_completed_write() local
713 ctx->rq_completed[0] = ctx->rq_completed[1] = 0; in ctx_completed_write()
864 struct blk_mq_ctx *ctx) in blk_mq_debugfs_register_ctx() argument
869 snprintf(name, sizeof(name), "cpu%u", ctx->cpu); in blk_mq_debugfs_register_ctx()
872 debugfs_create_files(ctx_dir, ctx, blk_mq_debugfs_ctx_attrs); in blk_mq_debugfs_register_ctx()
878 struct blk_mq_ctx *ctx; in blk_mq_debugfs_register_hctx() local
890 hctx_for_each_ctx(hctx, ctx, i) in blk_mq_debugfs_register_hctx()
891 blk_mq_debugfs_register_ctx(hctx, ctx); in blk_mq_debugfs_register_hctx()