Home
last modified time | relevance | path

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

12345

/linux/block/
A Dioctl.c19 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 Dbdev.c409 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 Dblk-exec.c47 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 Dbio-integrity.c159 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 Dblk-zoned.c150 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 Ddisk-events.c279 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 Dzns.c37 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 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()
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 Ddasd_genhd.c158 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 Dlowlevel.c30 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 Ddev.c28 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 Dzram_drv.c1650 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 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()
/linux/drivers/md/
A Ddm.c313 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 Dmd.h554 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 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()
/linux/fs/nfsd/
A Dblocklayout.c269 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 Dnfblock.c63 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 Dgenhd.h177 (dev_to_bdev(device)->bd_disk)
228 return bdev->bd_read_only || get_disk_ro(bdev->bd_disk); in bdev_read_only()
A Dblk_types.h58 struct gendisk * bd_disk; member
74 ((_bdev)->bd_disk->part0)
/linux/drivers/block/aoe/
A Daoeblk.c221 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 Dsuper.c1290 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 Dsimdisk.c105 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 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()
/linux/fs/xfs/
A Dxfs_bio_io.c32 struct request_queue *q = bdev->bd_disk->queue; in xfs_flush_bdev_async()

Completed in 47 milliseconds

12345