Home
last modified time | relevance | path

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

/linux-6.6.21/block/
Dgenhd.c751 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_show()
763 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_store()
813 return dev_to_disk(dev); in disk_seqf_start()
823 return dev_to_disk(dev); in disk_seqf_next()
900 struct gendisk *disk = dev_to_disk(dev); in disk_range_show()
908 struct gendisk *disk = dev_to_disk(dev); in disk_ext_range_show()
917 struct gendisk *disk = dev_to_disk(dev); in disk_removable_show()
926 struct gendisk *disk = dev_to_disk(dev); in disk_hidden_show()
935 struct gendisk *disk = dev_to_disk(dev); in disk_ro_show()
1021 struct gendisk *disk = dev_to_disk(dev); in disk_alignment_offset_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()
Dearly-lookup.c80 *devt = part_devt(dev_to_disk(dev), in devt_from_partuuid()
132 struct gendisk *disk = dev_to_disk(dev); in blk_lookup_devt()
279 struct gendisk *disk = dev_to_disk(dev); in printk_all_partitions()
Ddisk-events.c348 struct gendisk *disk = dev_to_disk(dev); in disk_events_show()
365 struct gendisk *disk = dev_to_disk(dev); in disk_events_poll_msecs_show()
376 struct gendisk *disk = dev_to_disk(dev); in disk_events_poll_msecs_store()
Dblk-integrity.c217 return &dev_to_disk(dev)->queue->integrity; in dev_to_bi()
/linux-6.6.21/drivers/block/aoe/
Daoeblk.c36 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_state()
48 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_mac()
59 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_netif()
97 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_fwver()
105 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_payload()
/linux-6.6.21/drivers/mmc/core/
Dblock.c228 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in power_ro_lock_show()
259 md = mmc_blk_get(dev_to_disk(dev)); in power_ro_lock_store()
297 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in force_ro_show()
300 get_disk_ro(dev_to_disk(dev)) ^ in force_ro_show()
311 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in force_ro_store()
318 set_disk_ro(dev_to_disk(dev), set || md->read_only); in force_ro_store()
337 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in mmc_disk_attrs_is_visible()
/linux-6.6.21/drivers/nvme/host/
Dsysfs.c40 struct gendisk *disk = dev_to_disk(dev); in dev_to_ns_head()
151 if (dev_to_disk(dev)->fops != &nvme_bdev_ops) /* per-path attr */ in nvme_ns_id_attrs_are_visible()
Dnvme.h1033 return dev_to_disk(dev)->private_data; in nvme_get_ns_from_dev()
/linux-6.6.21/drivers/block/
Dvirtio_blk.c955 struct gendisk *disk = dev_to_disk(dev); in serial_show()
1166 struct gendisk *disk = dev_to_disk(dev); in cache_type_store()
1184 struct gendisk *disk = dev_to_disk(dev); in cache_type_show()
1204 struct gendisk *disk = dev_to_disk(dev); in virtblk_attrs_are_visible()
Dnbd.c224 struct gendisk *disk = dev_to_disk(dev); in pid_show()
238 struct gendisk *disk = dev_to_disk(dev); in backend_show()
Dloop.c651 struct gendisk *disk = dev_to_disk(dev); in loop_attr_show()
/linux-6.6.21/drivers/nvdimm/
Dpmem.c377 struct pmem_device *pmem = dev_to_disk(dev)->private_data; in write_cache_show()
385 struct pmem_device *pmem = dev_to_disk(dev)->private_data; in write_cache_store()
/linux-6.6.21/include/linux/
Dblkdev.h236 #define dev_to_disk(device) \ macro
/linux-6.6.21/arch/um/drivers/
Dubd_kern.c823 struct gendisk *disk = dev_to_disk(dev); in serial_show()
/linux-6.6.21/drivers/block/zram/
Dzram_drv.c82 return (struct zram *)dev_to_disk(dev)->private_data; in dev_to_zram()
/linux-6.6.21/drivers/block/mtip32xx/
Dmtip32xx.c2136 struct driver_data *dd = dev_to_disk(dev)->private_data; in mtip_hw_show_status()