Home
last modified time | relevance | path

Searched refs:bd_disk (Results 1 – 25 of 69) sorted by relevance

123

/drivers/nvme/target/
Dzns.c38 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/
Ddasd_ioctl.c52 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()
Ddasd_genhd.c152 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/
Ddev.c61 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/
Dzram_drv.c1604 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/
Ddm.c312 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 …]
Dmd.h562 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()
Dmd-autodetect.c179 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/
Daoeblk.c222 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/
Dblk.c168 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()
Dpmem.c201 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/
Dbrd.c285 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()
Dpktcdvd.c725 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()
Dn64cart.c91 struct device *dev = bio->bi_bdev->bd_disk->private_data; in n64cart_submit_bio()
Dswim.c612 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()
Dataflop.c1586 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()
Dvirtio_blk.c399 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/
Dpd.c793 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()
Dpf.c329 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/
Dblock.c221 struct ubiblock *dev = bdev->bd_disk->private_data; in ubiblock_open()
280 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo()
/drivers/mtd/
Dmtd_blkdevs.c186 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/
Drnbd-srv-sysfs.c62 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs()
/drivers/dax/
Dsuper.c117 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/
Dioctl.c359 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/
Drequest.c1176 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()

123