Home
last modified time | relevance | path

Searched refs:FMODE_READ (Results 1 – 25 of 77) sorted by relevance

1234

/linux/fs/nfs/
H A Ddelegation.h100 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 Dnfs4proc.c1325 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 Dread.c45 p->rw_mode = FMODE_READ; in nfs_readhdr_alloc()
429 ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readahead()
H A Dnfs42proc.c338 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 Dlocalio.c228 if (mode & ~(FMODE_READ | FMODE_WRITE)) in nfs_local_open_fh()
615 case FMODE_READ: in nfs_local_doio()
H A Ddelegation.c111 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 Dtrace_recursion_record.c196 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 Dhsmp.c258 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 Dpipe.c672 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 Dfile_table.c320 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 Dinternal.h114 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in put_file_access()
H A Dread_write.c509 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 Dkernel_read_file.c180 if (fd_empty(f) || !(fd_file(f)->f_mode & FMODE_READ)) in kernel_read_file_from_fd()
H A Dsplice.c965 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 Dopenprom.c582 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 Dhostaudio_kern.c193 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 Dxillybus_core.c1451 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 Dxillyusb.c1266 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 Dfile.h114 if (file->f_mode & FMODE_READ) in aa_map_file_to_perms()
/linux/fs/nfsd/
H A Dlocalio.c77 if (fmode & FMODE_READ) in nfsd_open_local_fh()
/linux/drivers/char/
H A Dapm-emulation.c368 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
/linux/drivers/tty/
H A Dtty_jobctrl.c153 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 Dmsr.c157 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl()
/linux/fs/hostfs/
H A Dhostfs_kern.c317 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 Dmsnd.c218 if ((file ? file->f_mode : chip->mode) & FMODE_READ) { in snd_msnd_dsp_halt()
225 chip->mode &= ~FMODE_READ; in snd_msnd_dsp_halt()

1234