/linux/block/ |
A D | ioctl.c | 19 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl() 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() 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() 607 if (!bdev->bd_disk->fops->ioctl) in blkdev_ioctl() [all …]
|
A D | bdev.c | 409 if (bdev->bd_disk && bdev->bd_disk->bdi) in bdev_free_inode() 410 bdi_put(bdev->bd_disk->bdi); in bdev_free_inode() 411 kfree(bdev->bd_disk); in bdev_free_inode() 503 bdev->bd_disk = disk; in bdev_alloc() 667 struct gendisk *disk = bdev->bd_disk; in blkdev_get_whole() 693 if (bdev->bd_disk->fops->release) in blkdev_put_whole() 694 bdev->bd_disk->fops->release(bdev->bd_disk, mode); in blkdev_put_whole() 699 struct gendisk *disk = part->bd_disk; in blkdev_get_part() 731 whole->bd_disk->open_partitions--; in blkdev_put_part() 807 disk = bdev->bd_disk; in blkdev_get_by_dev() [all …]
|
A D | blk-exec.c | 47 void blk_execute_rq_nowait(struct gendisk *bd_disk, struct request *rq, in blk_execute_rq_nowait() argument 53 rq->rq_disk = bd_disk; in blk_execute_rq_nowait() 96 blk_status_t blk_execute_rq(struct gendisk *bd_disk, struct request *rq, int at_head) in blk_execute_rq() argument 102 blk_execute_rq_nowait(bd_disk, rq, at_head, blk_end_sync_rq); in blk_execute_rq()
|
A D | bio-integrity.c | 159 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in bio_integrity_process() 166 iter.disk_name = bio->bi_bdev->bd_disk->disk_name; in bio_integrity_process() 201 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in bio_integrity_prep() 321 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in bio_integrity_verify_fn() 347 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in __bio_integrity_endio() 373 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in bio_integrity_advance() 389 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in bio_integrity_trim()
|
A D | blk-zoned.c | 150 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones() 194 sector_t capacity = get_capacity(bdev->bd_disk); in blkdev_zone_reset_all_emulated() 205 ret = bdev->bd_disk->fops->report_zones(bdev->bd_disk, 0, in blkdev_zone_reset_all_emulated() 271 sector_t capacity = get_capacity(bdev->bd_disk); in blkdev_zone_mgmt() 388 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range()
|
A D | disk-events.c | 279 events = disk_clear_events(bdev->bd_disk, DISK_EVENT_MEDIA_CHANGE | in bdev_check_media_change() 286 bdev->bd_disk->disk_name); in bdev_check_media_change() 287 set_bit(GD_NEED_PART_SCAN, &bdev->bd_disk->state); in bdev_check_media_change()
|
/linux/drivers/nvme/target/ |
A D | zns.c | 37 struct request_queue *q = ns->bdev->bd_disk->queue; in nvmet_bdev_zns_enable() 39 struct gendisk *bd_disk = ns->bdev->bd_disk; in nvmet_bdev_zns_enable() local 53 if (get_capacity(bd_disk) & (bdev_zone_sectors(ns->bdev) - 1)) in nvmet_bdev_zns_enable() 61 if (ns->bdev->bd_disk->queue->conv_zones_bitmap) in nvmet_bdev_zns_enable() 145 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_validate_zone_mgmt_recv() 241 return blkdev_nr_zones(req->ns->bdev->bd_disk) - in nvmet_req_nr_zones_from_slba() 386 unsigned int nr_zones = blkdev_nr_zones(bdev->bd_disk); in nvmet_bdev_zone_mgmt_emulate_all() 413 while (sector < get_capacity(bdev->bd_disk)) { in nvmet_bdev_zone_mgmt_emulate_all() 443 get_capacity(req->ns->bdev->bd_disk), in nvmet_bdev_execute_zmgmt_send_all() 483 if (sect >= get_capacity(bdev->bd_disk)) { in nvmet_bdev_zmgmt_send_work() [all …]
|
/linux/drivers/s390/block/ |
A 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() 265 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_format() 301 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_check_format() 354 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_release_space() 541 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_set_read_only() 581 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl()
|
A D | dasd_genhd.c | 158 mutex_lock(&bdev->bd_disk->open_mutex); in dasd_destroy_partitions() 159 bdev_disk_changed(bdev->bd_disk, true); in dasd_destroy_partitions() 160 mutex_unlock(&bdev->bd_disk->open_mutex); in dasd_destroy_partitions()
|
/linux/fs/udf/ |
A D | lowlevel.c | 30 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in udf_get_last_session() 50 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in udf_get_last_block()
|
/linux/fs/nfs/blocklayout/ |
A D | dev.c | 28 dev->bdev->bd_disk->fops->pr_ops; in bl_free_device() 259 d->bdev->bd_disk->disk_name); in bl_parse_simple() 375 d->bdev->bd_disk->disk_name, d->pr_key); in bl_parse_scsi() 377 ops = d->bdev->bd_disk->fops->pr_ops; in bl_parse_scsi() 380 d->bdev->bd_disk->disk_name); in bl_parse_scsi() 388 d->bdev->bd_disk->disk_name); in bl_parse_scsi()
|
/linux/drivers/block/zram/ |
A D | zram_drv.c | 1650 zram = bdev->bd_disk->private_data; in zram_slot_free_notify() 1673 zram = bdev->bd_disk->private_data; in zram_rw_page() 1811 mutex_lock(&bdev->bd_disk->open_mutex); in reset_store() 1814 mutex_unlock(&bdev->bd_disk->open_mutex); in reset_store() 1820 mutex_unlock(&bdev->bd_disk->open_mutex); in reset_store() 1826 mutex_lock(&bdev->bd_disk->open_mutex); in reset_store() 1828 mutex_unlock(&bdev->bd_disk->open_mutex); in reset_store() 1840 zram = bdev->bd_disk->private_data; in zram_open() 2009 mutex_lock(&bdev->bd_disk->open_mutex); in zram_remove() 2011 mutex_unlock(&bdev->bd_disk->open_mutex); in zram_remove() [all …]
|
/linux/drivers/block/rsxx/ |
A 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()
|
/linux/drivers/md/ |
A D | dm.c | 313 md = bdev->bd_disk->private_data; in dm_blk_open() 401 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_getgeo() 448 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_ioctl() 469 if (!bdev->bd_disk->fops->ioctl) in dm_blk_ioctl() 472 r = bdev->bd_disk->fops->ioctl(bdev, mode, cmd, arg); in dm_blk_ioctl() 886 struct request_queue *q = bio->bi_bdev->bd_disk->queue; in clone_endio() 2869 struct mapped_device *md = bdev->bd_disk->private_data; in dm_call_pr() 2942 ops = bdev->bd_disk->fops->pr_ops; in dm_pr_reserve() 2962 ops = bdev->bd_disk->fops->pr_ops; in dm_pr_release() 2983 ops = bdev->bd_disk->fops->pr_ops; in dm_pr_preempt() [all …]
|
A D | md.h | 554 atomic_add(nr_sectors, &bdev->bd_disk->sync_io); in md_sync_acct() 767 if (!disk_live(rdev->bdev->bd_disk)) { in is_mddev_broken() 801 !bio->bi_bdev->bd_disk->queue->limits.max_write_same_sectors) in mddev_check_writesame() 808 !bio->bi_bdev->bd_disk->queue->limits.max_write_zeroes_sectors) in mddev_check_write_zeroes()
|
A 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()
|
/linux/fs/nfsd/ |
A D | blocklayout.c | 269 ret = nfsd4_block_get_unique_id(sb->s_bdev->bd_disk, b); in nfsd4_block_get_device_info_scsi() 274 ops = sb->s_bdev->bd_disk->fops->pr_ops; in nfsd4_block_get_device_info_scsi() 334 bdev->bd_disk->fops->pr_ops->pr_preempt(bdev, NFSD_MDS_PR_KEY, in nfsd4_scsi_fence_client()
|
/linux/arch/m68k/emu/ |
A D | nfblock.c | 63 struct nfhd_device *dev = bio->bi_bdev->bd_disk->private_data; in nfhd_submit_bio() 83 struct nfhd_device *dev = bdev->bd_disk->private_data; in nfhd_getgeo()
|
/linux/include/linux/ |
A D | genhd.h | 177 (dev_to_bdev(device)->bd_disk) 228 return bdev->bd_read_only || get_disk_ro(bdev->bd_disk); in bdev_read_only()
|
A D | blk_types.h | 58 struct gendisk * bd_disk; member 74 ((_bdev)->bd_disk->part0)
|
/linux/drivers/block/aoe/ |
A D | aoeblk.c | 221 struct aoedev *d = bdev->bd_disk->private_data; in aoeblk_open() 286 struct aoedev *d = bdev->bd_disk->private_data; in aoeblk_getgeo() 307 d = bdev->bd_disk->private_data; in aoeblk_ioctl()
|
/linux/fs/zonefs/ |
A D | super.c | 1290 inode->i_ino = blkdev_nr_zones(sb->s_bdev->bd_disk) + type + 1; in zonefs_init_dir_inode() 1405 end = zd->zones + blkdev_nr_zones(sb->s_bdev->bd_disk); in zonefs_create_zgroup() 1500 zd->zones = kvcalloc(blkdev_nr_zones(bdev->bd_disk), in zonefs_get_zone_info() 1513 if (ret != blkdev_nr_zones(bdev->bd_disk)) { in zonefs_get_zone_info() 1515 ret, blkdev_nr_zones(bdev->bd_disk)); in zonefs_get_zone_info() 1682 blkdev_nr_zones(sb->s_bdev->bd_disk)); in zonefs_fill_super() 1690 inode->i_ino = blkdev_nr_zones(sb->s_bdev->bd_disk); in zonefs_fill_super()
|
/linux/arch/xtensa/platforms/iss/ |
A D | simdisk.c | 105 struct simdisk *dev = bio->bi_bdev->bd_disk->private_data; in simdisk_submit_bio() 125 struct simdisk *dev = bdev->bd_disk->private_data; in simdisk_open()
|
/linux/drivers/nvdimm/ |
A 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()
|
/linux/fs/xfs/ |
A D | xfs_bio_io.c | 32 struct request_queue *q = bdev->bd_disk->queue; in xfs_flush_bdev_async()
|