Home
last modified time | relevance | path

Searched refs:dev_to_disk (Results 1 – 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/include/trace/events/
Dkyber.h33 __entry->dev = disk_devt(dev_to_disk(kobj_to_dev(q->kobj.parent)));
62 __entry->dev = disk_devt(dev_to_disk(kobj_to_dev(q->kobj.parent)));
84 __entry->dev = disk_devt(dev_to_disk(kobj_to_dev(q->kobj.parent)));
/kernel/linux/linux-5.10/block/
Dgenhd.c970 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_show()
982 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_store()
1011 disk = dev_to_disk(kobj_to_dev(kobj)); in get_gendisk()
1082 struct gendisk *disk = dev_to_disk(dev); in printk_all_partitions()
1144 return dev_to_disk(dev); in disk_seqf_start()
1154 return dev_to_disk(dev); in disk_seqf_next()
1248 struct gendisk *disk = dev_to_disk(dev); in disk_range_show()
1256 struct gendisk *disk = dev_to_disk(dev); in disk_ext_range_show()
1264 struct gendisk *disk = dev_to_disk(dev); in disk_removable_show()
1273 struct gendisk *disk = dev_to_disk(dev); in disk_hidden_show()
[all …]
Dblk-timeout.c42 struct gendisk *disk = dev_to_disk(dev); in part_timeout_show()
51 struct gendisk *disk = dev_to_disk(dev); in part_timeout_store()
Dblk-cgroup.c834 struct gendisk *disk = dev_to_disk(dev); in blkcg_fill_root_iostats()
/kernel/linux/linux-5.10/drivers/block/aoe/
Daoeblk.c37 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_state()
50 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_mac()
61 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_netif()
99 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_fwver()
107 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_payload()
/kernel/linux/linux-5.10/include/linux/
Dgenhd.h22 #define dev_to_disk(device) container_of((device), struct gendisk, part0.__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()
/kernel/linux/linux-5.10/drivers/block/
Dvirtio_blk.c419 struct gendisk *disk = dev_to_disk(dev); in serial_show()
612 struct gendisk *disk = dev_to_disk(dev); in cache_type_store()
630 struct gendisk *disk = dev_to_disk(dev); in cache_type_show()
650 struct gendisk *disk = dev_to_disk(dev); in virtblk_attrs_are_visible()
Dloop.c760 struct gendisk *disk = dev_to_disk(dev); in loop_attr_show()
Dnbd.c214 struct gendisk *disk = dev_to_disk(dev); in pid_show()
/kernel/linux/linux-5.10/drivers/mmc/core/
Dblock.c215 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in power_ro_lock_show()
246 md = mmc_blk_get(dev_to_disk(dev)); in power_ro_lock_store()
280 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in force_ro_show()
283 get_disk_ro(dev_to_disk(dev)) ^ in force_ro_show()
294 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in force_ro_store()
301 set_disk_ro(dev_to_disk(dev), set || md->read_only); in force_ro_store()
/kernel/linux/linux-5.10/drivers/nvme/host/
Dnvme.h892 return dev_to_disk(dev)->private_data; in nvme_get_ns_from_dev()
Dlightnvm.c1245 struct gendisk *disk = dev_to_disk(dev); in nvm_dev_attrs_visible()
Dcore.c3366 struct gendisk *disk = dev_to_disk(dev); in dev_to_ns_head()
3477 if (dev_to_disk(dev)->fops != &nvme_fops) /* per-path attr */ in nvme_ns_id_attrs_are_visible()
/kernel/linux/linux-5.10/drivers/block/zram/
Dzram_drv.c73 return (struct zram *)dev_to_disk(dev)->private_data; in dev_to_zram()
/kernel/linux/linux-5.10/drivers/block/mtip32xx/
Dmtip32xx.c2148 struct driver_data *dd = dev_to_disk(dev)->private_data; in mtip_hw_show_status()