Home
last modified time | relevance | path

Searched refs:gendisk (Results 1 – 25 of 157) sorted by relevance

1234567

/linux-6.6.21/include/linux/
Dblkdev.h128 struct gendisk { struct
212 static inline bool disk_live(struct gendisk *disk) in disk_live() argument
227 static inline unsigned int disk_openers(struct gendisk *disk) in disk_openers()
247 static inline dev_t disk_devt(struct gendisk *disk) in disk_devt()
332 void disk_set_zoned(struct gendisk *disk, enum blk_zoned_model model);
342 int blk_revalidate_disk_zones(struct gendisk *disk,
343 void (*update_driver_data)(struct gendisk *disk));
423 struct gendisk *disk;
646 static inline unsigned int disk_nr_zones(struct gendisk *disk) in disk_nr_zones()
651 static inline unsigned int disk_zone_no(struct gendisk *disk, sector_t sector) in disk_zone_no()
[all …]
Dblk-integrity.h39 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()
Ddasd_mod.h7 struct gendisk;
9 extern int dasd_biodasdinfo(struct gendisk *disk, dasd_information2_t *info);
Dblk-cgroup.h21 struct gendisk;
28 void blkcg_schedule_throttle(struct gendisk *disk, bool use_memdelay);
Ddax.h12 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()
/linux-6.6.21/block/
Ddisk-events.c12 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()
275 bool disk_check_media_change(struct gendisk *disk) in disk_check_media_change()
[all …]
Dblk-throttle.h171 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);
Dblk-wbt.h7 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()
Dblk.h397 void disk_free_zone_bitmaps(struct gendisk *disk);
398 void disk_clear_zone_settings(struct gendisk *disk);
404 static inline void disk_free_zone_bitmaps(struct gendisk *disk) {} in disk_free_zone_bitmaps()
405 static inline void disk_clear_zone_settings(struct gendisk *disk) {} in disk_clear_zone_settings()
418 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno);
426 int bdev_add_partition(struct gendisk *disk, int partno, sector_t start,
428 int bdev_del_partition(struct gendisk *disk, int partno);
429 int bdev_resize_partition(struct gendisk *disk, int partno, sector_t start,
435 struct gendisk *__alloc_disk_node(struct request_queue *q, int node_id,
454 int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode);
[all …]
Dblk-ioprio.h12 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()
Dgenhd.c59 void set_capacity(struct gendisk *disk, sector_t sectors) in set_capacity()
69 bool set_capacity_and_notify(struct gendisk *disk, sector_t size) in set_capacity_and_notify()
322 void disk_uevent(struct gendisk *disk, enum kobject_action action) in disk_uevent()
343 int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode) in disk_scan_partitions()
396 int __must_check device_add_disk(struct device *parent, struct gendisk *disk, in device_add_disk()
560 static void blk_report_disk_dead(struct gendisk *disk, bool surprise) in blk_report_disk_dead()
579 static void __blk_mark_disk_dead(struct gendisk *disk) in __blk_mark_disk_dead()
608 void blk_mark_disk_dead(struct gendisk *disk) in blk_mark_disk_dead()
634 void del_gendisk(struct gendisk *disk) in del_gendisk()
736 void invalidate_disk(struct gendisk *disk) in invalidate_disk()
[all …]
Dblk-cgroup.h159 typedef struct blkg_policy_data *(blkcg_pol_alloc_pd_fn)(struct gendisk *disk,
191 int blkcg_init_disk(struct gendisk *disk);
192 void blkcg_exit_disk(struct gendisk *disk);
197 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol);
198 void blkcg_deactivate_policy(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()
488 static inline int blkcg_activate_policy(struct gendisk *disk, in blkcg_activate_policy()
490 static inline void blkcg_deactivate_policy(struct gendisk *disk, in blkcg_deactivate_policy()
Dblk-ia-ranges.c108 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()
Dblk-crypto-internal.h24 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()
Dblk-zoned.c141 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()
Dholder.c12 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()
Dblk-sysfs.c676 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()
Dblk-ioprio.c122 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()
/linux-6.6.21/drivers/block/
Dps3disk.c33 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 …]
Dps3vram.c70 struct gendisk *gendisk; member
611 struct gendisk *gendisk; in ps3vram_probe() local
733 gendisk = blk_alloc_disk(NUMA_NO_NODE); in ps3vram_probe()
734 if (!gendisk) { in ps3vram_probe()
740 priv->gendisk = gendisk; in ps3vram_probe()
741 gendisk->major = ps3vram_major; in ps3vram_probe()
742 gendisk->minors = 1; in ps3vram_probe()
743 gendisk->flags |= GENHD_FL_NO_PART; in ps3vram_probe()
744 gendisk->fops = &ps3vram_fops; in ps3vram_probe()
745 gendisk->private_data = dev; in ps3vram_probe()
[all …]
/linux-6.6.21/drivers/s390/block/
Dscm_blk.c182 struct scm_device *scmdev = bdev->gendisk->private_data; in scm_request_prepare()
465 bdev->gendisk = blk_mq_alloc_disk(&bdev->tag_set, scmdev); in scm_blk_dev_setup()
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()
483 bdev->gendisk->first_minor = devindex * SCM_NR_PARTS; in scm_blk_dev_setup()
484 bdev->gendisk->minors = SCM_NR_PARTS; in scm_blk_dev_setup()
[all …]
Dscm_blk.h19 struct gendisk *gendisk; member
/linux-6.6.21/block/partitions/
Dcore.c88 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()
590 static int blk_add_partitions(struct gendisk *disk) in blk_add_partitions()
[all …]
/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()
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()
/linux-6.6.21/drivers/md/
Ddm-zone.c25 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()

1234567