/linux-6.1.9/block/ |
D | blk.h | 215 int blk_integrity_add(struct gendisk *disk); 216 void blk_integrity_del(struct gendisk *); 249 static inline int blk_integrity_add(struct gendisk *disk) in blk_integrity_add() 253 static inline void blk_integrity_del(struct gendisk *disk) in blk_integrity_del() 399 int blk_iolatency_init(struct gendisk *disk); 401 static inline int blk_iolatency_init(struct gendisk *disk) { return 0; }; in blk_iolatency_init() 405 void disk_free_zone_bitmaps(struct gendisk *disk); 406 void disk_clear_zone_settings(struct gendisk *disk); 408 static inline void disk_free_zone_bitmaps(struct gendisk *disk) {} in disk_free_zone_bitmaps() 409 static inline void disk_clear_zone_settings(struct gendisk *disk) {} in disk_clear_zone_settings() [all …]
|
D | disk-events.c | 12 struct gendisk *disk; /* the associated disk */ 41 static unsigned long disk_events_poll_jiffies(struct gendisk *disk) in disk_events_poll_jiffies() 73 void disk_block_events(struct gendisk *disk) in disk_block_events() 98 static void __disk_unblock_events(struct gendisk *disk, bool check_now) in __disk_unblock_events() 133 void disk_unblock_events(struct gendisk *disk) in disk_unblock_events() 151 void disk_flush_events(struct gendisk *disk, unsigned int mask) in disk_flush_events() 171 static void disk_event_uevent(struct gendisk *disk, unsigned int events) in disk_event_uevent() 187 struct gendisk *disk = ev->disk; in disk_check_events() 227 static unsigned int disk_clear_events(struct gendisk *disk, unsigned int mask) in disk_clear_events() 303 bool disk_force_media_change(struct gendisk *disk, unsigned int events) in disk_force_media_change() [all …]
|
D | blk-throttle.h | 171 static inline int blk_throtl_init(struct gendisk *disk) { return 0; } in blk_throtl_init() 172 static inline void blk_throtl_exit(struct gendisk *disk) { } in blk_throtl_exit() 173 static inline void blk_throtl_register(struct gendisk *disk) { } in blk_throtl_register() 175 static inline void blk_throtl_cancel_bios(struct gendisk *disk) { } in blk_throtl_cancel_bios() 177 int blk_throtl_init(struct gendisk *disk); 178 void blk_throtl_exit(struct gendisk *disk); 179 void blk_throtl_register(struct gendisk *disk); 181 void blk_throtl_cancel_bios(struct gendisk *disk);
|
D | blk-ioprio.h | 12 int blk_ioprio_init(struct gendisk *disk); 13 void blk_ioprio_exit(struct gendisk *disk); 16 static inline int blk_ioprio_init(struct gendisk *disk) in blk_ioprio_init() 20 static inline void blk_ioprio_exit(struct gendisk *disk) in blk_ioprio_exit()
|
D | genhd.c | 58 void set_capacity(struct gendisk *disk, sector_t sectors) in set_capacity() 73 bool set_capacity_and_notify(struct gendisk *disk, sector_t size) in set_capacity_and_notify() 338 void disk_uevent(struct gendisk *disk, enum kobject_action action) in disk_uevent() 359 int disk_scan_partitions(struct gendisk *disk, fmode_t mode, void *owner) in disk_scan_partitions() 390 int __must_check device_add_disk(struct device *parent, struct gendisk *disk, in device_add_disk() 563 void blk_mark_disk_dead(struct gendisk *disk) in blk_mark_disk_dead() 589 void del_gendisk(struct gendisk *disk) in del_gendisk() 686 void invalidate_disk(struct gendisk *disk) in invalidate_disk() 701 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_show() 713 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_store() [all …]
|
D | holder.c | 12 struct gendisk *disk) in bd_find_holder_disk() 32 static int __link_disk_holder(struct block_device *bdev, struct gendisk *disk) in __link_disk_holder() 73 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_link_disk_holder() 119 struct gendisk *disk) in __unlink_disk_holder() 135 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_unlink_disk_holder() 152 int bd_register_pending_holders(struct gendisk *disk) in bd_register_pending_holders()
|
D | blk-integrity.c | 121 int blk_integrity_compare(struct gendisk *gd1, struct gendisk *gd2) in blk_integrity_compare() 224 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_show() 236 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_store() 397 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() 427 void blk_integrity_unregister(struct gendisk *disk) in blk_integrity_unregister() 441 int blk_integrity_add(struct gendisk *disk) in blk_integrity_add() 452 void blk_integrity_del(struct gendisk *disk) in blk_integrity_del()
|
D | blk-ia-ranges.c | 108 int disk_register_independent_access_ranges(struct gendisk *disk) in disk_register_independent_access_ranges() 151 void disk_unregister_independent_access_ranges(struct gendisk *disk) in disk_unregister_independent_access_ranges() 192 static bool disk_check_ia_ranges(struct gendisk *disk, in disk_check_ia_ranges() 232 static bool disk_ia_ranges_changed(struct gendisk *disk, in disk_ia_ranges_changed() 263 disk_alloc_independent_access_ranges(struct gendisk *disk, int nr_ia_ranges) in disk_alloc_independent_access_ranges() 286 void disk_set_independent_access_ranges(struct gendisk *disk, in disk_set_independent_access_ranges()
|
D | blk-zoned.c | 147 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones() 189 struct gendisk *disk = bdev->bd_disk; in blkdev_zone_reset_all_emulated() 448 void disk_free_zone_bitmaps(struct gendisk *disk) in disk_free_zone_bitmaps() 457 struct gendisk *disk; 472 struct gendisk *disk = args->disk; in blk_revalidate_zone_cb() 554 int blk_revalidate_disk_zones(struct gendisk *disk, in blk_revalidate_disk_zones() 555 void (*update_driver_data)(struct gendisk *disk)) in blk_revalidate_disk_zones() 621 void disk_clear_zone_settings(struct gendisk *disk) in disk_clear_zone_settings()
|
D | blk-cgroup.h | 181 int blkcg_init_disk(struct gendisk *disk); 182 void blkcg_exit_disk(struct gendisk *disk); 484 static inline int blkcg_init_disk(struct gendisk *disk) { return 0; } in blkcg_init_disk() 485 static inline void blkcg_exit_disk(struct gendisk *disk) { } in blkcg_exit_disk()
|
D | blk-timeout.c | 42 struct gendisk *disk = dev_to_disk(dev); in part_timeout_show() 51 struct gendisk *disk = dev_to_disk(dev); in part_timeout_store()
|
/linux-6.1.9/include/linux/ |
D | blkdev.h | 122 struct gendisk { struct 207 static inline bool disk_live(struct gendisk *disk) in disk_live() argument 222 static inline unsigned int disk_openers(struct gendisk *disk) in disk_openers() 242 static inline dev_t disk_devt(struct gendisk *disk) in disk_devt() 326 void disk_set_zoned(struct gendisk *disk, enum blk_zoned_model model); 337 int blk_revalidate_disk_zones(struct gendisk *disk, 338 void (*update_driver_data)(struct gendisk *disk)); 439 struct gendisk *disk; 670 static inline unsigned int disk_nr_zones(struct gendisk *disk) in disk_nr_zones() 675 static inline unsigned int disk_zone_no(struct gendisk *disk, sector_t sector) in disk_zone_no() [all …]
|
D | blk-integrity.h | 39 void blk_integrity_register(struct gendisk *, struct blk_integrity *); 40 void blk_integrity_unregister(struct gendisk *); 41 int blk_integrity_compare(struct gendisk *, struct gendisk *); 46 static inline struct blk_integrity *blk_get_integrity(struct gendisk *disk) in blk_get_integrity() 133 static inline struct blk_integrity *blk_get_integrity(struct gendisk *disk) in blk_get_integrity() 142 static inline int blk_integrity_compare(struct gendisk *a, struct gendisk *b) in blk_integrity_compare() 146 static inline void blk_integrity_register(struct gendisk *d, in blk_integrity_register() 150 static inline void blk_integrity_unregister(struct gendisk *d) in blk_integrity_unregister()
|
D | dasd_mod.h | 7 struct gendisk; 9 extern int dasd_biodasdinfo(struct gendisk *disk, dasd_information2_t *info);
|
D | dax.h | 12 struct gendisk; 132 int dax_add_host(struct dax_device *dax_dev, struct gendisk *disk); 133 void dax_remove_host(struct gendisk *disk); 138 static inline int dax_add_host(struct dax_device *dax_dev, struct gendisk *disk) in dax_add_host() 142 static inline void dax_remove_host(struct gendisk *disk) in dax_remove_host()
|
D | blk-cgroup.h | 21 struct gendisk; 28 void blkcg_schedule_throttle(struct gendisk *disk, bool use_memdelay);
|
/linux-6.1.9/drivers/block/ |
D | ps3disk.c | 33 struct gendisk *gendisk; member 255 blk_mq_run_hw_queues(priv->gendisk->queue, true); in ps3disk_interrupt() 386 struct gendisk *gendisk; in ps3disk_probe() local 434 gendisk = blk_mq_alloc_disk(&priv->tag_set, dev); in ps3disk_probe() 435 if (IS_ERR(gendisk)) { in ps3disk_probe() 438 error = PTR_ERR(gendisk); in ps3disk_probe() 442 queue = gendisk->queue; in ps3disk_probe() 453 priv->gendisk = gendisk; in ps3disk_probe() 454 gendisk->major = ps3disk_major; in ps3disk_probe() 455 gendisk->first_minor = devidx * PS3DISK_MINORS; in ps3disk_probe() [all …]
|
D | ps3vram.c | 70 struct gendisk *gendisk; member 615 struct gendisk *gendisk; in ps3vram_probe() local 737 gendisk = blk_alloc_disk(NUMA_NO_NODE); in ps3vram_probe() 738 if (!gendisk) { in ps3vram_probe() 744 priv->gendisk = gendisk; in ps3vram_probe() 745 gendisk->major = ps3vram_major; in ps3vram_probe() 746 gendisk->minors = 1; in ps3vram_probe() 747 gendisk->flags |= GENHD_FL_NO_PART; in ps3vram_probe() 748 gendisk->fops = &ps3vram_fops; in ps3vram_probe() 749 gendisk->private_data = dev; in ps3vram_probe() [all …]
|
/linux-6.1.9/drivers/s390/block/ |
D | scm_blk.c | 181 struct scm_device *scmdev = bdev->gendisk->private_data; in scm_request_prepare() 464 bdev->gendisk = blk_mq_alloc_disk(&bdev->tag_set, scmdev); in scm_blk_dev_setup() 465 if (IS_ERR(bdev->gendisk)) { in scm_blk_dev_setup() 466 ret = PTR_ERR(bdev->gendisk); in scm_blk_dev_setup() 469 rq = bdev->rq = bdev->gendisk->queue; in scm_blk_dev_setup() 479 bdev->gendisk->private_data = scmdev; in scm_blk_dev_setup() 480 bdev->gendisk->fops = &scm_blk_devops; in scm_blk_dev_setup() 481 bdev->gendisk->major = scm_major; in scm_blk_dev_setup() 482 bdev->gendisk->first_minor = devindex * SCM_NR_PARTS; in scm_blk_dev_setup() 483 bdev->gendisk->minors = SCM_NR_PARTS; in scm_blk_dev_setup() [all …]
|
D | scm_blk.h | 19 struct gendisk *gendisk; member
|
/linux-6.1.9/block/partitions/ |
D | core.c | 96 static struct parsed_partitions *allocate_partitions(struct gendisk *hd) in allocate_partitions() 122 static struct parsed_partitions *check_partition(struct gendisk *hd) in check_partition() 305 static struct block_device *add_partition(struct gendisk *disk, int partno, in add_partition() 423 static bool partition_overlaps(struct gendisk *disk, sector_t start, in partition_overlaps() 444 int bdev_add_partition(struct gendisk *disk, int partno, sector_t start, in bdev_add_partition() 469 int bdev_del_partition(struct gendisk *disk, int partno) in bdev_del_partition() 490 int bdev_resize_partition(struct gendisk *disk, int partno, sector_t start, in bdev_resize_partition() 517 static bool disk_unlock_native_capacity(struct gendisk *disk) in disk_unlock_native_capacity() 530 void blk_drop_partitions(struct gendisk *disk) in blk_drop_partitions() 541 static bool blk_add_partition(struct gendisk *disk, in blk_add_partition() [all …]
|
/linux-6.1.9/drivers/md/ |
D | dm-zone.c | 24 struct gendisk *disk = md->disk; in dm_blk_do_report_zones() 55 int dm_blk_report_zones(struct gendisk *disk, sector_t sector, in dm_blk_report_zones() 180 struct gendisk *disk = md->disk; in dm_zone_revalidate_cb() 229 struct gendisk *disk = md->disk; in dm_revalidate_zones() 464 static inline void dm_zone_lock(struct gendisk *disk, unsigned int zno, in dm_zone_lock() 474 static inline void dm_zone_unlock(struct gendisk *disk, unsigned int zno, in dm_zone_unlock() 589 struct gendisk *disk = md->disk; in dm_zone_endio()
|
D | md-linear.c | 93 disk_stack_limits(mddev->gendisk, rdev->bdev, in linear_conf() 194 set_capacity_and_notify(mddev->gendisk, mddev->array_sectors); in linear_add() 249 if (mddev->gendisk) in linear_make_request() 250 trace_block_bio_remap(bio, disk_devt(mddev->gendisk), in linear_make_request()
|
/linux-6.1.9/drivers/block/aoe/ |
D | aoeblk.c | 36 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() 235 aoeblk_release(struct gendisk *disk, fmode_t mode) in aoeblk_release() 333 struct gendisk *gd; in aoeblk_gdalloc()
|
/linux-6.1.9/drivers/scsi/ |
D | sd.h | 92 struct gendisk *disk; 156 static inline struct scsi_disk *scsi_disk(struct gendisk *disk) in scsi_disk() 251 int sd_zbc_report_zones(struct gendisk *disk, sector_t sector,
|