/openbmc/linux/include/linux/ |
H A 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() 132 static inline struct blk_integrity *blk_get_integrity(struct gendisk *disk) in blk_get_integrity() 141 static inline int blk_integrity_compare(struct gendisk *a, struct gendisk *b) in blk_integrity_compare() 145 static inline void blk_integrity_register(struct gendisk *d, in blk_integrity_register() 149 static inline void blk_integrity_unregister(struct gendisk *d) in blk_integrity_unregister()
|
H A D | blkdev.h | 128 struct gendisk { struct 436 struct gendisk *disk; 750 void del_gendisk(struct gendisk *gp); 751 void invalidate_disk(struct gendisk *disk); 801 void put_disk(struct gendisk *disk); 834 struct gendisk *disk) in bd_link_disk_holder() 839 struct gendisk *disk) in bd_unlink_disk_holder() 845 void inc_diskseq(struct gendisk *disk); 962 void blk_mark_disk_dead(struct gendisk *disk); 1393 void (*release)(struct gendisk *disk); [all …]
|
H A D | dasd_mod.h | 7 struct gendisk; 9 extern int dasd_biodasdinfo(struct gendisk *disk, dasd_information2_t *info);
|
H A D | blk-cgroup.h | 21 struct gendisk; 28 void blkcg_schedule_throttle(struct gendisk *disk, bool use_memdelay);
|
H A 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()
|
/openbmc/linux/block/ |
H A D | disk-events.c | 12 struct gendisk *disk; /* the associated disk */ 73 void disk_block_events(struct gendisk *disk) in disk_block_events() 133 void disk_unblock_events(struct gendisk *disk) in disk_unblock_events() 187 struct gendisk *disk = ev->disk; in disk_check_events() 348 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() 436 int disk_alloc_events(struct gendisk *disk) in disk_alloc_events() 461 void disk_add_events(struct gendisk *disk) in disk_add_events() 477 void disk_del_events(struct gendisk *disk) in disk_del_events() [all …]
|
H A 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);
|
H A D | blk-wbt.h | 7 int wbt_init(struct gendisk *disk); 8 void wbt_disable_default(struct gendisk *disk); 9 void wbt_enable_default(struct gendisk *disk); 21 static inline void wbt_disable_default(struct gendisk *disk) in wbt_disable_default() 24 static inline void wbt_enable_default(struct gendisk *disk) in wbt_enable_default()
|
H A D | blk.h | 398 void disk_free_zone_bitmaps(struct gendisk *disk); 399 void disk_clear_zone_settings(struct gendisk *disk); 429 int bdev_del_partition(struct gendisk *disk, int partno); 455 int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode); 457 int disk_alloc_events(struct gendisk *disk); 458 void disk_add_events(struct gendisk *disk); 459 void disk_del_events(struct gendisk *disk); 460 void disk_release_events(struct gendisk *disk); 461 void disk_block_events(struct gendisk *disk); 462 void disk_unblock_events(struct gendisk *disk); [all …]
|
H A 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()
|
H A D | genhd.c | 631 void del_gendisk(struct gendisk *disk) in del_gendisk() 748 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_show() 760 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_store() 849 struct gendisk *sgp = v; in show_partition() 897 struct gendisk *disk = dev_to_disk(dev); in disk_range_show() 905 struct gendisk *disk = dev_to_disk(dev); in disk_ext_range_show() 1234 struct gendisk *gp = v; in diskstats_show() 1336 struct gendisk *disk; in __alloc_disk_node() 1395 struct gendisk *disk; in __blk_alloc_disk() 1424 void put_disk(struct gendisk *disk) in put_disk() [all …]
|
H A D | blk-cgroup.h | 159 typedef struct blkg_policy_data *(blkcg_pol_alloc_pd_fn)(struct gendisk *disk, 192 int blkcg_init_disk(struct gendisk *disk); 193 void blkcg_exit_disk(struct gendisk *disk); 198 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol); 199 void blkcg_deactivate_policy(struct gendisk *disk, 486 static inline int blkcg_init_disk(struct gendisk *disk) { return 0; } in blkcg_init_disk() 487 static inline void blkcg_exit_disk(struct gendisk *disk) { } in blkcg_exit_disk() 490 static inline int blkcg_activate_policy(struct gendisk *disk, in blkcg_activate_policy() 492 static inline void blkcg_deactivate_policy(struct gendisk *disk, in blkcg_deactivate_policy()
|
H A D | blk-ia-ranges.c | 108 int disk_register_independent_access_ranges(struct gendisk *disk) in disk_register_independent_access_ranges() 152 void disk_unregister_independent_access_ranges(struct gendisk *disk) in disk_unregister_independent_access_ranges() 193 static bool disk_check_ia_ranges(struct gendisk *disk, in disk_check_ia_ranges() 233 static bool disk_ia_ranges_changed(struct gendisk *disk, in disk_ia_ranges_changed() 264 disk_alloc_independent_access_ranges(struct gendisk *disk, int nr_ia_ranges) in disk_alloc_independent_access_ranges() 287 void disk_set_independent_access_ranges(struct gendisk *disk, in disk_set_independent_access_ranges()
|
H A D | blk-crypto-internal.h | 24 int blk_crypto_sysfs_register(struct gendisk *disk); 26 void blk_crypto_sysfs_unregister(struct gendisk *disk); 87 static inline int blk_crypto_sysfs_register(struct gendisk *disk) in blk_crypto_sysfs_register() 92 static inline void blk_crypto_sysfs_unregister(struct gendisk *disk) in blk_crypto_sysfs_unregister()
|
H A D | blk-zoned.c | 141 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones() 183 struct gendisk *disk = bdev->bd_disk; in blkdev_zone_reset_all_emulated() 432 void disk_free_zone_bitmaps(struct gendisk *disk) in disk_free_zone_bitmaps() 441 struct gendisk *disk; 455 struct gendisk *disk = args->disk; in blk_revalidate_zone_cb() 535 int blk_revalidate_disk_zones(struct gendisk *disk, in blk_revalidate_disk_zones() 536 void (*update_driver_data)(struct gendisk *disk)) in blk_revalidate_disk_zones() 619 void disk_clear_zone_settings(struct gendisk *disk) in disk_clear_zone_settings()
|
H A D | holder.c | 12 struct gendisk *disk) in bd_find_holder_disk() 60 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_link_disk_holder() 136 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_unlink_disk_holder()
|
H A D | blk-ioprio.c | 122 ioprio_alloc_pd(struct gendisk *disk, struct blkcg *blkcg, gfp_t gfp) in ioprio_alloc_pd() 222 void blk_ioprio_exit(struct gendisk *disk) in blk_ioprio_exit() 227 int blk_ioprio_init(struct gendisk *disk) in blk_ioprio_init()
|
H A D | blk-sysfs.c | 676 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_visible() 690 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in blk_mq_queue_attr_visible() 718 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_show() 735 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_store() 770 static void blk_debugfs_remove(struct gendisk *disk) in blk_debugfs_remove() 787 int blk_register_queue(struct gendisk *disk) in blk_register_queue() 872 void blk_unregister_queue(struct gendisk *disk) in blk_unregister_queue()
|
/openbmc/linux/drivers/block/ |
H A D | ps3disk.c | 33 struct gendisk *gendisk; member 386 struct gendisk *gendisk; in ps3disk_probe() local 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() 459 snprintf(gendisk->disk_name, sizeof(gendisk->disk_name), PS3DISK_NAME, in ps3disk_probe() 462 set_capacity(gendisk, in ps3disk_probe() 476 put_disk(gendisk); in ps3disk_probe() 502 del_gendisk(priv->gendisk); in ps3disk_remove() [all …]
|
H A D | ps3vram.c | 70 struct gendisk *gendisk; member 611 struct gendisk *gendisk; in ps3vram_probe() local 734 if (!gendisk) { in ps3vram_probe() 740 priv->gendisk = gendisk; in ps3vram_probe() 742 gendisk->minors = 1; in ps3vram_probe() 745 gendisk->private_data = dev; in ps3vram_probe() 746 strscpy(gendisk->disk_name, DEVICE_NAME, sizeof(gendisk->disk_name)); in ps3vram_probe() 750 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe() 759 put_disk(gendisk); in ps3vram_probe() 789 del_gendisk(priv->gendisk); in ps3vram_remove() [all …]
|
/openbmc/linux/drivers/s390/block/ |
H A D | scm_blk.c | 466 if (IS_ERR(bdev->gendisk)) { in scm_blk_dev_setup() 467 ret = PTR_ERR(bdev->gendisk); in scm_blk_dev_setup() 470 rq = bdev->rq = bdev->gendisk->queue; in scm_blk_dev_setup() 480 bdev->gendisk->private_data = scmdev; in scm_blk_dev_setup() 481 bdev->gendisk->fops = &scm_blk_devops; in scm_blk_dev_setup() 482 bdev->gendisk->major = scm_major; in scm_blk_dev_setup() 484 bdev->gendisk->minors = SCM_NR_PARTS; in scm_blk_dev_setup() 497 set_capacity(bdev->gendisk, scmdev->size >> 9); in scm_blk_dev_setup() 505 put_disk(bdev->gendisk); in scm_blk_dev_setup() 515 del_gendisk(bdev->gendisk); in scm_blk_dev_cleanup() [all …]
|
H A D | scm_blk.h | 19 struct gendisk *gendisk; member
|
/openbmc/linux/block/partitions/ |
H A D | core.c | 88 static struct parsed_partitions *allocate_partitions(struct gendisk *hd) in allocate_partitions() 114 static struct parsed_partitions *check_partition(struct gendisk *hd) in check_partition() 299 static struct block_device *add_partition(struct gendisk *disk, int partno, in add_partition() 417 static bool partition_overlaps(struct gendisk *disk, sector_t start, in partition_overlaps() 438 int bdev_add_partition(struct gendisk *disk, int partno, sector_t start, in bdev_add_partition() 479 int bdev_del_partition(struct gendisk *disk, int partno) in bdev_del_partition() 500 int bdev_resize_partition(struct gendisk *disk, int partno, sector_t start, in bdev_resize_partition() 527 static bool disk_unlock_native_capacity(struct gendisk *disk) in disk_unlock_native_capacity() 540 static bool blk_add_partition(struct gendisk *disk, in blk_add_partition() 592 static int blk_add_partitions(struct gendisk *disk) in blk_add_partitions() [all …]
|
/openbmc/linux/drivers/block/aoe/ |
H A 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() 207 aoeblk_open(struct gendisk *disk, blk_mode_t mode) in aoeblk_open() 235 aoeblk_release(struct gendisk *disk) in aoeblk_release() 333 struct gendisk *gd; in aoeblk_gdalloc()
|
/openbmc/linux/drivers/md/ |
H A D | dm-zone.c | 25 struct gendisk *disk = md->disk; in dm_blk_do_report_zones() 56 int dm_blk_report_zones(struct gendisk *disk, sector_t sector, in dm_blk_report_zones() 181 struct gendisk *disk = md->disk; in dm_zone_revalidate_cb() 228 struct gendisk *disk = md->disk; in dm_revalidate_zones() 463 static inline void dm_zone_lock(struct gendisk *disk, unsigned int zno, in dm_zone_lock() 473 static inline void dm_zone_unlock(struct gendisk *disk, unsigned int zno, in dm_zone_unlock() 588 struct gendisk *disk = md->disk; in dm_zone_endio()
|