Home
last modified time | relevance | path

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

1234567

/Linux-v5.4/include/linux/
Dgenhd.h24 #define dev_to_disk(device) container_of((device), struct gendisk, part0.__dev)
182 struct gendisk { struct
192 char *(*devnode)(struct gendisk *gd, umode_t *mode); argument
224 static inline struct gendisk *part_to_disk(struct hd_struct *part) in part_to_disk() argument
235 static inline int disk_max_parts(struct gendisk *disk) in disk_max_parts()
242 static inline bool disk_part_scan_enabled(struct gendisk *disk) in disk_part_scan_enabled()
248 static inline dev_t disk_devt(struct gendisk *disk) in disk_devt()
258 extern struct hd_struct *__disk_get_part(struct gendisk *disk, int partno);
259 extern struct hd_struct *disk_get_part(struct gendisk *disk, int partno);
276 struct gendisk *disk;
[all …]
Dblkdev.h195 struct gendisk *rq_disk;
365 extern int blk_revalidate_disk_zones(struct gendisk *disk);
379 static inline int blk_revalidate_disk_zones(struct gendisk *disk) in blk_revalidate_disk_zones()
848 extern int blk_register_queue(struct gendisk *disk);
849 extern void blk_unregister_queue(struct gendisk *disk);
869 extern int scsi_cmd_ioctl(struct request_queue *, struct gendisk *, fmode_t,
871 extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t,
885 extern void blk_execute_rq(struct request_queue *, struct gendisk *,
887 extern void blk_execute_rq_nowait(struct request_queue *, struct gendisk *,
1098 extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev,
[all …]
Dide.h409 int (*init_media)(struct ide_drive_s *, struct gendisk *);
410 int (*set_doorlock)(struct ide_drive_s *, struct gendisk *,
1180 int ide_queue_pc_tail(ide_drive_t *, struct gendisk *, struct ide_atapi_pc *,
1183 int ide_do_test_unit_ready(ide_drive_t *, struct gendisk *);
1184 int ide_do_start_stop(ide_drive_t *, struct gendisk *, int);
1185 int ide_set_media_lock(ide_drive_t *, struct gendisk *, int);
1226 void ide_init_disk(struct gendisk *, ide_drive_t *);
1492 void ide_register_region(struct gendisk *);
1493 void ide_unregister_region(struct gendisk *);
/Linux-v5.4/drivers/block/rsxx/
Ddev.c102 &card->gendisk->part0); in disk_stats_start()
110 &card->gendisk->part0, start_time); in disk_stats_complete()
123 if (!card->eeh_state && card->gendisk) in bio_dma_done_cb()
147 if (bio_end_sector(bio) > get_capacity(card->gendisk)) in rsxx_make_request()
212 set_capacity(card->gendisk, card->size8 >> 9); in rsxx_attach_dev()
214 set_capacity(card->gendisk, 0); in rsxx_attach_dev()
215 device_add_disk(CARD_TO_DEV(card), card->gendisk, NULL); in rsxx_attach_dev()
229 del_gendisk(card->gendisk); in rsxx_detach_dev()
258 card->gendisk = alloc_disk(blkdev_minors); in rsxx_setup_dev()
259 if (!card->gendisk) { in rsxx_setup_dev()
[all …]
/Linux-v5.4/block/
Dgenhd.c44 static void disk_alloc_events(struct gendisk *disk);
45 static void disk_add_events(struct gendisk *disk);
46 static void disk_del_events(struct gendisk *disk);
47 static void disk_release_events(struct gendisk *disk);
111 struct hd_struct *__disk_get_part(struct gendisk *disk, int partno) in __disk_get_part()
134 struct hd_struct *disk_get_part(struct gendisk *disk, int partno) in disk_get_part()
159 void disk_part_iter_init(struct disk_part_iter *piter, struct gendisk *disk, in disk_part_iter_init()
280 struct hd_struct *disk_map_sector_rcu(struct gendisk *disk, sector_t sector) in disk_map_sector_rcu()
490 struct gendisk *disk = part_to_disk(part); in blk_alloc_devt()
582 struct gendisk *p = data; in exact_match()
[all …]
Dblk-integrity.c121 int blk_integrity_compare(struct gendisk *gd1, struct gendisk *gd2) in blk_integrity_compare()
226 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_show()
238 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_store()
399 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register()
422 void blk_integrity_unregister(struct gendisk *disk) in blk_integrity_unregister()
429 void blk_integrity_add(struct gendisk *disk) in blk_integrity_add()
438 void blk_integrity_del(struct gendisk *disk) in blk_integrity_del()
Dblk-exec.c48 void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk, in blk_execute_rq_nowait()
77 void blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, in blk_execute_rq()
Dpartition-generic.c35 char *disk_name(struct gendisk *hd, int partno, char *buf) in disk_name()
270 void delete_partition(struct gendisk *disk, int partno) in delete_partition()
309 struct hd_struct *add_partition(struct gendisk *disk, int partno, in add_partition()
426 static bool disk_unlock_native_capacity(struct gendisk *disk) in disk_unlock_native_capacity()
442 static int drop_partitions(struct gendisk *disk, struct block_device *bdev) in drop_partitions()
462 static bool part_zone_aligned(struct gendisk *disk, in part_zone_aligned()
512 int rescan_partitions(struct gendisk *disk, struct block_device *bdev) in rescan_partitions()
642 int invalidate_partitions(struct gendisk *disk, struct block_device *bdev) in invalidate_partitions()
Dblk-timeout.c44 struct gendisk *disk = dev_to_disk(dev); in part_timeout_show()
53 struct gendisk *disk = dev_to_disk(dev); in part_timeout_store()
/Linux-v5.4/drivers/block/
Dps3disk.c34 struct gendisk *gendisk; member
401 struct gendisk *gendisk; in ps3disk_probe() local
466 gendisk = alloc_disk(PS3DISK_MINORS); in ps3disk_probe()
467 if (!gendisk) { in ps3disk_probe()
474 priv->gendisk = gendisk; in ps3disk_probe()
475 gendisk->major = ps3disk_major; in ps3disk_probe()
476 gendisk->first_minor = devidx * PS3DISK_MINORS; in ps3disk_probe()
477 gendisk->fops = &ps3disk_fops; in ps3disk_probe()
478 gendisk->queue = queue; in ps3disk_probe()
479 gendisk->private_data = dev; in ps3disk_probe()
[all …]
Dps3vram.c71 struct gendisk *gendisk; member
618 struct gendisk *gendisk; in ps3vram_probe() local
754 gendisk = alloc_disk(1); in ps3vram_probe()
755 if (!gendisk) { in ps3vram_probe()
761 priv->gendisk = gendisk; in ps3vram_probe()
762 gendisk->major = ps3vram_major; in ps3vram_probe()
763 gendisk->first_minor = 0; in ps3vram_probe()
764 gendisk->fops = &ps3vram_fops; in ps3vram_probe()
765 gendisk->queue = queue; in ps3vram_probe()
766 gendisk->private_data = dev; in ps3vram_probe()
[all …]
Dnull_blk.h77 struct gendisk *disk;
94 int null_zone_report(struct gendisk *disk, sector_t sector,
106 static inline int null_zone_report(struct gendisk *disk, sector_t sector, in null_zone_report()
/Linux-v5.4/drivers/s390/block/
Dscm_blk.c182 struct scm_device *scmdev = bdev->gendisk->private_data; in scm_request_prepare()
479 bdev->gendisk = alloc_disk(SCM_NR_PARTS); in scm_blk_dev_setup()
480 if (!bdev->gendisk) { in scm_blk_dev_setup()
485 bdev->gendisk->private_data = scmdev; in scm_blk_dev_setup()
486 bdev->gendisk->fops = &scm_blk_devops; in scm_blk_dev_setup()
487 bdev->gendisk->queue = rq; in scm_blk_dev_setup()
488 bdev->gendisk->major = scm_major; in scm_blk_dev_setup()
489 bdev->gendisk->first_minor = devindex * SCM_NR_PARTS; in scm_blk_dev_setup()
491 len = snprintf(bdev->gendisk->disk_name, DISK_NAME_LEN, "scm"); in scm_blk_dev_setup()
493 len += snprintf(bdev->gendisk->disk_name + len, in scm_blk_dev_setup()
[all …]
Dscm_blk.h20 struct gendisk *gendisk; member
/Linux-v5.4/drivers/ide/
Dide-gd.c34 static struct ide_disk_obj *ide_disk_get(struct gendisk *disk) in ide_disk_get()
70 struct gendisk *g = idkp->disk; in ide_gd_remove()
86 struct gendisk *g = idkp->disk; in ide_disk_release()
186 struct gendisk *disk = bdev->bd_disk;
254 static void ide_gd_release(struct gendisk *disk, fmode_t mode)
287 static unsigned int ide_gd_check_events(struct gendisk *disk,
313 static void ide_gd_unlock_native_capacity(struct gendisk *disk)
323 static int ide_gd_revalidate_disk(struct gendisk *disk)
359 struct gendisk *g;
/Linux-v5.4/drivers/md/
Dmd-linear.c117 disk_stack_limits(mddev->gendisk, rdev->bdev, in linear_conf()
226 set_capacity(mddev->gendisk, mddev->array_sectors); in linear_add()
228 revalidate_disk(mddev->gendisk); in linear_add()
284 if (mddev->gendisk) in linear_make_request()
286 bio, disk_devt(mddev->gendisk), in linear_make_request()
/Linux-v5.4/drivers/block/aoe/
Daoeblk.c37 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_state()
50 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_mac()
61 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_netif()
99 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_fwver()
107 struct gendisk *disk = dev_to_disk(dev); in aoedisk_show_payload()
248 aoeblk_release(struct gendisk *disk, fmode_t mode) in aoeblk_release()
345 struct gendisk *gd; in aoeblk_gdalloc()
/Linux-v5.4/drivers/scsi/
Dsd.h74 struct gendisk *disk;
122 static inline struct scsi_disk *scsi_disk(struct gendisk *disk) in scsi_disk()
215 extern int sd_zbc_report_zones(struct gendisk *disk, sector_t sector,
Dsr.c140 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) in scsi_cd()
162 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()
601 static unsigned int sr_block_check_events(struct gendisk *disk, in sr_block_check_events()
618 static int sr_block_revalidate_disk(struct gendisk *disk) in sr_block_revalidate_disk()
684 struct gendisk *disk; in sr_probe()
1001 struct gendisk *disk = cd->disk; in sr_kref_release()
/Linux-v5.4/block/partitions/
Dcheck.c115 static struct parsed_partitions *allocate_partitions(struct gendisk *hd) in allocate_partitions()
143 check_partition(struct gendisk *hd, struct block_device *bdev) in check_partition()
/Linux-v5.4/drivers/nvdimm/
Dnd.h220 int nd_integrity_init(struct gendisk *disk, unsigned long meta_size);
355 int nvdimm_revalidate_disk(struct gendisk *disk);
402 struct gendisk *disk = bio->bi_disk; in nd_iostat_start()
414 struct gendisk *disk = bio->bi_disk; in nd_iostat_end()
Dpmem.h25 struct gendisk *disk;
/Linux-v5.4/fs/
Dblock_dev.c1098 static struct gendisk *bdev_get_gendisk(struct block_device *bdev, int *partno) in bdev_get_gendisk()
1100 struct gendisk *disk = get_gendisk(bdev->bd_dev, partno); in bdev_get_gendisk()
1144 struct gendisk *disk; in bd_start_claiming()
1249 struct gendisk *disk;
1254 struct gendisk *disk) in bd_find_holder_disk()
1302 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_link_disk_holder()
1367 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_unlink_disk_holder()
1423 void check_disk_size_change(struct gendisk *disk, struct block_device *bdev, in check_disk_size_change()
1450 int revalidate_disk(struct gendisk *disk) in revalidate_disk()
1488 struct gendisk *disk = bdev->bd_disk; in check_disk_change()
[all …]
/Linux-v5.4/drivers/block/paride/
Dpd.c238 struct gendisk *gd;
399 struct gendisk *disk; in set_next_request()
840 static void pd_release(struct gendisk *p, fmode_t mode) in pd_release()
850 static unsigned int pd_check_events(struct gendisk *p, unsigned int clearing) in pd_check_events()
862 static int pd_revalidate(struct gendisk *p) in pd_revalidate()
890 struct gendisk *p; in pd_probe_drive()
1028 struct gendisk *p = disk->gd; in pd_exit()
Dpf.c215 static void pf_release(struct gendisk *disk, fmode_t mode);
241 struct gendisk *disk;
251 static unsigned int pf_check_events(struct gendisk *disk,
294 struct gendisk *disk; in pf_init_units()
387 static void pf_release(struct gendisk *disk, fmode_t mode) in pf_release()
406 static unsigned int pf_check_events(struct gendisk *disk, unsigned int clearing) in pf_check_events()
1046 struct gendisk *disk = pf->disk; in pf_init()

1234567