Home
last modified time | relevance | path

Searched refs:part_to_dev (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dgenhd.h25 #define part_to_dev(part) (&((part)->__dev)) macro
223 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()
/kernel/linux/linux-5.10/block/partitions/
Dcore.c300 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()
/kernel/linux/linux-5.10/block/
Dgenhd.c176 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()
/kernel/linux/linux-5.10/init/
Ddo_mounts.c156 put_device(part_to_dev(part)); in devt_from_partuuid()
/kernel/linux/linux-5.10/fs/
Dblock_dev.c1273 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()
/kernel/linux/linux-5.10/fs/btrfs/
Dsysfs.c1248 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()
/kernel/linux/linux-5.10/drivers/md/bcache/
Dsuper.c1493 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()
/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd.c448 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()
/kernel/linux/linux-5.10/drivers/md/
Dmd.c2469 ko = &part_to_dev(rdev->bdev->bd_part)->kobj; in bind_rdev_to_array()
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch49065 + pdev = part_to_dev(p);