/linux-6.6.21/kernel/trace/ |
D | trace_recursion_record.c | 196 if (file->f_mode & FMODE_READ) in recursed_function_open() 212 if (file->f_mode & FMODE_READ) in recursed_function_release()
|
/linux-6.6.21/drivers/platform/x86/amd/ |
D | hsmp.c | 274 switch (fp->f_mode & (FMODE_WRITE | FMODE_READ)) { in hsmp_ioctl() 283 case FMODE_READ: in hsmp_ioctl() 291 case FMODE_READ | FMODE_WRITE: in hsmp_ioctl()
|
/linux-6.6.21/fs/ |
D | pipe.c | 663 if (filp->f_mode & FMODE_READ) in pipe_poll() 677 if (filp->f_mode & FMODE_READ) { in pipe_poll() 719 if (file->f_mode & FMODE_READ) in pipe_release() 744 if (filp->f_mode & FMODE_READ) in pipe_fasync() 748 if (retval < 0 && (filp->f_mode & FMODE_READ)) in pipe_fasync() 1133 switch (filp->f_mode & (FMODE_READ | FMODE_WRITE)) { in fifo_open() 1134 case FMODE_READ: in fifo_open() 1176 case FMODE_READ | FMODE_WRITE: in fifo_open()
|
D | file_table.c | 304 if ((file->f_mode & FMODE_READ) && in alloc_file() 313 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in alloc_file()
|
D | internal.h | 100 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in put_file_access()
|
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 | 414 if (WARN_ON_ONCE(!(file->f_mode & FMODE_READ))) in __kernel_read() 454 if (!(file->f_mode & FMODE_READ)) in vfs_read() 782 if (!(file->f_mode & FMODE_READ)) in do_iter_read() 812 if (!(file->f_mode & FMODE_READ)) in vfs_iocb_iter_read() 1198 if (!(in.file->f_mode & FMODE_READ)) in do_sendfile() 1714 if (!(file_in->f_mode & FMODE_READ) || in generic_file_rw_checks()
|
D | splice.c | 969 if (unlikely(!(in->f_mode & FMODE_READ))) in vfs_splice_read() 1251 if (unlikely(!(in->f_mode & FMODE_READ) || in do_splice() 1507 } else if (f.file->f_mode & FMODE_READ) { in vmsplice_type() 1907 if (unlikely(!(in->f_mode & FMODE_READ) || in do_tee()
|
/linux-6.6.21/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()
|
/linux-6.6.21/arch/um/drivers/ |
D | hostaudio_kern.c | 191 if (file->f_mode & FMODE_READ) in hostaudio_open() 252 if (file->f_mode & FMODE_READ) in hostmixer_open_mixdev()
|
/linux-6.6.21/drivers/char/xillybus/ |
D | xillybus_core.c | 1451 if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers)) in xillybus_open() 1457 if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && in xillybus_open() 1479 if (filp->f_mode & FMODE_READ) { in xillybus_open() 1491 if ((filp->f_mode & FMODE_READ) && in xillybus_open() 1505 if (filp->f_mode & FMODE_READ) { in xillybus_open() 1555 if (filp->f_mode & FMODE_READ) in xillybus_open() 1594 if (filp->f_mode & FMODE_READ) { in xillybus_release()
|
D | xillyusb.c | 1269 if (((filp->f_mode & FMODE_READ) && !chan->readable) || in xillyusb_open() 1273 if ((filp->f_flags & O_NONBLOCK) && (filp->f_mode & FMODE_READ) && in xillyusb_open() 1289 if (((filp->f_mode & FMODE_READ) && chan->open_for_read) || in xillyusb_open() 1293 if (filp->f_mode & FMODE_READ) in xillyusb_open() 1341 if (filp->f_mode & FMODE_READ) { in xillyusb_open() 1416 if (filp->f_mode & FMODE_READ) in xillyusb_open() 1715 if (filp->f_mode & FMODE_READ) { in xillyusb_release()
|
/linux-6.6.21/fs/nfs/ |
D | delegation.h | 88 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ); in nfs_have_delegated_attributes()
|
D | read.c | 44 p->rw_mode = FMODE_READ; in nfs_readhdr_alloc() 413 ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readahead()
|
D | nfs4proc.c | 296 if (!inode || !nfs4_have_delegation(inode, FMODE_READ)) in nfs4_bitmap_copy_adjust() 1242 if (!NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) in nfs4_update_changeattr_locked() 1287 return ctx->mode & (FMODE_READ|FMODE_WRITE|FMODE_EXEC); in _nfs4_ctx_to_accessmode() 1292 fmode_t ret = ctx->mode & (FMODE_READ|FMODE_WRITE); in _nfs4_ctx_to_openmode() 1294 return (ctx->mode & FMODE_EXEC) ? FMODE_READ | ret : ret; in _nfs4_ctx_to_openmode() 1303 switch (fmode & (FMODE_READ | FMODE_WRITE)) { in nfs4_map_atomic_open_share() 1304 case FMODE_READ: in nfs4_map_atomic_open_share() 1310 case FMODE_READ|FMODE_WRITE: in nfs4_map_atomic_open_share() 1386 p->o_arg.fmode = fmode & (FMODE_READ|FMODE_WRITE); in nfs4_opendata_alloc() 1483 switch(fmode & (FMODE_READ|FMODE_WRITE)) { in nfs4_mode_match_open_stateid() [all …]
|
D | file.c | 325 if (file->f_mode & FMODE_READ) in nfs_want_read_modify_write() 734 if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) in do_getlk() 817 if (!NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) { in do_setlk()
|
D | nfs42proc.c | 338 src_lock->open_context, src_lock, FMODE_READ); in _nfs42_proc_copy() 607 FMODE_READ); in _nfs42_proc_copy_notify() 685 lock, FMODE_READ); in _nfs42_proc_llseek() 1074 src_lock, FMODE_READ); in _nfs42_proc_clone()
|
D | delegation.c | 112 flags &= FMODE_READ|FMODE_WRITE; in nfs4_do_check_delegation() 902 if ((delegation->type == (FMODE_READ|FMODE_WRITE)) && !(flags & FMODE_WRITE)) in nfs_mark_return_unused_delegation_types() 1435 flags &= FMODE_READ|FMODE_WRITE; in nfs4_copy_delegation_stateid()
|
/linux-6.6.21/security/apparmor/include/ |
D | file.h | 151 if (file->f_mode & FMODE_READ) in aa_map_file_to_perms()
|
/linux-6.6.21/drivers/char/ |
D | apm-emulation.c | 368 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
|
/linux-6.6.21/drivers/tty/ |
D | tty_jobctrl.c | 153 if (filp->f_mode & FMODE_READ) in tty_open_proc_set_tty() 402 if ((file->f_mode & FMODE_READ) == 0 && !capable(CAP_SYS_ADMIN)) { in tiocsctty()
|
/linux-6.6.21/arch/x86/kernel/ |
D | msr.c | 157 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl()
|
/linux-6.6.21/fs/hostfs/ |
D | hostfs_kern.c | 302 mode = file->f_mode & (FMODE_READ | FMODE_WRITE); in hostfs_open() 311 if (mode & FMODE_READ) in hostfs_open() 619 HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; in hostfs_create()
|
/linux-6.6.21/sound/isa/msnd/ |
D | msnd.c | 218 if ((file ? file->f_mode : chip->mode) & FMODE_READ) { in snd_msnd_dsp_halt() 225 chip->mode &= ~FMODE_READ; in snd_msnd_dsp_halt()
|
/linux-6.6.21/fs/verity/ |
D | enable.c | 358 if (!(filp->f_mode & FMODE_READ)) in fsverity_ioctl_enable()
|