Lines Matching refs:bd_disk

19 	struct gendisk *disk = bdev->bd_disk;  in blkpg_do_ioctl()
89 if (!disk_part_scan_enabled(bdev->bd_disk) || bdev_is_partition(bdev)) in blkdev_reread_part()
93 if (bdev->bd_disk->open_partitions) in blkdev_reread_part()
101 set_bit(GD_NEED_PART_SCAN, &bdev->bd_disk->state); in blkdev_reread_part()
244 struct gendisk *disk = bdev->bd_disk; in blkdev_compat_ptr_ioctl()
258 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register()
276 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve()
294 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release()
312 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt()
330 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear()
365 if (bdev->bd_disk->fops->set_read_only) { in blkdev_roset()
366 ret = bdev->bd_disk->fops->set_read_only(bdev, n); in blkdev_roset()
377 struct gendisk *disk = bdev->bd_disk; in blkdev_getgeo()
411 struct gendisk *disk = bdev->bd_disk; in compat_hdio_getgeo()
486 return put_u64(argp, bdev->bd_disk->diskseq); in blkdev_common_ioctl()
497 return put_uint(argp, blkdev_nr_zones(bdev->bd_disk)); in blkdev_common_ioctl()
522 bdev->bd_disk->bdi->ra_pages = (arg * 512) / PAGE_SIZE; in blkdev_common_ioctl()
582 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in blkdev_ioctl()
607 if (!bdev->bd_disk->fops->ioctl) in blkdev_ioctl()
609 return bdev->bd_disk->fops->ioctl(bdev, mode, cmd, arg); in blkdev_ioctl()
626 struct gendisk *disk = bdev->bd_disk; in compat_blkdev_ioctl()
651 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in compat_blkdev_ioctl()