/block/ |
D | blk-mq-sysfs.c | 16 static void blk_mq_sysfs_release(struct kobject *kobj) in blk_mq_sysfs_release() argument 32 static ssize_t blk_mq_sysfs_show(struct kobject *kobj, struct attribute *attr, in blk_mq_sysfs_show() argument 41 ctx = container_of(kobj, struct blk_mq_ctx, kobj); in blk_mq_sysfs_show() 55 static ssize_t blk_mq_sysfs_store(struct kobject *kobj, struct attribute *attr, in blk_mq_sysfs_store() argument 64 ctx = container_of(kobj, struct blk_mq_ctx, kobj); in blk_mq_sysfs_store() 78 static ssize_t blk_mq_hw_sysfs_show(struct kobject *kobj, in blk_mq_hw_sysfs_show() argument 87 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_show() 101 static ssize_t blk_mq_hw_sysfs_store(struct kobject *kobj, in blk_mq_hw_sysfs_store() argument 111 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_store() 361 kobject_del(&ctx->kobj); in blk_mq_unregister_hctx() [all …]
|
D | blk-sysfs.c | 513 queue_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in queue_attr_show() argument 517 container_of(kobj, struct request_queue, kobj); in queue_attr_show() 533 queue_attr_store(struct kobject *kobj, struct attribute *attr, in queue_attr_store() argument 543 q = container_of(kobj, struct request_queue, kobj); in queue_attr_store() 576 static void blk_release_queue(struct kobject *kobj) in blk_release_queue() argument 579 container_of(kobj, struct request_queue, kobj); in blk_release_queue() 649 ret = kobject_add(&q->kobj, kobject_get(&dev->kobj), "%s", "queue"); in blk_register_queue() 655 kobject_uevent(&q->kobj, KOBJ_ADD); in blk_register_queue() 665 kobject_uevent(&q->kobj, KOBJ_REMOVE); in blk_register_queue() 666 kobject_del(&q->kobj); in blk_register_queue() [all …]
|
D | elevator.c | 163 kobject_init(&eq->kobj, &elv_ktype); in elevator_alloc() 171 static void elevator_release(struct kobject *kobj) in elevator_release() argument 175 e = container_of(kobj, struct elevator_queue, kobj); in elevator_release() 241 kobject_put(&e->kobj); in elevator_exit() 748 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument 757 e = container_of(kobj, struct elevator_queue, kobj); in elv_attr_show() 765 elv_attr_store(struct kobject *kobj, struct attribute *attr, in elv_attr_store() argument 775 e = container_of(kobj, struct elevator_queue, kobj); in elv_attr_store() 797 error = kobject_add(&e->kobj, &q->kobj, "%s", "iosched"); in elv_register_queue() 802 if (sysfs_create_file(&e->kobj, &attr->attr)) in elv_register_queue() [all …]
|
D | genhd.c | 499 return &disk_to_dev(p)->kobj; in exact_match() 529 err = sysfs_create_link(block_depr, &ddev->kobj, in register_disk() 530 kobject_name(&ddev->kobj)); in register_disk() 544 disk->part0.holder_dir = kobject_create_and_add("holders", &ddev->kobj); in register_disk() 545 disk->slave_dir = kobject_create_and_add("slaves", &ddev->kobj); in register_disk() 568 kobject_uevent(&ddev->kobj, KOBJ_ADD); in register_disk() 573 kobject_uevent(&part_to_dev(part)->kobj, KOBJ_ADD); in register_disk() 631 retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, in add_disk() 661 sysfs_remove_link(&disk_to_dev(disk)->kobj, "bdi"); in del_gendisk() 690 struct kobject *kobj; in get_gendisk() local [all …]
|
D | blk-integrity.c | 245 static ssize_t integrity_attr_show(struct kobject *kobj, struct attribute *attr, in integrity_attr_show() argument 248 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_show() 256 static ssize_t integrity_attr_store(struct kobject *kobj, in integrity_attr_store() argument 260 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_store() 442 &disk_to_dev(disk)->kobj, "%s", "integrity")) in blk_integrity_add()
|
D | partition-generic.c | 354 p->holder_dir = kobject_create_and_add("holders", &pdev->kobj); in add_partition() 377 kobject_uevent(&pdev->kobj, KOBJ_ADD); in add_partition() 483 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in rescan_partitions() 567 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in invalidate_partitions()
|
D | blk-mq.h | 25 struct kobject kobj; member
|
D | bsg.c | 968 if (q->kobj.sd) in bsg_unregister_queue() 969 sysfs_remove_link(&q->kobj, "bsg"); in bsg_unregister_queue() 1024 if (q->kobj.sd) { in bsg_register_queue() 1025 ret = sysfs_create_link(&q->kobj, &bcd->class_dev->kobj, "bsg"); in bsg_register_queue()
|
D | noop-iosched.c | 73 kobject_put(&eq->kobj); in noop_init_queue()
|
D | bsg-lib.c | 226 "initialize - register queue\n", dev->kobj.name); in bsg_setup_queue()
|
D | blk.h | 54 kobject_get(&q->kobj); in __blk_get_queue()
|
D | deadline-iosched.c | 351 kobject_put(&eq->kobj); in deadline_init_queue()
|
D | blk-core.c | 383 kobject_put(&q->kobj); in blk_put_queue() 722 kobject_init(&q->kobj, &blk_queue_ktype); in blk_alloc_queue_node()
|
D | cfq-iosched.c | 4520 kobject_put(&eq->kobj); in cfq_init_queue() 4603 kobject_put(&eq->kobj); in cfq_init_queue()
|