Lines Matching refs:kobj
16 static void blk_mq_sysfs_release(struct kobject *kobj) in blk_mq_sysfs_release() argument
18 struct blk_mq_ctxs *ctxs = container_of(kobj, struct blk_mq_ctxs, kobj); in blk_mq_sysfs_release()
24 static void blk_mq_ctx_sysfs_release(struct kobject *kobj) in blk_mq_ctx_sysfs_release() argument
26 struct blk_mq_ctx *ctx = container_of(kobj, struct blk_mq_ctx, kobj); in blk_mq_ctx_sysfs_release()
29 kobject_put(&ctx->ctxs->kobj); in blk_mq_ctx_sysfs_release()
32 static void blk_mq_hw_sysfs_release(struct kobject *kobj) in blk_mq_hw_sysfs_release() argument
34 struct blk_mq_hw_ctx *hctx = container_of(kobj, struct blk_mq_hw_ctx, in blk_mq_hw_sysfs_release()
35 kobj); in blk_mq_hw_sysfs_release()
49 static ssize_t blk_mq_hw_sysfs_show(struct kobject *kobj, in blk_mq_hw_sysfs_show() argument
58 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_show()
153 kobject_del(&ctx->kobj); in blk_mq_unregister_hctx()
155 kobject_del(&hctx->kobj); in blk_mq_unregister_hctx()
167 ret = kobject_add(&hctx->kobj, q->mq_kobj, "%u", hctx->queue_num); in blk_mq_register_hctx()
172 ret = kobject_add(&ctx->kobj, &hctx->kobj, "cpu%u", ctx->cpu); in blk_mq_register_hctx()
181 kobject_del(&ctx->kobj); in blk_mq_register_hctx()
183 kobject_del(&hctx->kobj); in blk_mq_register_hctx()
189 kobject_init(&hctx->kobj, &blk_mq_hw_ktype); in blk_mq_hctx_kobj_init()
199 kobject_put(&ctx->kobj); in blk_mq_sysfs_deinit()
215 kobject_init(&ctx->kobj, &blk_mq_ctx_ktype); in blk_mq_sysfs_init()
228 ret = kobject_add(q->mq_kobj, &disk_to_dev(disk)->kobj, "mq"); in blk_mq_sysfs_register()