Home
last modified time | relevance | path

Searched defs:disk (Results 1 – 25 of 139) sorted by relevance

123456

/linux-6.6.21/block/
Ddisk-events.c12 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()
275 bool disk_check_media_change(struct gendisk *disk) in disk_check_media_change()
[all …]
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-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-zoned.c141 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones() local
183 struct gendisk *disk = bdev->bd_disk; in blkdev_zone_reset_all_emulated() local
432 void disk_free_zone_bitmaps(struct gendisk *disk) in disk_free_zone_bitmaps()
441 struct gendisk *disk; member
455 struct gendisk *disk = args->disk; in blk_revalidate_zone_cb() local
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-ioprio.h16 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()
Dblk-wbt.h21 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-cgroup.c305 static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct gendisk *disk, in blkg_alloc()
375 static struct blkcg_gq *blkg_create(struct blkcg *blkcg, struct gendisk *disk, in blkg_create()
472 struct gendisk *disk) in blkg_lookup_create()
575 static void blkg_destroy_all(struct gendisk *disk) in blkg_destroy_all()
816 struct gendisk *disk; in blkg_conf_prep() local
1412 int blkcg_init_disk(struct gendisk *disk) in blkcg_init_disk()
1462 void blkcg_exit_disk(struct gendisk *disk) in blkcg_exit_disk()
1512 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol) in blkcg_activate_policy()
1626 void blkcg_deactivate_policy(struct gendisk *disk, in blkcg_deactivate_policy()
1913 struct gendisk *disk = current->throttle_disk; in blkcg_maybe_throttle_current() local
[all …]
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()
Dblk-sysfs.c676 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_visible() local
690 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in blk_mq_queue_attr_visible() local
718 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_show() local
735 struct gendisk *disk = container_of(kobj, struct gendisk, queue_kobj); in queue_attr_store() local
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-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()
Dbdev.c385 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno) in bdev_alloc()
638 struct gendisk *disk = bdev->bd_disk; in blkdev_get_whole() local
670 struct gendisk *disk = part->bd_disk; in blkdev_get_part() local
759 struct gendisk *disk; in blkdev_get_by_dev() local
874 struct gendisk *disk = bdev->bd_disk; in blkdev_put() local
Dioctl.c19 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl() local
249 struct gendisk *disk = bdev->bd_disk; in blkdev_compat_ptr_ioctl() local
404 struct gendisk *disk = bdev->bd_disk; in blkdev_getgeo() local
438 struct gendisk *disk = bdev->bd_disk; in compat_hdio_getgeo() local
648 struct gendisk *disk = bdev->bd_disk; in compat_blkdev_ioctl() local
Dblk-timeout.c42 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
Dblk-settings.c391 void disk_update_readahead(struct gendisk *disk) in disk_update_readahead()
703 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, in disk_stack_limits()
887 static bool disk_has_partitions(struct gendisk *disk) in disk_has_partitions()
918 void disk_set_zoned(struct gendisk *disk, enum blk_zoned_model model) in disk_set_zoned()
/linux-6.6.21/block/partitions/
Dcore.c299 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()
654 int bdev_disk_changed(struct gendisk *disk, bool invalidate) in bdev_disk_changed()
/linux-6.6.21/drivers/block/aoe/
Daoeblk.c36 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
207 aoeblk_open(struct gendisk *disk, blk_mode_t mode) in aoeblk_open()
235 aoeblk_release(struct gendisk *disk) in aoeblk_release()
/linux-6.6.21/drivers/md/
Ddm-zone.c25 struct gendisk *disk = md->disk; in dm_blk_do_report_zones() local
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() local
228 struct gendisk *disk = md->disk; in dm_revalidate_zones() local
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() local
Ddm-era-target.c203 struct superblock_disk *disk = dm_block_data(b); in sb_prepare_for_write() local
211 static int check_metadata_version(struct superblock_disk *disk) in check_metadata_version()
228 struct superblock_disk *disk = dm_block_data(b); in sb_check() local
364 static void ws_pack(const struct writeset_metadata *core, struct writeset_disk *disk) in ws_pack()
370 static void ws_unpack(const struct writeset_disk *disk, struct writeset_metadata *core) in ws_unpack()
493 static void copy_sm_root(struct era_metadata *md, struct superblock_disk *disk) in copy_sm_root()
505 static void prepare_superblock(struct era_metadata *md, struct superblock_disk *disk) in prepare_superblock()
531 struct superblock_disk *disk; in write_superblock() local
574 struct superblock_disk *disk; in open_metadata() local
752 struct writeset_disk disk; in metadata_digest_lookup_writeset() local
[all …]
/linux-6.6.21/drivers/scsi/
Dsr.c141 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) in scsi_cd()
487 static int sr_block_open(struct gendisk *disk, blk_mode_t mode) in sr_block_open()
510 static void sr_block_release(struct gendisk *disk) in sr_block_release()
555 static unsigned int sr_block_check_events(struct gendisk *disk, in sr_block_check_events()
565 static void sr_free_disk(struct gendisk *disk) in sr_free_disk()
611 struct gendisk *disk; in sr_probe() local
927 struct gendisk *disk = cdi->disk; in sr_read_cdda_bpc() local
Dsd_zbc.c256 int sd_zbc_report_zones(struct gendisk *disk, sector_t sector, in sd_zbc_report_zones()
816 static void sd_zbc_revalidate_zones_cb(struct gendisk *disk) in sd_zbc_revalidate_zones_cb()
830 struct gendisk *disk = sdkp->disk; in sd_zbc_revalidate_zones() local
914 struct gendisk *disk = sdkp->disk; in sd_zbc_read_zones() local
/linux-6.6.21/drivers/block/
Dz2ram.c143 static int z2_open(struct gendisk *disk, blk_mode_t mode) in z2_open()
291 static void z2_release(struct gendisk *disk) in z2_release()
318 struct gendisk *disk; in z2ram_register_disk() local
Dataflop.c301 struct gendisk *disk[NUM_DISK_MINORS]; member
1435 static unsigned int floppy_check_events(struct gendisk *disk, in floppy_check_events()
1458 static int floppy_revalidate(struct gendisk *disk) in floppy_revalidate()
1587 struct gendisk *disk = bdev->bd_disk; in fd_locked_ioctl() local
1918 static int floppy_open(struct gendisk *disk, blk_mode_t mode) in floppy_open()
1955 static int floppy_unlocked_open(struct gendisk *disk, blk_mode_t mode) in floppy_unlocked_open()
1966 static void floppy_release(struct gendisk *disk) in floppy_release()
1993 struct gendisk *disk; in ataflop_alloc_disk() local
Dvirtio_blk.c69 struct gendisk *disk; member
666 static int virtblk_report_zones(struct gendisk *disk, sector_t sector, in virtblk_report_zones()
866 static int virtblk_get_id(struct gendisk *disk, char *id_str) in virtblk_get_id()
926 static void virtblk_free_disk(struct gendisk *disk) in virtblk_free_disk()
955 struct gendisk *disk = dev_to_disk(dev); in serial_show() local
1166 struct gendisk *disk = dev_to_disk(dev); in cache_type_store() local
1184 struct gendisk *disk = dev_to_disk(dev); in cache_type_show() local
1204 struct gendisk *disk = dev_to_disk(dev); in virtblk_attrs_are_visible() local
/linux-6.6.21/include/linux/
Dblkdev.h212 static inline bool disk_live(struct gendisk *disk) in disk_live()
227 static inline unsigned int disk_openers(struct gendisk *disk) in disk_openers()
238 #define disk_to_dev(disk) \ argument
242 #define disk_to_cdi(disk) ((disk)->cdi) argument
244 #define disk_to_cdi(disk) NULL argument
247 static inline dev_t disk_devt(struct gendisk *disk) in disk_devt()
423 struct gendisk *disk; member
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()
658 static inline bool disk_zone_is_seq(struct gendisk *disk, sector_t sector) in disk_zone_is_seq()
[all …]

123456