/linux-6.6.21/drivers/s390/block/ |
D | dasd_genhd.c | 133 bdev = blkdev_get_by_dev(disk_devt(block->gdp), BLK_OPEN_READ, NULL, in dasd_scan_partitions()
|
/linux-6.6.21/fs/nfs/blocklayout/ |
D | dev.c | 246 bdev = blkdev_get_by_dev(dev, BLK_OPEN_READ | BLK_OPEN_WRITE, NULL, in bl_parse_simple() 316 bdev = blkdev_get_by_path(devname, BLK_OPEN_READ | BLK_OPEN_WRITE, NULL, in bl_open_path()
|
/linux-6.6.21/drivers/md/ |
D | dm-verity-target.c | 1241 if ((dm_table_get_mode(ti->table) & ~BLK_OPEN_READ)) { in verity_ctr() 1270 r = dm_get_device(ti, argv[1], BLK_OPEN_READ, &v->data_dev); in verity_ctr() 1276 r = dm_get_device(ti, argv[2], BLK_OPEN_READ, &v->hash_dev); in verity_ctr()
|
D | dm-clone-target.c | 1687 BLK_OPEN_READ | BLK_OPEN_WRITE, &clone->metadata_dev); in parse_metadata_dev() 1707 BLK_OPEN_READ | BLK_OPEN_WRITE, &clone->dest_dev); in parse_dest_dev() 1728 r = dm_get_device(clone->ti, dm_shift_arg(as), BLK_OPEN_READ, in parse_source_dev()
|
D | dm-era-target.c | 1485 r = dm_get_device(ti, argv[0], BLK_OPEN_READ | BLK_OPEN_WRITE, in era_ctr() 1493 r = dm_get_device(ti, argv[1], BLK_OPEN_READ | BLK_OPEN_WRITE, in era_ctr()
|
D | dm-verity-fec.c | 611 r = dm_get_device(ti, arg_value, BLK_OPEN_READ, &v->fec->dev); in verity_fec_parse_opt_args()
|
D | dm-cache-target.c | 2055 BLK_OPEN_READ | BLK_OPEN_WRITE, &ca->metadata_dev); in parse_metadata_dev() 2078 BLK_OPEN_READ | BLK_OPEN_WRITE, &ca->cache_dev); in parse_cache_dev() 2097 BLK_OPEN_READ | BLK_OPEN_WRITE, &ca->origin_dev); in parse_origin_dev()
|
D | dm-ioctl.c | 1390 blk_mode_t mode = BLK_OPEN_READ | BLK_OPEN_WRITE; in get_mode() 1393 mode = BLK_OPEN_READ; in get_mode()
|
D | dm-thin.c | 3331 metadata_mode = BLK_OPEN_READ | in pool_ctr() 3340 r = dm_get_device(ti, argv[1], BLK_OPEN_READ | BLK_OPEN_WRITE, &data_dev); in pool_ctr() 4220 r = dm_get_device(ti, argv[2], BLK_OPEN_READ, &origin_dev); in thin_ctr()
|
/linux-6.6.21/drivers/mtd/devices/ |
D | block2mtd.c | 264 const blk_mode_t mode = BLK_OPEN_READ | BLK_OPEN_WRITE; in add_device()
|
/linux-6.6.21/drivers/nvme/target/ |
D | io-cmd-bdev.c | 88 BLK_OPEN_READ | BLK_OPEN_WRITE, NULL, NULL); in nvmet_bdev_ns_enable()
|
/linux-6.6.21/include/linux/ |
D | blkdev.h | 118 #define BLK_OPEN_READ ((__force blk_mode_t)(1 << 0)) macro 1480 (BLK_OPEN_READ | (((flags) & SB_RDONLY) ? 0 : BLK_OPEN_WRITE))
|
/linux-6.6.21/block/ |
D | bdev.c | 764 ((mode & BLK_OPEN_READ) ? DEVCG_ACC_READ : 0) | in blkdev_get_by_dev()
|
D | fops.c | 550 mode |= BLK_OPEN_READ; in file_to_blk_mode()
|
D | genhd.c | 512 disk_scan_partitions(disk, BLK_OPEN_READ); in device_add_disk()
|
/linux-6.6.21/drivers/block/rnbd/ |
D | rnbd-srv.c | 681 blk_mode_t open_flags = BLK_OPEN_READ; in process_msg_open()
|
/linux-6.6.21/drivers/block/ |
D | swim.c | 640 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open()
|
D | swim3.c | 964 (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE))) { in floppy_open()
|
/linux-6.6.21/drivers/target/ |
D | target_core_pscsi.c | 369 bd = blkdev_get_by_path(dev->udev_path, BLK_OPEN_WRITE | BLK_OPEN_READ, in pscsi_create_type_disk()
|
D | target_core_iblock.c | 96 blk_mode_t mode = BLK_OPEN_READ; in iblock_configure_device()
|
/linux-6.6.21/fs/btrfs/ |
D | super.c | 2202 device = btrfs_scan_one_device(vol->name, BLK_OPEN_READ); in btrfs_control_ioctl() 2216 device = btrfs_scan_one_device(vol->name, BLK_OPEN_READ); in btrfs_control_ioctl()
|
/linux-6.6.21/fs/erofs/ |
D | super.c | 201 bdev = blkdev_get_by_path(dif->path, BLK_OPEN_READ, sb->s_type, in erofs_init_device()
|
/linux-6.6.21/drivers/block/xen-blkback/ |
D | xenbus.c | 495 BLK_OPEN_READ : BLK_OPEN_WRITE, NULL, NULL); in xen_vbd_create()
|
/linux-6.6.21/kernel/power/ |
D | swap.c | 1525 hib_resume_bdev = blkdev_get_by_dev(swsusp_resume_device, BLK_OPEN_READ, in swsusp_check()
|
/linux-6.6.21/drivers/md/bcache/ |
D | super.c | 2552 bdev = blkdev_get_by_path(strim(path), BLK_OPEN_READ, NULL, NULL); in register_bcache() 2572 bdev2 = blkdev_get_by_dev(bdev->bd_dev, BLK_OPEN_READ | BLK_OPEN_WRITE, in register_bcache()
|