Home
last modified time | relevance | path

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

1234

/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 …]
Dz2ram.c66 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()
Dswim3.c42 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()
Dataflop.c301 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()
Dswim.c190 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()
Dvirtio_blk.c69 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()
Damiflop.c204 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/
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
Ddcssblk.c31 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/
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()
/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()
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()
Dmd-linear.c93 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()
Dmd.h325 struct gendisk *gendisk; member
687 return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; in mdname()
/drivers/scsi/
Dsd.h92 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,
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()
927 struct gendisk *disk = cdi->disk; in sr_read_cdda_bpc()
Dsd_zbc.c256 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()
Dsr.h53 struct gendisk *disk;
Dsd_dif.c30 struct gendisk *disk = sdkp->disk; in sd_dif_config_host()
/drivers/block/null_blk/
Dnull_blk.h132 struct gendisk *disk;
155 int null_report_zones(struct gendisk *disk, sector_t sector,
/drivers/mtd/ubi/
Dblock.c80 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/
Dgdrom.c96 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/
Dpmem.h28 struct gendisk *disk;
/drivers/nvme/host/
Dfault_inject.c59 struct gendisk *disk = req->q->disk; in nvme_should_fail()

1234