Home
last modified time | relevance | path

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

1234

/linux-6.6.21/kernel/trace/
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-6.6.21/drivers/platform/x86/amd/
Dhsmp.c274 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/
Dpipe.c663 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()
Dfile_table.c304 if ((file->f_mode & FMODE_READ) && in alloc_file()
313 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in alloc_file()
Dinternal.h100 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in put_file_access()
Dkernel_read_file.c181 if (!f.file || !(f.file->f_mode & FMODE_READ)) in kernel_read_file_from_fd()
Dread_write.c414 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()
Dsplice.c969 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/
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-6.6.21/arch/um/drivers/
Dhostaudio_kern.c191 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/
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()
Dxillyusb.c1269 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/
Ddelegation.h88 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ); in nfs_have_delegated_attributes()
Dread.c44 p->rw_mode = FMODE_READ; in nfs_readhdr_alloc()
413 ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readahead()
Dnfs4proc.c296 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 …]
Dfile.c325 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()
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()
Ddelegation.c112 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/
Dfile.h151 if (file->f_mode & FMODE_READ) in aa_map_file_to_perms()
/linux-6.6.21/drivers/char/
Dapm-emulation.c368 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
/linux-6.6.21/drivers/tty/
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-6.6.21/arch/x86/kernel/
Dmsr.c157 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl()
/linux-6.6.21/fs/hostfs/
Dhostfs_kern.c302 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/
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()
/linux-6.6.21/fs/verity/
Denable.c358 if (!(filp->f_mode & FMODE_READ)) in fsverity_ioctl_enable()

1234