Home
last modified time | relevance | path

Searched refs:BLK_OPEN_WRITE (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.6.21/block/
Dioctl.c96 if (!(mode & BLK_OPEN_WRITE)) in blk_ioctl_discard()
133 if (!(mode & BLK_OPEN_WRITE)) in blk_ioctl_secure_erase()
165 if (!(mode & BLK_OPEN_WRITE)) in blk_ioctl_zeroout()
272 return mode & BLK_OPEN_WRITE; in blkdev_pr_allowed()
Dbdev.c765 ((mode & BLK_OPEN_WRITE) ? DEVCG_ACC_WRITE : 0)); in blkdev_get_by_dev()
810 if ((mode & BLK_OPEN_WRITE) && !bdev->bd_write_holder && in blkdev_get_by_dev()
863 if (!IS_ERR(bdev) && (mode & BLK_OPEN_WRITE) && bdev_read_only(bdev)) { in blkdev_get_by_path()
Dblk-zoned.c393 if (!(mode & BLK_OPEN_WRITE)) in blkdev_zone_mgmt_ioctl()
Dfops.c552 mode |= BLK_OPEN_WRITE; in file_to_blk_mode()
/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/block/
Dswim.c640 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open()
643 if ((mode & BLK_OPEN_WRITE) && fs->write_protected) { in floppy_open()
Dloop.c1051 if (!(file->f_mode & FMODE_WRITE) || !(mode & BLK_OPEN_WRITE) || in loop_configure()
1564 if ((mode & BLK_OPEN_WRITE) || capable(CAP_SYS_ADMIN)) in lo_ioctl()
1571 if ((mode & BLK_OPEN_WRITE) || capable(CAP_SYS_ADMIN)) in lo_ioctl()
1579 if (!(mode & BLK_OPEN_WRITE) && !capable(CAP_SYS_ADMIN)) in lo_ioctl()
Dswim3.c964 (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE))) { in floppy_open()
971 if (err == 0 && (mode & BLK_OPEN_WRITE)) { in floppy_open()
Dataflop.c1939 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open()
1942 if (mode & BLK_OPEN_WRITE) { in floppy_open()
Damiflop.c1675 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open()
1677 if (mode & BLK_OPEN_WRITE) { in floppy_open()
Dfloppy.c3432 !(mode & (BLK_OPEN_WRITE | BLK_OPEN_WRITE_IOCTL))) || in fd_locked_ioctl()
3668 if (!(mode & (BLK_OPEN_WRITE | BLK_OPEN_WRITE_IOCTL))) in compat_set_geometry()
4054 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open()
4066 if ((mode & BLK_OPEN_WRITE) && in floppy_open()
/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/drivers/nvme/host/
Dioctl.c718 bool open_for_write = mode & BLK_OPEN_WRITE; in nvme_ioctl()
822 bool open_for_write = mode & BLK_OPEN_WRITE; in nvme_ns_head_ioctl()
/linux-6.6.21/drivers/mtd/ubi/
Dblock.c249 if (mode & BLK_OPEN_WRITE) { in ubiblock_open()
/linux-6.6.21/include/linux/
Dblkdev.h120 #define BLK_OPEN_WRITE ((__force blk_mode_t)(1 << 1)) macro
1480 (BLK_OPEN_READ | (((flags) & SB_RDONLY) ? 0 : BLK_OPEN_WRITE))
/linux-6.6.21/drivers/mtd/
Dmtd_blkdevs.c211 dev->writable = mode & BLK_OPEN_WRITE; in blktrans_open()
/linux-6.6.21/drivers/md/
Ddm-ioctl.c871 if (!(dm_table_get_mode(table) & BLK_OPEN_WRITE)) in __dev_status()
1199 if (dm_table_get_mode(new_map) & BLK_OPEN_WRITE) in do_resume()
1390 blk_mode_t mode = BLK_OPEN_READ | BLK_OPEN_WRITE; in get_mode()
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-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()
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()
/linux-6.6.21/drivers/scsi/
Dsr.c546 ret = scsi_ioctl(sdev, mode & BLK_OPEN_WRITE, cmd, argp); in sr_block_ioctl()
/linux-6.6.21/drivers/block/rnbd/
Drnbd-srv.c688 open_flags |= BLK_OPEN_WRITE; in process_msg_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.c115 mode |= BLK_OPEN_WRITE; in iblock_configure_device()

12