/linux/fs/nfs/ |
H A D | delegation.h | 100 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ, 0); in nfs_have_read_or_write_delegation() 110 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ, 0); in nfs_have_delegated_attributes() 115 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ, in nfs_have_delegated_atime()
|
H A D | nfs4proc.c | 1325 return ctx->mode & (FMODE_READ|FMODE_WRITE|FMODE_EXEC); in _nfs4_ctx_to_accessmode() 1330 fmode_t ret = ctx->mode & (FMODE_READ|FMODE_WRITE); in _nfs4_ctx_to_openmode() 1332 return (ctx->mode & FMODE_EXEC) ? FMODE_READ | ret : ret; in _nfs4_ctx_to_openmode() 1340 switch (fmode & (FMODE_READ | FMODE_WRITE)) { in nfs4_fmode_to_share_access() 1341 case FMODE_READ: in nfs4_fmode_to_share_access() 1347 case FMODE_READ|FMODE_WRITE: in nfs4_fmode_to_share_access() 1439 p->o_arg.fmode = fmode & (FMODE_READ|FMODE_WRITE); in nfs4_opendata_alloc() 1536 switch(fmode & (FMODE_READ|FMODE_WRITE)) { in nfs4_mode_match_open_stateid() 1537 case FMODE_READ|FMODE_WRITE: in nfs4_mode_match_open_stateid() 1541 case FMODE_READ: in nfs4_mode_match_open_stateid() [all …]
|
H A D | read.c | 45 p->rw_mode = FMODE_READ; in nfs_readhdr_alloc() 429 ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readahead()
|
H A 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()
|
H A D | localio.c | 228 if (mode & ~(FMODE_READ | FMODE_WRITE)) in nfs_local_open_fh() 615 case FMODE_READ: in nfs_local_doio()
|
H A D | delegation.c | 111 type &= FMODE_READ|FMODE_WRITE; in nfs4_do_check_delegation() 919 if ((delegation->type == (FMODE_READ|FMODE_WRITE)) && !(flags & FMODE_WRITE)) in nfs_mark_return_unused_delegation_types() 1459 flags &= FMODE_READ|FMODE_WRITE; in nfs4_copy_delegation_stateid()
|
/linux/kernel/trace/ |
H A 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/drivers/platform/x86/amd/hsmp/ |
H A D | hsmp.c | 258 switch (fp->f_mode & (FMODE_WRITE | FMODE_READ)) { in hsmp_ioctl() 267 case FMODE_READ: in hsmp_ioctl() 275 case FMODE_READ | FMODE_WRITE: in hsmp_ioctl()
|
/linux/fs/ |
H A D | pipe.c | 672 if (filp->f_mode & FMODE_READ) in pipe_poll() 686 if (filp->f_mode & FMODE_READ) { in pipe_poll() 728 if (file->f_mode & FMODE_READ) in pipe_release() 753 if (filp->f_mode & FMODE_READ) in pipe_fasync() 757 if (retval < 0 && (filp->f_mode & FMODE_READ)) in pipe_fasync() 1145 switch (filp->f_mode & (FMODE_READ | FMODE_WRITE)) { in fifo_open() 1146 case FMODE_READ: in fifo_open() 1188 case FMODE_READ | FMODE_WRITE: in fifo_open()
|
H A D | file_table.c | 320 if ((file->f_mode & FMODE_READ) && in file_init_path() 329 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in file_init_path()
|
H A D | internal.h | 114 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in put_file_access()
|
H A D | read_write.c | 509 if (WARN_ON_ONCE(!(file->f_mode & FMODE_READ))) in __kernel_read() 549 if (!(file->f_mode & FMODE_READ)) in vfs_read() 869 if (!(file->f_mode & FMODE_READ)) in vfs_iocb_iter_read() 897 if (!(file->f_mode & FMODE_READ)) in vfs_iter_read() 992 if (!(file->f_mode & FMODE_READ)) in vfs_readv() 1311 if (!(fd_file(in)->f_mode & FMODE_READ)) in do_sendfile() 1784 if (!(file_in->f_mode & FMODE_READ) || in generic_file_rw_checks()
|
H A D | kernel_read_file.c | 180 if (fd_empty(f) || !(fd_file(f)->f_mode & FMODE_READ)) in kernel_read_file_from_fd()
|
H A D | splice.c | 965 if (unlikely(!(in->f_mode & FMODE_READ))) in do_splice_read() 1313 if (unlikely(!(in->f_mode & FMODE_READ) || in do_splice() 1600 else if (fd_file(f)->f_mode & FMODE_READ) in SYSCALL_DEFINE4() 1956 if (unlikely(!(in->f_mode & FMODE_READ) || in do_tee()
|
/linux/drivers/sbus/char/ |
H A 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/arch/um/drivers/ |
H A 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()
|
/linux/drivers/char/xillybus/ |
H A 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()
|
H A D | xillyusb.c | 1266 if (((filp->f_mode & FMODE_READ) && !chan->readable) || in xillyusb_open() 1270 if ((filp->f_flags & O_NONBLOCK) && (filp->f_mode & FMODE_READ) && in xillyusb_open() 1286 if (((filp->f_mode & FMODE_READ) && chan->open_for_read) || in xillyusb_open() 1290 if (filp->f_mode & FMODE_READ) in xillyusb_open() 1338 if (filp->f_mode & FMODE_READ) { in xillyusb_open() 1413 if (filp->f_mode & FMODE_READ) in xillyusb_open() 1712 if (filp->f_mode & FMODE_READ) { in xillyusb_release()
|
/linux/security/apparmor/include/ |
H A D | file.h | 114 if (file->f_mode & FMODE_READ) in aa_map_file_to_perms()
|
/linux/fs/nfsd/ |
H A D | localio.c | 77 if (fmode & FMODE_READ) in nfsd_open_local_fh()
|
/linux/drivers/char/ |
H A D | apm-emulation.c | 368 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
|
/linux/drivers/tty/ |
H A 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/arch/x86/kernel/ |
H A D | msr.c | 157 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl()
|
/linux/fs/hostfs/ |
H A D | hostfs_kern.c | 317 mode = file->f_mode & (FMODE_READ | FMODE_WRITE); in hostfs_open() 326 if (mode & FMODE_READ) in hostfs_open() 630 HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; in hostfs_create()
|
/linux/sound/isa/msnd/ |
H A 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()
|