/linux-6.12.1/drivers/s390/block/ |
D | dasd_genhd.c | 181 mutex_lock(&file_bdev(bdev_file)->bd_disk->open_mutex); in dasd_destroy_partitions() 182 bdev_disk_changed(file_bdev(bdev_file)->bd_disk, true); in dasd_destroy_partitions() 183 mutex_unlock(&file_bdev(bdev_file)->bd_disk->open_mutex); in dasd_destroy_partitions()
|
D | dasd.c | 427 disk_uevent(file_bdev(device->block->bdev_file)->bd_disk, in dasd_state_ready_to_online() 448 disk_uevent(file_bdev(device->block->bdev_file)->bd_disk, in dasd_state_online_to_ready() 3640 bdev_mark_dead(file_bdev(device->block->bdev_file), false); in dasd_generic_set_offline()
|
/linux-6.12.1/fs/nfs/blocklayout/ |
D | dev.c | 19 struct block_device *bdev = file_bdev(dev->bdev_file); in bl_unregister_scsi() 35 struct block_device *bdev = file_bdev(dev->bdev_file); in bl_register_scsi() 232 map->bdev = file_bdev(dev->bdev_file); in bl_map_simple() 314 d->len = bdev_nr_bytes(file_bdev(bdev_file)); in bl_parse_simple() 318 file_bdev(bdev_file)->bd_disk->disk_name); in bl_parse_simple() 415 bdev = file_bdev(bdev_file); in bl_parse_scsi()
|
/linux-6.12.1/drivers/block/xen-blkback/ |
D | xenbus.c | 102 err = sync_blockdev(file_bdev(blkif->vbd.bdev_file)); in xen_update_blkif_status() 504 if (file_bdev(vbd->bdev_file)->bd_disk == NULL) { in xen_vbd_create() 512 if (cdrom || disk_to_cdi(file_bdev(vbd->bdev_file)->bd_disk)) in xen_vbd_create() 514 if (file_bdev(vbd->bdev_file)->bd_disk->flags & GENHD_FL_REMOVABLE) in xen_vbd_create() 517 if (bdev_write_cache(file_bdev(bdev_file))) in xen_vbd_create() 519 if (bdev_max_secure_erase_sectors(file_bdev(bdev_file))) in xen_vbd_create() 572 struct block_device *bdev = file_bdev(be->blkif->vbd.bdev_file); in xen_blkbk_discard() 934 file_bdev(be->blkif->vbd.bdev_file))); in connect() 942 file_bdev(be->blkif->vbd.bdev_file))); in connect()
|
D | common.h | 363 #define vbd_sz(_v) bdev_nr_sectors(file_bdev((_v)->bdev_file))
|
D | blkback.c | 468 req->bdev = file_bdev(vbd->bdev_file); in xen_vbd_translate() 972 struct block_device *bdev = file_bdev(blkif->vbd.bdev_file); in dispatch_discard_io()
|
/linux-6.12.1/block/ |
D | bdev.c | 58 struct block_device *file_bdev(struct file *bdev_file) in file_bdev() function 62 EXPORT_SYMBOL(file_bdev); 860 bdev = file_bdev(bdev_file); in bdev_yield_write_access() 1043 if (bdev_read_only(file_bdev(file))) { in bdev_file_open_by_path() 1055 struct block_device *bdev = file_bdev(bdev_file); in bd_yield_claim() 1069 struct block_device *bdev = file_bdev(bdev_file); in bdev_release() 1125 struct block_device *bdev = file_bdev(bdev_file); in bdev_fput()
|
/linux-6.12.1/drivers/block/ |
D | pktcdvd.c | 343 MAJOR(file_bdev(pd->bdev_file)->bd_dev), in device_map_show() 344 MINOR(file_bdev(pd->bdev_file)->bd_dev)); in device_map_show() 441 file_bdev(pd->bdev_file)); in pkt_seq_show() 716 struct request_queue *q = bdev_get_queue(file_bdev(pd->bdev_file)); in pkt_generic_packet() 1055 bio_init(bio, file_bdev(pd->bdev_file), bio->bi_inline_vecs, 1, in pkt_gather_data() 1271 bio_init(pkt->w_bio, file_bdev(pd->bdev_file), pkt->w_bio->bi_inline_vecs, in pkt_start_write() 2176 bdev_file = bdev_file_open_by_dev(file_bdev(pd->bdev_file)->bd_dev, in pkt_open_dev() 2191 set_capacity_and_notify(file_bdev(pd->bdev_file)->bd_disk, lba << 2); in pkt_open_dev() 2193 q = bdev_get_queue(file_bdev(pd->bdev_file)); in pkt_open_dev() 2324 struct bio *cloned_bio = bio_alloc_clone(file_bdev(pd->bdev_file), bio, in pkt_make_request_read() [all …]
|
/linux-6.12.1/drivers/block/rnbd/ |
D | rnbd-srv.c | 148 bio = bio_alloc(file_bdev(sess_dev->bdev_file), 1, in process_rdma() 544 struct block_device *bdev = file_bdev(sess_dev->bdev_file); in rnbd_srv_fill_msg_open_rsp() 734 srv_dev = rnbd_srv_get_or_create_srv_dev(file_bdev(bdev_file), srv_sess, in process_msg_open() 760 ret = rnbd_srv_create_dev_sysfs(srv_dev, file_bdev(bdev_file)); in process_msg_open()
|
/linux-6.12.1/drivers/mtd/devices/ |
D | block2mtd.c | 198 sync_blockdev(file_bdev(dev->bdev_file)); in block2mtd_sync() 288 bdev = file_bdev(bdev_file); in add_device()
|
/linux-6.12.1/drivers/md/bcache/ |
D | super.c | 1451 dc->bdev = file_bdev(bdev_file); in register_bdev() 2344 ca->bdev = file_bdev(bdev_file); in register_cache() 2347 if (bdev_max_discard_sectors(file_bdev(bdev_file))) in register_cache() 2358 pr_notice("error %pg: %s\n", file_bdev(bdev_file), err); in register_cache() 2369 if (kobject_add(&ca->kobj, bdev_kobj(file_bdev(bdev_file)), "bcache")) { in register_cache() 2371 file_bdev(bdev_file)); in register_cache() 2385 pr_info("registered cache device %pg\n", file_bdev(ca->bdev_file)); in register_cache() 2550 err = read_super(sb, file_bdev(bdev_file), &sb_disk); in register_bcache() 2562 bdev_file2 = bdev_file_open_by_dev(file_bdev(bdev_file)->bd_dev, in register_bcache()
|
/linux-6.12.1/fs/ext4/ |
D | fsmap.c | 581 new_encode_dev(file_bdev(EXT4_SB(sb)->s_journal_bdev_file)->bd_dev)) in ext4_getfsmap_is_valid_device() 653 file_bdev(EXT4_SB(sb)->s_journal_bdev_file)->bd_dev); in ext4_getfsmap()
|
/linux-6.12.1/fs/jfs/ |
D | jfs_mount.c | 434 new_encode_dev(file_bdev(sbi->log->bdev_file)->bd_dev)); in updateSuper()
|
D | jfs_logmgr.c | 1073 if (file_bdev(log->bdev_file)->bd_dev == sbi->logdev) { in lmLogOpen() 1975 bio = bio_alloc(file_bdev(log->bdev_file), 1, REQ_OP_READ, GFP_NOFS); in lbmRead() 2118 bdev = file_bdev(log->bdev_file); in lbmStartIO()
|
/linux-6.12.1/fs/xfs/ |
D | xfs_super.c | 458 if (file_bdev(rtdev_file) == ddev || in xfs_open_devices() 460 file_bdev(rtdev_file) == file_bdev(logdev_file))) { in xfs_open_devices() 482 if (logdev_file && file_bdev(logdev_file) != ddev) { in xfs_open_devices()
|
/linux-6.12.1/fs/reiserfs/ |
D | procfs.c | 357 file_bdev(SB_JOURNAL(sb)->j_bdev_file), in show_journal()
|
D | journal.c | 2389 file_bdev(journal->j_bdev_file)); in journal_read() 2450 reiserfs_breada(file_bdev(journal->j_bdev_file), cur_dblock, in journal_read() 2648 file_bdev(journal->j_bdev_file)); in journal_init_dev() 2806 file_bdev(journal->j_bdev_file), in journal_init() 2830 file_bdev(journal->j_bdev_file), in journal_init()
|
D | reiserfs.h | 2813 file_bdev(SB_JOURNAL(s)->j_bdev_file), block, s->s_blocksize) 2814 #define journal_getblk(s, block) __getblk(file_bdev(SB_JOURNAL(s)->j_bdev_file),\ 2816 #define journal_bread(s, block) __bread(file_bdev(SB_JOURNAL(s)->j_bdev_file),\
|
/linux-6.12.1/fs/btrfs/ |
D | volumes.c | 483 bdev = file_bdev(*bdev_file); in btrfs_get_bdev_and_sb() 684 if (bdev_read_only(file_bdev(bdev_file))) in btrfs_open_one_device() 690 if (!bdev_nonrot(file_bdev(bdev_file))) in btrfs_open_one_device() 693 if (bdev_max_discard_sectors(file_bdev(bdev_file))) in btrfs_open_one_device() 697 device->bdev = file_bdev(bdev_file); in btrfs_open_one_device() 1412 ret = btrfs_sb_log_location_bdev(file_bdev(bdev_file), 0, READ, &bytenr); in btrfs_scan_one_device() 1418 disk_super = btrfs_read_disk_super(file_bdev(bdev_file), bytenr, in btrfs_scan_one_device() 1425 devt = file_bdev(bdev_file)->bd_dev; in btrfs_scan_one_device() 2661 if (!btrfs_check_device_zone_type(fs_info, file_bdev(bdev_file))) { in btrfs_init_new_device() 2673 sync_blockdev(file_bdev(bdev_file)); in btrfs_init_new_device() [all …]
|
/linux-6.12.1/drivers/nvme/target/ |
D | io-cmd-bdev.c | 101 ns->bdev = file_bdev(ns->bdev_file); in nvmet_bdev_ns_enable()
|
/linux-6.12.1/fs/erofs/ |
D | data.c | 193 map->m_bdev = file_bdev(dif->file); in erofs_fill_from_devinfo()
|
D | super.c | 195 dif->dax_dev = fs_dax_get_by_bdev(file_bdev(file), in erofs_init_device()
|
/linux-6.12.1/drivers/target/ |
D | target_core_pscsi.c | 1001 return bdev_nr_sectors(file_bdev(pdv->pdv_bdev_file)); in pscsi_get_blocks()
|
D | target_core_iblock.c | 127 ib_dev->ibd_bd = bd = file_bdev(bdev_file); in iblock_configure_device()
|
/linux-6.12.1/drivers/block/drbd/ |
D | drbd_nl.c | 1647 err = bd_link_disk_holder(file_bdev(file), device->vdisk); in open_backing_dev() 1667 nbc->backing_bdev = file_bdev(file); in open_backing_devices() 1688 nbc->md_bdev = file_bdev(file); in open_backing_devices() 1699 bd_unlink_disk_holder(file_bdev(bdev_file), device->vdisk); in close_backing_dev()
|