/drivers/s390/block/ |
D | dasd_ioctl.c | 52 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_enable() 75 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_disable() 269 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_format() 305 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_check_format() 358 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_release_space() 549 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_set_ro() 556 set_disk_ro(bdev->bd_disk, intval); in dasd_ioctl_set_ro() 593 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl()
|
/drivers/ide/ |
D | ide-gd.c | 186 struct gendisk *disk = bdev->bd_disk; 230 bdev->bd_disk->disk_name); 282 struct ide_disk_obj *idkp = ide_drv_g(bdev->bd_disk, ide_disk_obj); 304 struct ide_disk_obj *idkp = ide_drv_g(bdev->bd_disk, ide_disk_obj); 314 struct ide_disk_obj *idkp = ide_drv_g(bdev->bd_disk, ide_disk_obj);
|
D | ide-cd.c | 1615 info = ide_drv_g(bdev->bd_disk, cdrom_info); in idecd_open() 1621 info = ide_cd_get(bdev->bd_disk); in idecd_open() 1686 struct cdrom_info *info = ide_drv_g(bdev->bd_disk, cdrom_info); in idecd_locked_ioctl() 1720 struct cdrom_info *info = ide_drv_g(bdev->bd_disk, cdrom_info); in idecd_locked_compat_ioctl()
|
/drivers/md/ |
D | md-autodetect.c | 179 if (WARN(bdev->bd_disk->fops != &md_fops, in md_setup_drive() 184 mddev = bdev->bd_disk->private_data; in md_setup_drive()
|
D | dm.c | 349 md = bdev->bd_disk->private_data; in dm_blk_open() 437 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_getgeo() 562 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_ioctl() 769 td->dm_dev.dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); in open_table_device() 3002 struct mapped_device *md = bdev->bd_disk->private_data; in dm_call_pr() 3038 const struct pr_ops *ops = dev->bdev->bd_disk->fops->pr_ops; in __dm_pr_register() 3072 struct mapped_device *md = bdev->bd_disk->private_data; in dm_pr_reserve() 3080 ops = bdev->bd_disk->fops->pr_ops; in dm_pr_reserve() 3092 struct mapped_device *md = bdev->bd_disk->private_data; in dm_pr_release() 3100 ops = bdev->bd_disk->fops->pr_ops; in dm_pr_release() [all …]
|
D | md.h | 553 atomic_add(nr_sectors, &bdev->bd_disk->sync_io); in md_sync_acct() 759 int flags = rdev->bdev->bd_disk->flags; in is_mddev_broken()
|
D | dm-zoned-target.c | 613 disk = dmz_dev->bdev->bd_disk; in dmz_check_bdev() 798 blkdev_nr_zones(zoned_dev->bdev->bd_disk); in dmz_fixup_devices() 809 zoned_dev->nr_zones = blkdev_nr_zones(zoned_dev->bdev->bd_disk); in dmz_fixup_devices()
|
/drivers/block/rsxx/ |
D | dev.c | 61 struct rsxx_cardinfo *card = bdev->bd_disk->private_data; in rsxx_blkdev_ioctl() 75 struct rsxx_cardinfo *card = bdev->bd_disk->private_data; in rsxx_getgeo()
|
/drivers/block/aoe/ |
D | aoeblk.c | 222 struct aoedev *d = bdev->bd_disk->private_data; in aoeblk_open() 287 struct aoedev *d = bdev->bd_disk->private_data; in aoeblk_getgeo() 308 d = bdev->bd_disk->private_data; in aoeblk_ioctl()
|
/drivers/mtd/ |
D | mtd_blkdevs.c | 206 struct mtd_blktrans_dev *dev = blktrans_dev_get(bdev->bd_disk); in blktrans_open() 283 struct mtd_blktrans_dev *dev = blktrans_dev_get(bdev->bd_disk); in blktrans_getgeo() 304 struct mtd_blktrans_dev *dev = blktrans_dev_get(bdev->bd_disk); in blktrans_ioctl()
|
/drivers/dax/ |
D | super.c | 63 if (!blk_queue_dax(bdev->bd_disk->queue)) in fs_dax_get_by_bdev() 65 return dax_get_by_host(bdev->bd_disk->disk_name); in fs_dax_get_by_bdev() 183 dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); in __bdev_dax_supported()
|
/drivers/block/rnbd/ |
D | rnbd-srv-sysfs.c | 58 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs()
|
/drivers/block/paride/ |
D | pd.c | 793 struct pd_unit *disk = bdev->bd_disk->private_data; in pd_open() 808 struct pd_unit *disk = bdev->bd_disk->private_data; in pd_getgeo() 826 struct pd_unit *disk = bdev->bd_disk->private_data; in pd_ioctl()
|
D | pf.c | 331 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_open() 356 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_getgeo() 374 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_ioctl()
|
/drivers/block/ |
D | swim.c | 611 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_open() 690 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_ioctl() 716 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_getgeo()
|
D | loop.c | 246 kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, KOBJ_CHANGE); in loop_set_size() 672 l = f->f_mapping->host->i_bdev->bd_disk->private_data; in loop_validate_file() 1253 kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, KOBJ_CHANGE); in __loop_clr_fd() 1671 struct loop_device *lo = bdev->bd_disk->private_data; in lo_ioctl() 1852 struct loop_device *lo = bdev->bd_disk->private_data; in lo_compat_ioctl() 1893 lo = bdev->bd_disk->private_data; in lo_open()
|
D | ataflop.c | 1580 struct gendisk *disk = bdev->bd_disk; in fd_locked_ioctl() 1757 floppy_revalidate(bdev->bd_disk); in fd_locked_ioctl() 1913 struct atari_floppy_struct *p = bdev->bd_disk->private_data; in floppy_open() 1935 floppy_revalidate(bdev->bd_disk); in floppy_open()
|
D | virtio_blk.c | 348 struct virtio_blk *vblk = bd->bd_disk->private_data; in virtblk_open() 372 struct virtio_blk *vblk = bd->bd_disk->private_data; in virtblk_getgeo() 394 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
|
D | sunvdc.c | 125 struct gendisk *disk = bdev->bd_disk; in vdc_getgeo() 158 disk = bdev->bd_disk; in vdc_ioctl() 160 if (bdev->bd_disk && (disk->flags & GENHD_FL_CD)) in vdc_ioctl()
|
D | swim3.c | 871 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_locked_ioctl() 910 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_open() 949 floppy_revalidate(bdev->bd_disk); in floppy_open()
|
/drivers/scsi/ |
D | sr.c | 536 cd = scsi_cd_get(bdev->bd_disk); in sr_block_open() 571 struct scsi_cd *cd = scsi_cd(bdev->bd_disk); in sr_block_ioctl() 614 struct scsi_cd *cd = scsi_cd(bdev->bd_disk); in sr_block_compat_ioctl()
|
D | sd.c | 1406 return test_bit(GD_NEED_PART_SCAN, &bdev->bd_disk->state); in sd_need_revalidate() 1426 struct scsi_disk *sdkp = scsi_disk_get(bdev->bd_disk); in sd_open() 1446 sd_revalidate_disk(bdev->bd_disk); in sd_open() 1515 struct scsi_disk *sdkp = scsi_disk(bdev->bd_disk); in sd_getgeo() 1555 struct gendisk *disk = bdev->bd_disk; in sd_ioctl_common() 1786 return scsi_ioctl(scsi_disk(bdev->bd_disk)->device, cmd, p); in sd_ioctl() 1800 return scsi_compat_ioctl(scsi_disk(bdev->bd_disk)->device, cmd, p); in sd_compat_ioctl() 1827 struct scsi_disk *sdkp = scsi_disk(bdev->bd_disk); in sd_pr_command()
|
/drivers/mtd/ubi/ |
D | block.c | 221 struct ubiblock *dev = bdev->bd_disk->private_data; in ubiblock_open() 280 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo()
|
/drivers/block/xen-blkback/ |
D | xenbus.c | 505 if (vbd->bdev->bd_disk == NULL) { in xen_vbd_create() 513 if (vbd->bdev->bd_disk->flags & GENHD_FL_CD || cdrom) in xen_vbd_create() 515 if (vbd->bdev->bd_disk->flags & GENHD_FL_REMOVABLE) in xen_vbd_create()
|
/drivers/block/zram/ |
D | zram_drv.c | 1633 zram = bdev->bd_disk->private_data; in zram_slot_free_notify() 1656 zram = bdev->bd_disk->private_data; in zram_rw_page() 1671 start_time = disk_start_io_acct(bdev->bd_disk, SECTORS_PER_PAGE, op); in zram_rw_page() 1673 disk_end_io_acct(bdev->bd_disk, op, start_time); in zram_rw_page() 1829 zram = bdev->bd_disk->private_data; in zram_open()
|