Home
last modified time | relevance | path

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

12345

/linux/block/
A Ddisk-events.c12 struct gendisk *disk; /* the associated disk */ member
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() local
359 struct gendisk *disk = dev_to_disk(dev); in disk_events_show() local
376 struct gendisk *disk = dev_to_disk(dev); in disk_events_poll_msecs_show() local
387 struct gendisk *disk = dev_to_disk(dev); in disk_events_poll_msecs_store() local
447 int disk_alloc_events(struct gendisk *disk) in disk_alloc_events()
472 void disk_add_events(struct gendisk *disk) in disk_add_events()
488 void disk_del_events(struct gendisk *disk) in disk_del_events()
[all …]
A Dgenhd.c570 void del_gendisk(struct gendisk *disk) in del_gendisk()
662 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_show() local
674 struct gendisk *disk = dev_to_disk(dev); in disk_badblocks_store() local
867 struct gendisk *disk = dev_to_disk(dev); in disk_range_show() local
875 struct gendisk *disk = dev_to_disk(dev); in disk_ext_range_show() local
883 struct gendisk *disk = dev_to_disk(dev); in disk_removable_show() local
892 struct gendisk *disk = dev_to_disk(dev); in disk_hidden_show() local
1289 struct gendisk *disk; in __alloc_disk_node() local
1344 struct gendisk *disk; in __blk_alloc_disk() local
1369 void put_disk(struct gendisk *disk) in put_disk()
[all …]
A Dholder.c12 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()
123 struct gendisk *disk) in __unlink_disk_holder()
139 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_unlink_disk_holder()
156 int bd_register_pending_holders(struct gendisk *disk) in bd_register_pending_holders()
A Dblk-ia-ranges.c117 int disk_register_independent_access_ranges(struct gendisk *disk, in disk_register_independent_access_ranges()
170 void disk_unregister_independent_access_ranges(struct gendisk *disk) in disk_unregister_independent_access_ranges()
211 static bool disk_check_ia_ranges(struct gendisk *disk, in disk_check_ia_ranges()
248 static bool disk_ia_ranges_changed(struct gendisk *disk, in disk_ia_ranges_changed()
279 disk_alloc_independent_access_ranges(struct gendisk *disk, int nr_ia_ranges) in disk_alloc_independent_access_ranges()
302 void disk_set_independent_access_ranges(struct gendisk *disk, in disk_set_independent_access_ranges()
A Dblk-integrity.c224 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()
A Dblk-zoned.c118 unsigned int blkdev_nr_zones(struct gendisk *disk) in blkdev_nr_zones()
150 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones() local
469 struct gendisk *disk; member
484 struct gendisk *disk = args->disk; in blk_revalidate_zone_cb() local
566 int blk_revalidate_disk_zones(struct gendisk *disk, in blk_revalidate_disk_zones()
567 void (*update_driver_data)(struct gendisk *disk)) in blk_revalidate_disk_zones()
A Dblk-settings.c386 void disk_update_readahead(struct gendisk *disk) in disk_update_readahead()
664 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, in disk_stack_limits()
845 static bool disk_has_partitions(struct gendisk *disk) in disk_has_partitions()
875 void blk_queue_set_zoned(struct gendisk *disk, enum blk_zoned_model model) in blk_queue_set_zoned()
A 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
A Dioctl.c19 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl() local
244 struct gendisk *disk = bdev->bd_disk; in blkdev_compat_ptr_ioctl() local
377 struct gendisk *disk = bdev->bd_disk; in blkdev_getgeo() local
411 struct gendisk *disk = bdev->bd_disk; in compat_hdio_getgeo() local
626 struct gendisk *disk = bdev->bd_disk; in compat_blkdev_ioctl() local
A Dbdev.c479 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno) in bdev_alloc()
667 struct gendisk *disk = bdev->bd_disk; in blkdev_get_whole() local
699 struct gendisk *disk = part->bd_disk; in blkdev_get_part() local
794 struct gendisk *disk; in blkdev_get_by_dev() local
903 struct gendisk *disk = bdev->bd_disk; in blkdev_put() local
A Dblk-core.c426 struct gendisk *disk = bio->bi_bdev->bd_disk; in __bio_queue_enter() local
837 static void __submit_bio_fops(struct gendisk *disk, struct bio *bio) in __submit_bio_fops()
848 struct gendisk *disk = bio->bi_bdev->bd_disk; in __submit_bio() local
1288 unsigned long disk_start_io_acct(struct gendisk *disk, unsigned int sectors, in disk_start_io_acct()
1316 void disk_end_io_acct(struct gendisk *disk, unsigned int op, in disk_end_io_acct()
/linux/drivers/block/paride/
A Dpd.c259 static inline int status_reg(struct pd_unit *disk) in status_reg()
279 static inline u8 DRIVE(struct pd_unit *disk) in DRIVE()
297 static void pd_reset(struct pd_unit *disk) in pd_reset()
399 struct gendisk *disk; in set_next_request() local
409 struct pd_unit *disk = q->queuedata; in set_next_request() local
691 static void pd_standby_off(struct pd_unit *disk) in pd_standby_off()
758 struct pd_unit *disk = hctx->queue->queuedata; in pd_queue_rq() local
842 struct pd_unit *disk = p->private_data; in pd_release() local
852 struct pd_unit *disk = p->private_data; in pd_check_events() local
960 struct pd_unit *disk; in pd_init() local
[all …]
/linux/include/linux/
A Dgenhd.h167 static inline bool disk_live(struct gendisk *disk) in disk_live()
178 #define disk_to_dev(disk) \ argument
182 #define disk_to_cdi(disk) ((disk)->cdi) argument
184 #define disk_to_cdi(disk) NULL argument
187 static inline int disk_max_parts(struct gendisk *disk) in disk_max_parts()
200 static inline dev_t disk_devt(struct gendisk *disk) in disk_devt()
210 static inline int __must_check add_disk(struct gendisk *disk) in add_disk()
220 static inline int get_disk_ro(struct gendisk *disk) in get_disk_ro()
256 static inline sector_t get_capacity(struct gendisk *disk) in get_capacity()
308 struct gendisk *disk) in bd_link_disk_holder()
[all …]
/linux/block/partitions/
A Dcore.c316 static struct block_device *add_partition(struct gendisk *disk, int partno, in add_partition()
434 static bool partition_overlaps(struct gendisk *disk, sector_t start, in partition_overlaps()
455 int bdev_add_partition(struct gendisk *disk, int partno, sector_t start, in bdev_add_partition()
480 int bdev_del_partition(struct gendisk *disk, int partno) in bdev_del_partition()
501 int bdev_resize_partition(struct gendisk *disk, int partno, sector_t start, in bdev_resize_partition()
528 static bool disk_unlock_native_capacity(struct gendisk *disk) in disk_unlock_native_capacity()
544 void blk_drop_partitions(struct gendisk *disk) in blk_drop_partitions()
555 static bool blk_add_partition(struct gendisk *disk, in blk_add_partition()
605 static int blk_add_partitions(struct gendisk *disk) in blk_add_partitions()
666 int bdev_disk_changed(struct gendisk *disk, bool invalidate) in bdev_disk_changed()
/linux/drivers/scsi/
A Dsr.c148 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) in scsi_cd()
170 static inline struct scsi_cd *scsi_cd_get(struct gendisk *disk) in scsi_cd_get()
550 static void sr_block_release(struct gendisk *disk, fmode_t mode) in sr_block_release()
564 struct gendisk *disk = bdev->bd_disk; in sr_block_ioctl() local
596 static unsigned int sr_block_check_events(struct gendisk *disk, in sr_block_check_events()
650 struct gendisk *disk; in sr_probe() local
967 struct gendisk *disk = cdi->disk; in sr_read_cdda_bpc() local
1027 struct gendisk *disk = cd->disk; in sr_kref_release() local
A Dscsi_ioctl.c411 static int sg_io(struct scsi_device *sdev, struct gendisk *disk, in sg_io()
533 static int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, in sg_scsi_ioctl()
809 static int scsi_cdrom_send_packet(struct scsi_device *sdev, struct gendisk *disk, in scsi_cdrom_send_packet()
865 static int scsi_ioctl_sg_io(struct scsi_device *sdev, struct gendisk *disk, in scsi_ioctl_sg_io()
894 int scsi_ioctl(struct scsi_device *sdev, struct gendisk *disk, fmode_t mode, in scsi_ioctl()
A Dsd_zbc.c192 int sd_zbc_report_zones(struct gendisk *disk, sector_t sector, in sd_zbc_report_zones()
694 static void sd_zbc_revalidate_zones_cb(struct gendisk *disk) in sd_zbc_revalidate_zones_cb()
703 struct gendisk *disk = sdkp->disk; in sd_zbc_revalidate_zones() local
781 struct gendisk *disk = sdkp->disk; in sd_zbc_read_zones() local
A Dsd_dif.c30 struct gendisk *disk = sdkp->disk; in sd_dif_config_host() local
/linux/drivers/block/aoe/
A Daoeblk.c37 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_state() local
49 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_mac() local
60 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_netif() local
98 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_fwver() local
106 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_payload() local
247 aoeblk_release(struct gendisk *disk, fmode_t mode) in aoeblk_release()
/linux/drivers/block/
A Dvirtio_blk.c64 struct gendisk *disk; member
372 static int virtblk_get_id(struct gendisk *disk, char *id_str) in virtblk_get_id()
424 static void virtblk_release(struct gendisk *disk, fmode_t mode) in virtblk_release()
483 struct gendisk *disk = dev_to_disk(dev); in serial_show() local
674 struct gendisk *disk = dev_to_disk(dev); in cache_type_store() local
692 struct gendisk *disk = dev_to_disk(dev); in cache_type_show() local
712 struct gendisk *disk = dev_to_disk(dev); in virtblk_attrs_are_visible() local
A Dz2ram.c293 static void z2_release(struct gendisk *disk, fmode_t mode) in z2_release()
320 struct gendisk *disk; in z2ram_register_disk() local
A Damiflop.c199 int disk; /* disk in drive (-1 == unknown) */ member
931 static unsigned long *putsec(int disk, unsigned long *raw, int cnt) in putsec()
965 static void amiga_write(int disk) in amiga_write()
1322 static void dos_write(int disk) in dos_write()
1712 static void floppy_release(struct gendisk *disk, fmode_t mode) in floppy_release()
1739 static unsigned amiga_check_events(struct gendisk *disk, unsigned int clearing) in amiga_check_events()
1782 struct gendisk *disk; in fd_alloc_disk() local
/linux/drivers/md/
A Ddm-era-target.c196 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/drivers/block/null_blk/
A Dtrace.h24 static inline void __assign_disk_name(char *name, struct gendisk *disk) in __assign_disk_name()
/linux/drivers/nvme/host/
A Dfault_inject.c59 struct gendisk *disk = req->rq_disk; in nvme_should_fail() local

Completed in 54 milliseconds

12345