Home
last modified time | relevance | path

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

12345

/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 …]
/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_report_zones(struct gendisk *disk, sector_t sector,
Damiflop.c204 struct gendisk *gendisk; member
1698 set_capacity(unit[drive].gendisk, unit[drive].blocks); in floppy_open()
1707 static void floppy_release(struct gendisk *disk, fmode_t mode) in floppy_release()
1734 static unsigned amiga_check_events(struct gendisk *disk, unsigned int clearing) in amiga_check_events()
1775 static struct gendisk *fd_alloc_disk(int drive) in fd_alloc_disk()
1777 struct gendisk *disk; in fd_alloc_disk()
1815 struct gendisk *disk; in fd_probe_drives()
1826 unit[drive].gendisk = disk; in fd_probe_drives()
1855 return get_disk_and_module(unit[drive].gendisk); in floppy_find()
Dswim3.c41 static struct gendisk *disks[MAX_FLOPPIES];
252 static void floppy_release(struct gendisk *disk, fmode_t mode);
253 static unsigned int floppy_check_events(struct gendisk *disk,
255 static int floppy_revalidate(struct gendisk *disk);
988 static void floppy_release(struct gendisk *disk, fmode_t mode) in floppy_release()
1006 static unsigned int floppy_check_events(struct gendisk *disk, in floppy_check_events()
1013 static int floppy_revalidate(struct gendisk *disk) in floppy_revalidate()
1176 struct gendisk *disk; in swim3_attach()
Dvirtio_blk.c39 struct gendisk *disk;
130 struct gendisk *disk = bdev->bd_disk; in virtblk_ioctl()
364 static int virtblk_get_id(struct gendisk *disk, char *id_str) in virtblk_get_id()
427 struct gendisk *disk = dev_to_disk(dev); in serial_show()
623 struct gendisk *disk = dev_to_disk(dev); in cache_type_store()
641 struct gendisk *disk = dev_to_disk(dev); in cache_type_show()
661 struct gendisk *disk = dev_to_disk(dev); in virtblk_attrs_are_visible()
Dswim.c188 struct gendisk *disk;
670 static void floppy_release(struct gendisk *disk, fmode_t mode) in floppy_release()
730 static unsigned int floppy_check_events(struct gendisk *disk, in floppy_check_events()
738 static int floppy_revalidate(struct gendisk *disk) in floppy_revalidate()
875 struct gendisk *disk = swd->unit[drive].disk; in swim_floppy_init()
/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
/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;
Dide-gd.h20 struct gendisk *disk;
Dide-tape.c143 struct gendisk *disk;
231 static struct ide_tape_obj *ide_tape_get(struct gendisk *disk, bool cdev, in ide_tape_get()
686 struct gendisk *disk = tape->disk; in idetape_wait_ready()
806 struct gendisk *disk = tape->disk; in idetape_position_tape()
1012 struct gendisk *disk = tape->disk; in idetape_rewind_tape()
1067 struct gendisk *disk = tape->disk; in idetape_space_over_filemarks()
1257 struct gendisk *disk = tape->disk; in idetape_mtioctop()
1823 struct gendisk *g = tape->disk; in ide_tape_release()
1908 static void idetape_release(struct gendisk *disk, fmode_t mode) in idetape_release()
1943 struct gendisk *g; in ide_tape_probe()
/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()
283 if (mddev->gendisk) in linear_make_request()
285 bio, disk_devt(mddev->gendisk), in linear_make_request()
Dmd.h290 struct gendisk *gendisk; member
620 return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; in mdname()
Draid0.c410 disk_stack_limits(mddev->gendisk, rdev->bdev, in raid0_run()
558 if (mddev->gendisk) in raid0_handle_discard()
560 discard_bio, disk_devt(mddev->gendisk), in raid0_handle_discard()
631 if (mddev->gendisk) in raid0_make_request()
633 disk_devt(mddev->gendisk), bio_sector); in raid0_make_request()
Ddm-bio-record.h21 struct gendisk *bi_disk;
Dmd.c408 part_stat_inc(&mddev->gendisk->part0, ios[sgrp]); in md_make_request()
409 part_stat_add(&mddev->gendisk->part0, sectors[sgrp], sectors); in md_make_request()
2215 if (!mddev->gendisk || blk_get_integrity(mddev->gendisk)) in md_integrity_register()
2239 blk_integrity_register(mddev->gendisk, in md_integrity_register()
2261 if (!mddev->gendisk) in md_integrity_add_rdev()
2264 bi_mddev = blk_get_integrity(mddev->gendisk); in md_integrity_add_rdev()
2269 if (blk_integrity_compare(mddev->gendisk, rdev->bdev->bd_disk) != 0) { in md_integrity_add_rdev()
2351 bd_link_disk_holder(rdev->bdev, mddev->gendisk); in bind_rdev_to_array()
2375 bd_unlink_disk_holder(rdev->bdev, rdev->mddev->gendisk); in unbind_rdev_from_array()
4332 set_disk_ro(mddev->gendisk, 1); in array_state_store()
[all …]
/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()
/drivers/scsi/
Dsd.h74 struct gendisk *disk;
122 static inline struct scsi_disk *scsi_disk(struct gendisk *disk) in scsi_disk()
216 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()
/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;
/drivers/block/paride/
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()
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()

12345