/drivers/block/ |
D | ps3disk.c | 33 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 …]
|
D | ps3vram.c | 70 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 …]
|
D | z2ram.c | 66 static struct gendisk *z2ram_gendisk[Z2MINOR_COUNT]; 143 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()
|
D | swim3.c | 42 static struct gendisk *disks[MAX_FLOPPIES]; 251 static int floppy_open(struct gendisk *disk, blk_mode_t mode); 252 static unsigned int floppy_check_events(struct gendisk *disk, 254 static int floppy_revalidate(struct gendisk *disk); 925 static int floppy_open(struct gendisk *disk, blk_mode_t mode) in floppy_open() 995 static int floppy_unlocked_open(struct gendisk *disk, blk_mode_t mode) in floppy_unlocked_open() 1006 static void floppy_release(struct gendisk *disk) in floppy_release() 1024 static unsigned int floppy_check_events(struct gendisk *disk, in floppy_check_events() 1031 static int floppy_revalidate(struct gendisk *disk) in floppy_revalidate() 1193 struct gendisk *disk; in swim3_attach()
|
D | ataflop.c | 301 struct gendisk *disk[NUM_DISK_MINORS]; 450 static int floppy_open(struct gendisk *disk, blk_mode_t mode); 451 static void floppy_release(struct gendisk *disk); 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() 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()
|
D | swim.c | 190 struct gendisk *disk; 611 static int floppy_open(struct gendisk *disk, blk_mode_t mode) in floppy_open() 660 static int floppy_unlocked_open(struct gendisk *disk, blk_mode_t mode) in floppy_unlocked_open() 671 static void floppy_release(struct gendisk *disk) in floppy_release() 731 static unsigned int floppy_check_events(struct gendisk *disk, in floppy_check_events() 776 struct gendisk *disk = fs->disk; in swim_cleanup_floppy_disk()
|
D | virtio_blk.c | 69 struct gendisk *disk; 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() 1166 struct gendisk *disk = dev_to_disk(dev); in cache_type_store() 1184 struct gendisk *disk = dev_to_disk(dev); in cache_type_show() 1204 struct gendisk *disk = dev_to_disk(dev); in virtblk_attrs_are_visible()
|
D | amiflop.c | 204 struct gendisk *gendisk[2]; member 1656 static int floppy_open(struct gendisk *disk, blk_mode_t mode) in floppy_open() 1700 set_capacity(unit[drive].gendisk[system], unit[drive].blocks); in floppy_open() 1709 static void floppy_release(struct gendisk *disk) in floppy_release() 1736 static unsigned amiga_check_events(struct gendisk *disk, unsigned int clearing) in amiga_check_events() 1779 struct gendisk *disk; in fd_alloc_disk() 1799 unit[drive].gendisk[system] = disk; in fd_alloc_disk()
|
/drivers/s390/block/ |
D | scm_blk.c | 182 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 …]
|
D | scm_blk.h | 19 struct gendisk *gendisk; member
|
D | dcssblk.c | 31 static int dcssblk_open(struct gendisk *disk, blk_mode_t mode); 32 static void dcssblk_release(struct gendisk *disk); 74 struct gendisk *gd; 814 dcssblk_open(struct gendisk *disk, blk_mode_t mode) in dcssblk_open() 830 dcssblk_release(struct gendisk *disk) in dcssblk_release()
|
/drivers/block/aoe/ |
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()
|
/drivers/md/ |
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() 464 static inline void dm_zone_lock(struct gendisk *disk, unsigned int zno, in dm_zone_lock() 474 static inline void dm_zone_unlock(struct gendisk *disk, unsigned int zno, in dm_zone_unlock() 589 struct gendisk *disk = md->disk; in dm_zone_endio()
|
D | md-linear.c | 93 disk_stack_limits(mddev->gendisk, rdev->bdev, in linear_conf() 194 set_capacity_and_notify(mddev->gendisk, mddev->array_sectors); in linear_add() 251 if (mddev->gendisk) in linear_make_request() 252 trace_block_bio_remap(bio, disk_devt(mddev->gendisk), in linear_make_request()
|
D | md.h | 325 struct gendisk *gendisk; member 687 return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; in mdname()
|
/drivers/scsi/ |
D | sd.h | 92 struct gendisk *disk; 160 static inline struct scsi_disk *scsi_disk(struct gendisk *disk) in scsi_disk() 255 int sd_zbc_report_zones(struct gendisk *disk, sector_t sector,
|
D | sr.c | 141 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() 927 struct gendisk *disk = cdi->disk; in sr_read_cdda_bpc()
|
D | sd_zbc.c | 256 int sd_zbc_report_zones(struct gendisk *disk, sector_t sector, in sd_zbc_report_zones() 812 static void sd_zbc_revalidate_zones_cb(struct gendisk *disk) in sd_zbc_revalidate_zones_cb() 826 struct gendisk *disk = sdkp->disk; in sd_zbc_revalidate_zones() 910 struct gendisk *disk = sdkp->disk; in sd_zbc_read_zones()
|
D | sr.h | 53 struct gendisk *disk;
|
D | sd_dif.c | 30 struct gendisk *disk = sdkp->disk; in sd_dif_config_host()
|
/drivers/block/null_blk/ |
D | null_blk.h | 132 struct gendisk *disk; 155 int null_report_zones(struct gendisk *disk, sector_t sector,
|
/drivers/mtd/ubi/ |
D | block.c | 80 struct gendisk *gd; 230 static int ubiblock_open(struct gendisk *disk, blk_mode_t mode) in ubiblock_open() 272 static void ubiblock_release(struct gendisk *gd) in ubiblock_release() 352 struct gendisk *gd; in ubiblock_create()
|
/drivers/cdrom/ |
D | gdrom.c | 96 struct gendisk *disk; 477 static int gdrom_bdops_open(struct gendisk *disk, blk_mode_t mode) in gdrom_bdops_open() 489 static void gdrom_bdops_release(struct gendisk *disk) in gdrom_bdops_release() 496 static unsigned int gdrom_bdops_check_events(struct gendisk *disk, in gdrom_bdops_check_events()
|
/drivers/nvdimm/ |
D | pmem.h | 28 struct gendisk *disk;
|
/drivers/nvme/host/ |
D | fault_inject.c | 59 struct gendisk *disk = req->q->disk; in nvme_should_fail()
|