/linux-6.6.21/block/ |
D | ioctl.c | 96 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()
|
D | bdev.c | 765 ((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()
|
D | blk-zoned.c | 393 if (!(mode & BLK_OPEN_WRITE)) in blkdev_zone_mgmt_ioctl()
|
D | fops.c | 552 mode |= BLK_OPEN_WRITE; in file_to_blk_mode()
|
/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/block/ |
D | swim.c | 640 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open() 643 if ((mode & BLK_OPEN_WRITE) && fs->write_protected) { in floppy_open()
|
D | loop.c | 1051 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()
|
D | swim3.c | 964 (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE))) { in floppy_open() 971 if (err == 0 && (mode & BLK_OPEN_WRITE)) { in floppy_open()
|
D | ataflop.c | 1939 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open() 1942 if (mode & BLK_OPEN_WRITE) { in floppy_open()
|
D | amiflop.c | 1675 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { in floppy_open() 1677 if (mode & BLK_OPEN_WRITE) { in floppy_open()
|
D | floppy.c | 3432 !(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/ |
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/drivers/nvme/host/ |
D | ioctl.c | 718 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/ |
D | block.c | 249 if (mode & BLK_OPEN_WRITE) { in ubiblock_open()
|
/linux-6.6.21/include/linux/ |
D | blkdev.h | 120 #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/ |
D | mtd_blkdevs.c | 211 dev->writable = mode & BLK_OPEN_WRITE; in blktrans_open()
|
/linux-6.6.21/drivers/md/ |
D | dm-ioctl.c | 871 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()
|
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-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()
|
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()
|
/linux-6.6.21/drivers/scsi/ |
D | sr.c | 546 ret = scsi_ioctl(sdev, mode & BLK_OPEN_WRITE, cmd, argp); in sr_block_ioctl()
|
/linux-6.6.21/drivers/block/rnbd/ |
D | rnbd-srv.c | 688 open_flags |= BLK_OPEN_WRITE; in process_msg_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 | 115 mode |= BLK_OPEN_WRITE; in iblock_configure_device()
|