Searched refs:part_to_dev (Results 1 – 10 of 10) sorted by relevance
25 #define part_to_dev(part) (&((part)->__dev)) macro223 return dev_to_disk(part_to_dev(part)->parent); in part_to_disk()225 return dev_to_disk(part_to_dev(part)); in part_to_disk()250 return part_to_dev(part)->devt; in part_devt()259 put_device(part_to_dev(part)); in disk_put_part()
300 put_device(part_to_dev(part)); in hd_struct_free_work()341 device_del(part_to_dev(part)); in delete_partition()419 pdev = part_to_dev(p); in add_partition()711 md_autodetect_dev(part_to_dev(part)->devt); in blk_add_partition()
176 get_device(part_to_dev(part)); in disk_get_part()259 get_device(part_to_dev(part)); in disk_part_iter_next()265 put_device(part_to_dev(part)); in disk_part_iter_next()755 kobject_uevent(&part_to_dev(part)->kobj, KOBJ_ADD); in register_disk()
156 put_device(part_to_dev(part)); in devt_from_partuuid()
1273 ret = add_symlink(disk->slave_dir, &part_to_dev(bdev->bd_part)->kobj); in bd_link_disk_holder()1290 del_symlink(disk->slave_dir, &part_to_dev(bdev->bd_part)->kobj); in bd_link_disk_holder()1318 del_symlink(disk->slave_dir, &part_to_dev(bdev->bd_part)->kobj); in bd_unlink_disk_holder()
1248 disk_kobj = &part_to_dev(disk)->kobj; in btrfs_sysfs_remove_device()1360 disk_kobj = &part_to_dev(disk)->kobj; in btrfs_sysfs_add_device()
1493 if (kobject_add(&dc->disk.kobj, &part_to_dev(bdev->bd_part)->kobj, in register_bdev()2399 &part_to_dev(bdev->bd_part)->kobj, in register_cache()
448 kobject_uevent(&part_to_dev(part)->kobj, KOBJ_CHANGE); in dasd_state_ready_to_online()475 kobject_uevent(&part_to_dev(part)->kobj, KOBJ_CHANGE); in dasd_state_online_to_ready()
2469 ko = &part_to_dev(rdev->bdev->bd_part)->kobj; in bind_rdev_to_array()
49065 + pdev = part_to_dev(p);