Home
last modified time | relevance | path

Searched refs:BLK_OPEN_READ (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.6.21/drivers/s390/block/
Ddasd_genhd.c133 bdev = blkdev_get_by_dev(disk_devt(block->gdp), BLK_OPEN_READ, NULL, in dasd_scan_partitions()
/linux-6.6.21/fs/nfs/blocklayout/
Ddev.c246 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/
Ddm-verity-target.c1241 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()
Ddm-clone-target.c1687 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()
Ddm-era-target.c1485 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()
Ddm-verity-fec.c611 r = dm_get_device(ti, arg_value, BLK_OPEN_READ, &v->fec->dev); in verity_fec_parse_opt_args()
Ddm-cache-target.c2055 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()
Ddm-ioctl.c1390 blk_mode_t mode = BLK_OPEN_READ | BLK_OPEN_WRITE; in get_mode()
1393 mode = BLK_OPEN_READ; in get_mode()
Ddm-thin.c3331 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/
Dblock2mtd.c264 const blk_mode_t mode = BLK_OPEN_READ | BLK_OPEN_WRITE; in add_device()
/linux-6.6.21/drivers/nvme/target/
Dio-cmd-bdev.c88 BLK_OPEN_READ | BLK_OPEN_WRITE, NULL, NULL); in nvmet_bdev_ns_enable()
/linux-6.6.21/include/linux/
Dblkdev.h118 #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/
Dbdev.c764 ((mode & BLK_OPEN_READ) ? DEVCG_ACC_READ : 0) | in blkdev_get_by_dev()
Dfops.c550 mode |= BLK_OPEN_READ; in file_to_blk_mode()
Dgenhd.c512 disk_scan_partitions(disk, BLK_OPEN_READ); in device_add_disk()
/linux-6.6.21/drivers/block/rnbd/
Drnbd-srv.c681 blk_mode_t open_flags = BLK_OPEN_READ; in process_msg_open()
/linux-6.6.21/drivers/block/
Dswim.c640 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open()
Dswim3.c964 (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE))) { in floppy_open()
/linux-6.6.21/drivers/target/
Dtarget_core_pscsi.c369 bd = blkdev_get_by_path(dev->udev_path, BLK_OPEN_WRITE | BLK_OPEN_READ, in pscsi_create_type_disk()
Dtarget_core_iblock.c96 blk_mode_t mode = BLK_OPEN_READ; in iblock_configure_device()
/linux-6.6.21/fs/btrfs/
Dsuper.c2202 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/
Dsuper.c201 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/
Dxenbus.c495 BLK_OPEN_READ : BLK_OPEN_WRITE, NULL, NULL); in xen_vbd_create()
/linux-6.6.21/kernel/power/
Dswap.c1525 hib_resume_bdev = blkdev_get_by_dev(swsusp_resume_device, BLK_OPEN_READ, in swsusp_check()
/linux-6.6.21/drivers/md/bcache/
Dsuper.c2552 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()

12