Lines Matching refs:kobj
18 static void blk_mq_sysfs_release(struct kobject *kobj) in blk_mq_sysfs_release() argument
20 struct blk_mq_ctxs *ctxs = container_of(kobj, struct blk_mq_ctxs, kobj); in blk_mq_sysfs_release()
26 static void blk_mq_ctx_sysfs_release(struct kobject *kobj) in blk_mq_ctx_sysfs_release() argument
28 struct blk_mq_ctx *ctx = container_of(kobj, struct blk_mq_ctx, kobj); in blk_mq_ctx_sysfs_release()
31 kobject_put(&ctx->ctxs->kobj); in blk_mq_ctx_sysfs_release()
34 static void blk_mq_hw_sysfs_release(struct kobject *kobj) in blk_mq_hw_sysfs_release() argument
36 struct blk_mq_hw_ctx *hctx = container_of(kobj, struct blk_mq_hw_ctx, in blk_mq_hw_sysfs_release()
37 kobj); in blk_mq_hw_sysfs_release()
52 static ssize_t blk_mq_hw_sysfs_show(struct kobject *kobj, in blk_mq_hw_sysfs_show() argument
61 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_show()
73 static ssize_t blk_mq_hw_sysfs_store(struct kobject *kobj, in blk_mq_hw_sysfs_store() argument
83 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_store()
179 kobject_del(&ctx->kobj); in blk_mq_unregister_hctx()
181 kobject_del(&hctx->kobj); in blk_mq_unregister_hctx()
193 ret = kobject_add(&hctx->kobj, q->mq_kobj, "%u", hctx->queue_num); in blk_mq_register_hctx()
198 ret = kobject_add(&ctx->kobj, &hctx->kobj, "cpu%u", ctx->cpu); in blk_mq_register_hctx()
208 kobject_init(&hctx->kobj, &blk_mq_hw_ktype); in blk_mq_hctx_kobj_init()
218 kobject_put(&ctx->kobj); in blk_mq_sysfs_deinit()
234 kobject_init(&ctx->kobj, &blk_mq_ctx_ktype); in blk_mq_sysfs_init()
247 ret = kobject_add(q->mq_kobj, &disk_to_dev(disk)->kobj, "mq"); in blk_mq_sysfs_register()