/drivers/nvme/target/ |
D | zns.c | 38 struct gendisk *bd_disk = ns->bdev->bd_disk; in nvmet_bdev_zns_enable() local 52 if (!bdev_is_zone_start(bd_disk->part0, get_capacity(bd_disk))) in nvmet_bdev_zns_enable() 60 if (ns->bdev->bd_disk->queue->conv_zones_bitmap) in nvmet_bdev_zns_enable() 63 ret = blkdev_report_zones(ns->bdev, 0, blkdev_nr_zones(bd_disk), in nvmet_bdev_zns_enable() 163 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_validate_zone_mgmt_recv() 259 return blkdev_nr_zones(req->ns->bdev->bd_disk) - in nvmet_req_nr_zones_from_slba() 404 unsigned int nr_zones = blkdev_nr_zones(bdev->bd_disk); in nvmet_bdev_zone_mgmt_emulate_all() 431 while (sector < get_capacity(bdev->bd_disk)) { in nvmet_bdev_zone_mgmt_emulate_all() 461 get_capacity(req->ns->bdev->bd_disk), in nvmet_bdev_execute_zmgmt_send_all() 501 if (sect >= get_capacity(bdev->bd_disk)) { in nvmet_bdev_zmgmt_send_work() [all …]
|
/drivers/s390/block/ |
D | dasd_ioctl.c | 52 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_enable() 73 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_disable() 89 set_capacity(bdev->bd_disk, 0); in dasd_ioctl_disable() 266 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_format() 302 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_check_format() 355 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_release_space() 542 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_set_read_only() 582 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl()
|
D | dasd_genhd.c | 152 mutex_lock(&bdev->bd_disk->open_mutex); in dasd_destroy_partitions() 153 bdev_disk_changed(bdev->bd_disk, true); in dasd_destroy_partitions() 154 mutex_unlock(&bdev->bd_disk->open_mutex); in dasd_destroy_partitions()
|
/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() 125 struct rsxx_cardinfo *card = bio->bi_bdev->bd_disk->private_data; in rsxx_submit_bio()
|
/drivers/block/zram/ |
D | zram_drv.c | 1604 struct zram *zram = bio->bi_bdev->bd_disk->private_data; in zram_submit_bio() 1625 zram = bdev->bd_disk->private_data; in zram_slot_free_notify() 1648 zram = bdev->bd_disk->private_data; in zram_rw_page() 1663 start_time = disk_start_io_acct(bdev->bd_disk, SECTORS_PER_PAGE, op); in zram_rw_page() 1665 disk_end_io_acct(bdev->bd_disk, op, start_time); in zram_rw_page() 1785 mutex_lock(&bdev->bd_disk->open_mutex); in reset_store() 1788 mutex_unlock(&bdev->bd_disk->open_mutex); in reset_store() 1794 mutex_unlock(&bdev->bd_disk->open_mutex); in reset_store() 1800 mutex_lock(&bdev->bd_disk->open_mutex); in reset_store() 1802 mutex_unlock(&bdev->bd_disk->open_mutex); in reset_store() [all …]
|
/drivers/md/ |
D | dm.c | 312 md = bdev->bd_disk->private_data; in dm_blk_open() 400 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_getgeo() 447 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_ioctl() 468 if (!bdev->bd_disk->fops->ioctl) in dm_blk_ioctl() 471 r = bdev->bd_disk->fops->ioctl(bdev, mode, cmd, arg); in dm_blk_ioctl() 909 struct request_queue *q = bio->bi_bdev->bd_disk->queue; in clone_endio() 1590 struct mapped_device *md = bio->bi_bdev->bd_disk->private_data; in dm_submit_bio() 2904 struct mapped_device *md = bdev->bd_disk->private_data; in dm_call_pr() 2940 const struct pr_ops *ops = dev->bdev->bd_disk->fops->pr_ops; in __dm_pr_register() 2974 struct mapped_device *md = bdev->bd_disk->private_data; in dm_pr_reserve() [all …]
|
D | md.h | 562 atomic_add(nr_sectors, &bdev->bd_disk->sync_io); in md_sync_acct() 777 return !disk_live(rdev->bdev->bd_disk); in is_rdev_broken() 805 !bio->bi_bdev->bd_disk->queue->limits.max_write_same_sectors) in mddev_check_writesame() 812 !bio->bi_bdev->bd_disk->queue->limits.max_write_zeroes_sectors) in mddev_check_write_zeroes()
|
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()
|
/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/nvdimm/ |
D | blk.c | 168 struct nd_namespace_blk *nsblk = bio->bi_bdev->bd_disk->private_data; in nd_blk_submit_bio() 180 do_acct = blk_queue_io_stat(bio->bi_bdev->bd_disk->queue); in nd_blk_submit_bio()
|
D | pmem.c | 201 struct pmem_device *pmem = bio->bi_bdev->bd_disk->private_data; in pmem_submit_bio() 207 do_acct = blk_queue_io_stat(bio->bi_bdev->bd_disk->queue); in pmem_submit_bio() 238 struct pmem_device *pmem = bdev->bd_disk->private_data; in pmem_rw_page()
|
/drivers/block/ |
D | brd.c | 285 struct brd_device *brd = bio->bi_bdev->bd_disk->private_data; in brd_submit_bio() 315 struct brd_device *brd = bdev->bd_disk->private_data; in brd_rw_page()
|
D | pktcdvd.c | 725 blk_execute_rq(pd->bdev->bd_disk, rq, 0); in pkt_generic_packet() 2167 set_capacity_and_notify(pd->bdev->bd_disk, lba << 2); in pkt_open_dev() 2367 set_bdi_congested(bio->bi_bdev->bd_disk->bdi, BLK_RW_ASYNC); in pkt_make_request_write() 2413 pd = bio->bi_bdev->bd_disk->queue->queuedata; in pkt_submit_bio() 2457 pkt_make_request_write(bio->bi_bdev->bd_disk->queue, split); in pkt_submit_bio() 2598 struct pktcdvd_device *pd = bdev->bd_disk->private_data; in pkt_ioctl() 2622 if (!bdev->bd_disk->fops->ioctl) in pkt_ioctl() 2625 ret = bdev->bd_disk->fops->ioctl(bdev, mode, cmd, arg); in pkt_ioctl() 2646 attached_disk = pd->bdev->bd_disk; in pkt_check_events() 2732 disk->events = pd->bdev->bd_disk->events; in pkt_setup_dev()
|
D | n64cart.c | 91 struct device *dev = bio->bi_bdev->bd_disk->private_data; in n64cart_submit_bio()
|
D | swim.c | 612 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_open() 691 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_ioctl() 717 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_getgeo()
|
D | ataflop.c | 1586 struct gendisk *disk = bdev->bd_disk; in fd_locked_ioctl() 1763 floppy_revalidate(bdev->bd_disk); in fd_locked_ioctl() 1919 struct atari_floppy_struct *p = bdev->bd_disk->private_data; in floppy_open() 1941 floppy_revalidate(bdev->bd_disk); in floppy_open()
|
D | virtio_blk.c | 399 struct virtio_blk *vblk = bd->bd_disk->private_data; in virtblk_open() 423 struct virtio_blk *vblk = bd->bd_disk->private_data; in virtblk_getgeo() 445 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
|
/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 | 329 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_open() 354 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_getgeo() 372 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_ioctl()
|
/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/mtd/ |
D | mtd_blkdevs.c | 186 struct mtd_blktrans_dev *dev = bdev->bd_disk->private_data; in blktrans_open() 250 struct mtd_blktrans_dev *dev = bdev->bd_disk->private_data; in blktrans_getgeo()
|
/drivers/block/rnbd/ |
D | rnbd-srv-sysfs.c | 62 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs()
|
/drivers/dax/ |
D | super.c | 117 if (!blk_queue_dax(bdev->bd_disk->queue)) in fs_dax_get_by_bdev() 119 return dax_get_by_host(bdev->bd_disk->disk_name); in fs_dax_get_by_bdev()
|
/drivers/nvme/host/ |
D | ioctl.c | 359 struct nvme_ns *ns = bdev->bd_disk->private_data; in nvme_ioctl() 391 struct nvme_ns_head *head = bdev->bd_disk->private_data; in nvme_ns_head_ioctl()
|
/drivers/md/bcache/ |
D | request.c | 1176 struct bcache_device *d = orig_bdev->bd_disk->private_data; in cached_dev_submit_bio() 1242 if (!dc->bdev->bd_disk->fops->ioctl) in cached_dev_ioctl() 1244 return dc->bdev->bd_disk->fops->ioctl(dc->bdev, mode, cmd, arg); in cached_dev_ioctl() 1286 struct bcache_device *d = bio->bi_bdev->bd_disk->private_data; in flash_dev_submit_bio()
|