Home
last modified time | relevance | path

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

12

/Linux-v6.6/drivers/s390/block/
Ddasd_genhd.c133 bdev = blkdev_get_by_dev(disk_devt(block->gdp), BLK_OPEN_READ, NULL, in dasd_scan_partitions()
/Linux-v6.6/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-v6.6/drivers/md/
Ddm-verity-target.c1199 if ((dm_table_get_mode(ti->table) & ~BLK_OPEN_READ)) { in verity_ctr()
1228 r = dm_get_device(ti, argv[1], BLK_OPEN_READ, &v->data_dev); in verity_ctr()
1234 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.c610 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-v6.6/drivers/mtd/devices/
Dblock2mtd.c264 const blk_mode_t mode = BLK_OPEN_READ | BLK_OPEN_WRITE; in add_device()
/Linux-v6.6/drivers/nvme/target/
Dio-cmd-bdev.c88 BLK_OPEN_READ | BLK_OPEN_WRITE, NULL, NULL); in nvmet_bdev_ns_enable()
/Linux-v6.6/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-v6.6/drivers/block/rnbd/
Drnbd-srv.c680 blk_mode_t open_flags = BLK_OPEN_READ; in process_msg_open()
/Linux-v6.6/block/
Dbdev.c762 ((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.c510 disk_scan_partitions(disk, BLK_OPEN_READ); in device_add_disk()
/Linux-v6.6/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()
Dpktcdvd.c2170 bdev = blkdev_get_by_dev(pd->bdev->bd_dev, BLK_OPEN_READ, pd, NULL); in pkt_open_dev()
2516 bdev = blkdev_get_by_dev(dev, BLK_OPEN_READ | BLK_OPEN_NDELAY, NULL, in pkt_new_dev()
/Linux-v6.6/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-v6.6/fs/btrfs/
Dsuper.c2199 device = btrfs_scan_one_device(vol->name, BLK_OPEN_READ); in btrfs_control_ioctl()
2213 device = btrfs_scan_one_device(vol->name, BLK_OPEN_READ); in btrfs_control_ioctl()
/Linux-v6.6/fs/erofs/
Dsuper.c254 bdev = blkdev_get_by_path(dif->path, BLK_OPEN_READ, sb->s_type, in erofs_init_device()
/Linux-v6.6/drivers/block/xen-blkback/
Dxenbus.c495 BLK_OPEN_READ : BLK_OPEN_WRITE, NULL, NULL); in xen_vbd_create()
/Linux-v6.6/kernel/power/
Dswap.c1525 hib_resume_bdev = blkdev_get_by_dev(swsusp_resume_device, BLK_OPEN_READ, in swsusp_check()

12