/linux-6.1.9/block/ |
D | disk-events.c | 12 struct gendisk *disk; /* the associated disk */ member 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() local 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 | 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() local 713 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_store() local [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-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() local 189 struct gendisk *disk = bdev->bd_disk; in blkdev_zone_reset_all_emulated() local 448 void disk_free_zone_bitmaps(struct gendisk *disk) in disk_free_zone_bitmaps() 457 struct gendisk *disk; member 472 struct gendisk *disk = args->disk; in blk_revalidate_zone_cb() local 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-integrity.c | 224 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_show() local 236 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_store() local 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-ioprio.h | 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 | blk.h | 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() 401 static inline int blk_iolatency_init(struct gendisk *disk) { return 0; }; in blk_iolatency_init() 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()
|
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()
|
D | ioctl.c | 19 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl() local 246 struct gendisk *disk = bdev->bd_disk; in blkdev_compat_ptr_ioctl() local 379 struct gendisk *disk = bdev->bd_disk; in blkdev_getgeo() local 413 struct gendisk *disk = bdev->bd_disk; in compat_hdio_getgeo() local 633 struct gendisk *disk = bdev->bd_disk; in compat_blkdev_ioctl() local
|
D | blk-cgroup.c | 211 static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct gendisk *disk, in blkg_alloc() 271 static struct blkcg_gq *blkg_create(struct blkcg *blkcg, struct gendisk *disk, in blkg_create() 364 struct gendisk *disk) in blkg_lookup_create() 460 static void blkg_destroy_all(struct gendisk *disk) in blkg_destroy_all() 650 struct gendisk *disk; in blkg_conf_prep() local 1221 int blkcg_init_disk(struct gendisk *disk) in blkcg_init_disk() 1276 void blkcg_exit_disk(struct gendisk *disk) in blkcg_exit_disk() 1804 void blkcg_schedule_throttle(struct gendisk *disk, bool use_memdelay) in blkcg_schedule_throttle()
|
D | blk-timeout.c | 42 struct gendisk *disk = dev_to_disk(dev); in part_timeout_show() local 51 struct gendisk *disk = dev_to_disk(dev); in part_timeout_store() local
|
D | blk-settings.c | 385 void disk_update_readahead(struct gendisk *disk) in disk_update_readahead() 697 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, in disk_stack_limits() 878 static bool disk_has_partitions(struct gendisk *disk) in disk_has_partitions() 909 void disk_set_zoned(struct gendisk *disk, enum blk_zoned_model model) in disk_set_zoned()
|
D | bdev.c | 480 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno) in bdev_alloc() 668 struct gendisk *disk = bdev->bd_disk; in blkdev_get_whole() local 700 struct gendisk *disk = part->bd_disk; in blkdev_get_part() local 790 struct gendisk *disk; in blkdev_get_by_dev() local 899 struct gendisk *disk = bdev->bd_disk; in blkdev_put() local
|
D | blk-ioprio.c | 205 void blk_ioprio_exit(struct gendisk *disk) in blk_ioprio_exit() 210 int blk_ioprio_init(struct gendisk *disk) in blk_ioprio_init()
|
/linux-6.1.9/drivers/block/paride/ |
D | pd.c | 259 static inline int status_reg(struct pd_unit *disk) in status_reg() 264 static inline int read_reg(struct pd_unit *disk, int reg) in read_reg() 269 static inline void write_status(struct pd_unit *disk, int val) in write_status() 274 static inline void write_reg(struct pd_unit *disk, int reg, int val) in write_reg() 279 static inline u8 DRIVE(struct pd_unit *disk) in DRIVE() 286 static void pd_print_error(struct pd_unit *disk, char *msg, int status) in pd_print_error() 297 static void pd_reset(struct pd_unit *disk) in pd_reset() 307 static int pd_wait_for(struct pd_unit *disk, int w, char *msg) in pd_wait_for() 327 static void pd_send_command(struct pd_unit *disk, int n, int s, int h, int c0, int c1, int func) in pd_send_command() 340 static void pd_ide_command(struct pd_unit *disk, int func, int block, int count) in pd_ide_command() [all …]
|
/linux-6.1.9/block/partitions/ |
D | core.c | 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() 591 static int blk_add_partitions(struct gendisk *disk) in blk_add_partitions() 655 int bdev_disk_changed(struct gendisk *disk, bool invalidate) in bdev_disk_changed()
|
/linux-6.1.9/drivers/block/aoe/ |
D | aoeblk.c | 36 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_state() local 48 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_mac() local 59 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_netif() local 97 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_fwver() local 105 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_payload() local 235 aoeblk_release(struct gendisk *disk, fmode_t mode) in aoeblk_release()
|
/linux-6.1.9/drivers/md/ |
D | dm-zone.c | 24 struct gendisk *disk = md->disk; in dm_blk_do_report_zones() local 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() local 229 struct gendisk *disk = md->disk; in dm_revalidate_zones() local 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() local
|
D | dm-era-target.c | 196 struct superblock_disk *disk = dm_block_data(b); in sb_prepare_for_write() local 204 static int check_metadata_version(struct superblock_disk *disk) in check_metadata_version() 220 struct superblock_disk *disk = dm_block_data(b); in sb_check() local 354 static void ws_pack(const struct writeset_metadata *core, struct writeset_disk *disk) in ws_pack() 360 static void ws_unpack(const struct writeset_disk *disk, struct writeset_metadata *core) in ws_unpack() 482 static void copy_sm_root(struct era_metadata *md, struct superblock_disk *disk) in copy_sm_root() 494 static void prepare_superblock(struct era_metadata *md, struct superblock_disk *disk) in prepare_superblock() 520 struct superblock_disk *disk; in write_superblock() local 563 struct superblock_disk *disk; in open_metadata() local 739 struct writeset_disk disk; in metadata_digest_lookup_writeset() local [all …]
|
/linux-6.1.9/drivers/scsi/ |
D | sr.c | 141 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) in scsi_cd() 507 static void sr_block_release(struct gendisk *disk, fmode_t mode) in sr_block_release() 552 static unsigned int sr_block_check_events(struct gendisk *disk, in sr_block_check_events() 562 static void sr_free_disk(struct gendisk *disk) in sr_free_disk() 613 struct gendisk *disk; in sr_probe() local 929 struct gendisk *disk = cdi->disk; in sr_read_cdda_bpc() local
|
D | sd_zbc.c | 251 int sd_zbc_report_zones(struct gendisk *disk, sector_t sector, in sd_zbc_report_zones() 808 static void sd_zbc_revalidate_zones_cb(struct gendisk *disk) in sd_zbc_revalidate_zones_cb() 822 struct gendisk *disk = sdkp->disk; in sd_zbc_revalidate_zones() local 908 struct gendisk *disk = sdkp->disk; in sd_zbc_read_zones() local
|
/linux-6.1.9/include/linux/ |
D | blkdev.h | 207 static inline bool disk_live(struct gendisk *disk) in disk_live() 222 static inline unsigned int disk_openers(struct gendisk *disk) in disk_openers() 233 #define disk_to_dev(disk) \ argument 237 #define disk_to_cdi(disk) ((disk)->cdi) argument 239 #define disk_to_cdi(disk) NULL argument 242 static inline dev_t disk_devt(struct gendisk *disk) in disk_devt() 439 struct gendisk *disk; member 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() 682 static inline bool disk_zone_is_seq(struct gendisk *disk, sector_t sector) in disk_zone_is_seq() [all …]
|
/linux-6.1.9/drivers/block/ |
D | virtio_blk.c | 68 struct gendisk *disk; member 462 static int virtblk_get_id(struct gendisk *disk, char *id_str) in virtblk_get_id() 516 static void virtblk_free_disk(struct gendisk *disk) in virtblk_free_disk() 544 struct gendisk *disk = dev_to_disk(dev); in serial_show() local 754 struct gendisk *disk = dev_to_disk(dev); in cache_type_store() local 772 struct gendisk *disk = dev_to_disk(dev); in cache_type_show() local 792 struct gendisk *disk = dev_to_disk(dev); in virtblk_attrs_are_visible() local
|
D | z2ram.c | 293 static void z2_release(struct gendisk *disk, fmode_t mode) in z2_release() 320 struct gendisk *disk; in z2ram_register_disk() local
|