/kernel/linux/linux-5.10/fs/ |
D | file_table.c | 202 if ((file->f_mode & FMODE_READ) && in alloc_file() 210 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in alloc_file() 288 if ((mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in __fput()
|
D | pipe.c | 662 if (filp->f_mode & FMODE_READ) in pipe_poll() 676 if (filp->f_mode & FMODE_READ) { in pipe_poll() 718 if (file->f_mode & FMODE_READ) in pipe_release() 743 if (filp->f_mode & FMODE_READ) in pipe_fasync() 747 if (retval < 0 && (filp->f_mode & FMODE_READ)) in pipe_fasync() 1127 switch (filp->f_mode & (FMODE_READ | FMODE_WRITE)) { in fifo_open() 1128 case FMODE_READ: in fifo_open() 1170 case FMODE_READ | FMODE_WRITE: in fifo_open()
|
D | kernel_read_file.c | 181 if (!f.file || !(f.file->f_mode & FMODE_READ)) in kernel_read_file_from_fd()
|
D | read_write.c | 435 if (WARN_ON_ONCE(!(file->f_mode & FMODE_READ))) in __kernel_read() 475 if (!(file->f_mode & FMODE_READ)) in vfs_read() 783 if (!(file->f_mode & FMODE_READ)) in do_iter_read() 813 if (!(file->f_mode & FMODE_READ)) in vfs_iocb_iter_read() 1198 if (!(in.file->f_mode & FMODE_READ)) in do_sendfile() 1675 if (!(file_in->f_mode & FMODE_READ) || in generic_file_rw_checks()
|
/kernel/linux/linux-5.10/drivers/s390/block/ |
D | dasd_genhd.c | 104 bdev = blkdev_get_by_dev(disk_devt(block->gdp), FMODE_READ, NULL); in dasd_scan_partitions() 153 blkdev_put(bdev, FMODE_READ); in dasd_destroy_partitions()
|
/kernel/linux/linux-5.10/fs/nfs/blocklayout/ |
D | dev.c | 38 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE); in bl_free_device() 246 bdev = blkdev_get_by_dev(dev, FMODE_READ | FMODE_WRITE, NULL); in bl_parse_simple() 319 bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); in bl_open_udev_path() 346 bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); in bl_open_dm_mpath_udev_path() 396 blkdev_put(d->bdev, FMODE_READ | FMODE_WRITE); in bl_parse_scsi()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | bpf-script-test-prologue.c | 23 #define FMODE_READ 0x1 macro
|
/kernel/linux/linux-5.10/drivers/md/ |
D | md-autodetect.c | 172 bdev = blkdev_get_by_dev(mdev, FMODE_READ, NULL); in md_setup_drive() 234 blkdev_put(bdev, FMODE_READ); in md_setup_drive()
|
/kernel/linux/linux-5.10/drivers/hyperhold/ |
D | hp_device.c | 39 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in unbind_bdev() 65 dev->bdev = blkdev_get_by_dev(inode->i_rdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL, dev); in bind_bdev()
|
/kernel/linux/linux-5.10/drivers/sbus/char/ |
D | openprom.c | 582 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl() 598 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl() 610 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl() 619 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | read.c | 43 p->rw_mode = FMODE_READ; in nfs_readhdr_alloc() 343 ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpage() 429 desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpages()
|
D | delegation.h | 88 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ) && in nfs_have_delegated_attributes()
|
D | nfs4proc.c | 294 if (!inode || !nfs4_have_delegation(inode, FMODE_READ)) in nfs4_bitmap_copy_adjust() 1210 FMODE_READ)) in nfs4_update_changeattr_locked() 1257 return ctx->mode & (FMODE_READ|FMODE_WRITE|FMODE_EXEC); in _nfs4_ctx_to_accessmode() 1262 fmode_t ret = ctx->mode & (FMODE_READ|FMODE_WRITE); in _nfs4_ctx_to_openmode() 1264 return (ctx->mode & FMODE_EXEC) ? FMODE_READ | ret : ret; in _nfs4_ctx_to_openmode() 1273 switch (fmode & (FMODE_READ | FMODE_WRITE)) { in nfs4_map_atomic_open_share() 1274 case FMODE_READ: in nfs4_map_atomic_open_share() 1280 case FMODE_READ|FMODE_WRITE: in nfs4_map_atomic_open_share() 1357 p->o_arg.fmode = fmode & (FMODE_READ|FMODE_WRITE); in nfs4_opendata_alloc() 1464 switch(fmode & (FMODE_READ|FMODE_WRITE)) { in nfs4_mode_match_open_stateid() [all …]
|
D | nfs4file.c | 355 filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, FMODE_READ, in __nfs42_ssc_open() 361 filep->f_mode |= FMODE_READ; in __nfs42_ssc_open()
|
D | file.c | 306 if (file->f_mode & FMODE_READ) in nfs_want_read_modify_write() 687 if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) in do_getlk() 770 if (!NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) { in do_setlk()
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | hostaudio_kern.c | 193 if (file->f_mode & FMODE_READ) in hostaudio_open() 254 if (file->f_mode & FMODE_READ) in hostmixer_open_mixdev()
|
/kernel/liteos_a/fs/proc/include/ |
D | proc_fs.h | 82 #define FMODE_READ ((fmode_t)0x1) macro
|
/kernel/linux/linux-5.10/drivers/char/xillybus/ |
D | xillybus_core.c | 1448 if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers)) in xillybus_open() 1454 if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && in xillybus_open() 1476 if (filp->f_mode & FMODE_READ) { in xillybus_open() 1488 if ((filp->f_mode & FMODE_READ) && in xillybus_open() 1502 if (filp->f_mode & FMODE_READ) { in xillybus_open() 1552 if (filp->f_mode & FMODE_READ) in xillybus_open() 1591 if (filp->f_mode & FMODE_READ) { in xillybus_release()
|
/kernel/linux/linux-5.10/kernel/power/ |
D | hibernate.c | 691 swsusp_close(FMODE_READ | FMODE_EXCL); in load_image_and_restore() 981 swsusp_close(FMODE_READ | FMODE_EXCL); in software_resume() 1016 swsusp_close(FMODE_READ | FMODE_EXCL); in software_resume()
|
/kernel/linux/linux-5.10/drivers/char/ |
D | apm-emulation.c | 368 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
|
/kernel/linux/linux-5.10/drivers/mtd/devices/ |
D | block2mtd.c | 209 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device() 222 const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in add_device()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | tty_jobctrl.c | 149 if (filp->f_mode & FMODE_READ) in tty_open_proc_set_tty() 382 if ((file->f_mode & FMODE_READ) == 0 && !capable(CAP_SYS_ADMIN)) { in tiocsctty()
|
/kernel/linux/linux-5.10/fs/pstore/ |
D | blk.c | 233 fmode_t mode = FMODE_READ | FMODE_WRITE; in psblk_get_bdev() 276 fmode_t mode = FMODE_READ | FMODE_WRITE; in psblk_put_bdev()
|
/kernel/linux/linux-5.10/drivers/nvme/target/ |
D | io-cmd-bdev.c | 71 FMODE_READ | FMODE_WRITE, NULL); in nvmet_bdev_ns_enable() 95 blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); in nvmet_bdev_ns_disable()
|
/kernel/linux/linux-5.10/drivers/target/ |
D | target_core_iblock.c | 93 mode = FMODE_READ|FMODE_EXCL; in iblock_configure_device() 162 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_configure_device() 187 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_destroy_device()
|