Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 18 of 18) sorted by relevance

/block/
Dblk-mq-sysfs.c16 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()
[all …]
Dblk-crypto-sysfs.c14 struct kobject kobj; member
24 static struct blk_crypto_profile *kobj_to_crypto_profile(struct kobject *kobj) in kobj_to_crypto_profile() argument
26 return container_of(kobj, struct blk_crypto_kobj, kobj)->profile; in kobj_to_crypto_profile()
69 static umode_t blk_crypto_mode_is_visible(struct kobject *kobj, in blk_crypto_mode_is_visible() argument
72 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_mode_is_visible()
101 static ssize_t blk_crypto_attr_show(struct kobject *kobj, in blk_crypto_attr_show() argument
104 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_attr_show()
114 static void blk_crypto_release(struct kobject *kobj) in blk_crypto_release() argument
116 kfree(container_of(kobj, struct blk_crypto_kobj, kobj)); in blk_crypto_release()
143 err = kobject_init_and_add(&obj->kobj, &blk_crypto_ktype, in blk_crypto_sysfs_register()
[all …]
Dblk-ia-ranges.c50 static ssize_t blk_ia_range_sysfs_show(struct kobject *kobj, in blk_ia_range_sysfs_show() argument
56 container_of(kobj, struct blk_independent_access_range, kobj); in blk_ia_range_sysfs_show()
74 static void blk_ia_range_sysfs_nop_release(struct kobject *kobj) in blk_ia_range_sysfs_nop_release() argument
89 static void blk_ia_ranges_sysfs_release(struct kobject *kobj) in blk_ia_ranges_sysfs_release() argument
92 container_of(kobj, struct blk_independent_access_ranges, kobj); in blk_ia_ranges_sysfs_release()
125 ret = kobject_init_and_add(&iars->kobj, &blk_ia_ranges_ktype, in disk_register_independent_access_ranges()
130 kobject_put(&iars->kobj); in disk_register_independent_access_ranges()
135 ret = kobject_init_and_add(&iars->ia_range[i].kobj, in disk_register_independent_access_ranges()
136 &blk_ia_range_ktype, &iars->kobj, in disk_register_independent_access_ranges()
140 kobject_del(&iars->ia_range[i].kobj); in disk_register_independent_access_ranges()
[all …]
Delevator.c142 kobject_init(&eq->kobj, &elv_ktype); in elevator_alloc()
150 static void elevator_release(struct kobject *kobj) in elevator_release() argument
154 e = container_of(kobj, struct elevator_queue, kobj); in elevator_release()
170 kobject_put(&e->kobj); in elevator_exit()
419 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument
428 e = container_of(kobj, struct elevator_queue, kobj); in elv_attr_show()
436 elv_attr_store(struct kobject *kobj, struct attribute *attr, in elv_attr_store() argument
446 e = container_of(kobj, struct elevator_queue, kobj); in elv_attr_store()
470 error = kobject_add(&e->kobj, &q->disk->queue_kobj, "iosched"); in elv_register_queue()
475 if (sysfs_create_file(&e->kobj, &attr->attr)) in elv_register_queue()
[all …]
Dblk-sysfs.c673 static umode_t queue_attr_visible(struct kobject *kobj, struct attribute *attr, in queue_attr_visible() argument
676 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_visible()
687 static umode_t blk_mq_queue_attr_visible(struct kobject *kobj, in blk_mq_queue_attr_visible() argument
690 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in blk_mq_queue_attr_visible()
715 queue_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in queue_attr_show() argument
718 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_show()
731 queue_attr_store(struct kobject *kobj, struct attribute *attr, in queue_attr_store() argument
735 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_store()
759 static void blk_queue_release(struct kobject *kobj) in blk_queue_release() argument
794 ret = kobject_add(&disk->queue_kobj, &disk_to_dev(disk)->kobj, "queue"); in blk_register_queue()
[all …]
Dgenhd.c95 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in set_capacity_and_notify()
331 if (!kobject_get_unless_zero(&part->bd_device.kobj)) in disk_uevent()
464 ret = sysfs_create_link(block_depr, &ddev->kobj, in device_add_disk()
465 kobject_name(&ddev->kobj)); in device_add_disk()
477 kobject_create_and_add("holders", &ddev->kobj); in device_add_disk()
482 disk->slave_dir = kobject_create_and_add("slaves", &ddev->kobj); in device_add_disk()
498 ret = sysfs_create_link(&ddev->kobj, in device_add_disk()
499 &disk->bdi->dev->kobj, "bdi"); in device_add_disk()
564 if (!kobject_get_unless_zero(&bdev->bd_device.kobj)) in blk_report_disk_dead()
669 sysfs_remove_link(&disk_to_dev(disk)->kobj, "bdi"); in del_gendisk()
[all …]
Dholder.c107 ret = add_symlink(bdev->bd_holder_dir, &disk_to_dev(disk)->kobj); in bd_link_disk_holder()
149 del_symlink(holder->holder_dir, &disk_to_dev(disk)->kobj); in bd_unlink_disk_holder()
Dblk-mq.h11 struct kobject kobj; member
30 struct kobject kobj; member
Delevator.h127 struct kobject kobj; member
Dbsg.c224 ret = sysfs_create_link(&q->disk->queue_kobj, &bd->device.kobj, in bsg_register_queue()
Ddisk-events.c181 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in disk_event_uevent()
Dblk-mq-sched.c486 kobject_put(&eq->kobj); in blk_mq_init_sched()
Dbdev.c727 if (!kobject_get_unless_zero(&bdev->bd_device.kobj)) in blkdev_get_no_open()
Dkyber-iosched.c416 kobject_put(&eq->kobj); in kyber_init_sched()
Dmq-deadline.c748 kobject_put(&eq->kobj); in dd_init_sched()
Dblk-mq.c4057 q->mq_kobj = &ctxs->kobj; in blk_mq_alloc_ctxs()
4083 kobject_put(&hctx->kobj); in blk_mq_release()
4210 kobject_put(&hctx->kobj); in blk_mq_alloc_and_init_hctx()
Dbfq-iosched.c7205 kobject_put(&eq->kobj); in bfq_init_queue()
7366 kobject_put(&eq->kobj); in bfq_init_queue()
/block/partitions/
Dcore.c384 bdev->bd_holder_dir = kobject_create_and_add("holders", &pdev->kobj); in add_partition()
403 kobject_uevent(&pdev->kobj, KOBJ_ADD); in add_partition()
639 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in blk_add_partitions()
695 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in bdev_disk_changed()