Home
last modified time | relevance | path

Searched refs:O_ACCMODE (Results 1 – 25 of 55) sorted by relevance

123

/linux-5.19.10/fs/coda/
Dcoda_linux.c48 if ((flags & O_ACCMODE) == O_RDONLY) in coda_flags_to_cflags()
51 if ((flags & O_ACCMODE) == O_RDWR) in coda_flags_to_cflags()
54 if ((flags & O_ACCMODE) == O_WRONLY) in coda_flags_to_cflags()
/linux-5.19.10/fs/ceph/
Dutil.c64 switch (flags & O_ACCMODE) { in ceph_flags_to_mode()
72 case O_ACCMODE: /* this is what the VFS does */ in ceph_flags_to_mode()
/linux-5.19.10/include/uapi/linux/
Ddma-heap.h19 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
/linux-5.19.10/tools/testing/selftests/drivers/s390x/uvdevice/
Dtest_uvdevice.c40 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP()
162 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP()
268 int fd = open(UV_PATH, O_ACCMODE); in main()
/linux-5.19.10/drivers/s390/char/
Dhmcdrv_dev.c126 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) in hmcdrv_dev_open()
226 if (((fp->f_flags & O_ACCMODE) == O_WRONLY) || in hmcdrv_dev_read()
Dvmur.c676 accmode = file->f_flags & O_ACCMODE; in ur_open()
763 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in ur_llseek()
/linux-5.19.10/drivers/tty/serial/
Dkgdb_nmi.c273 unsigned int mode = file->f_flags & O_ACCMODE; in kgdb_nmi_tty_open()
286 unsigned int mode = file->f_flags & O_ACCMODE; in kgdb_nmi_tty_close()
/linux-5.19.10/tools/include/uapi/asm-generic/
Dfcntl.h19 #define O_ACCMODE 00000003 macro
/linux-5.19.10/include/uapi/asm-generic/
Dfcntl.h19 #define O_ACCMODE 00000003 macro
/linux-5.19.10/drivers/staging/axis-fifo/
Daxis-fifo.c692 if (((f->f_flags & O_ACCMODE) == O_WRONLY) || in axis_fifo_open()
693 ((f->f_flags & O_ACCMODE) == O_RDWR)) { in axis_fifo_open()
702 if (((f->f_flags & O_ACCMODE) == O_RDONLY) || in axis_fifo_open()
703 ((f->f_flags & O_ACCMODE) == O_RDWR)) { in axis_fifo_open()
/linux-5.19.10/tools/perf/trace/beauty/
Dopen_flags.c30 if ((flags & O_ACCMODE) == O_RDONLY) in open__scnprintf_flags()
/linux-5.19.10/drivers/media/dvb-core/
Ddmxdev.c145 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_dvr_open()
147 else if ((file->f_flags & O_ACCMODE) == O_RDWR) { in dvb_dvr_open()
178 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { in dvb_dvr_open()
207 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { in dvb_dvr_release()
213 if (((file->f_flags & O_ACCMODE) == O_RDONLY) || in dvb_dvr_release()
251 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in dvb_dvr_write()
1346 if (((file->f_flags & O_ACCMODE) == O_RDONLY) || in dvb_dvr_poll()
/linux-5.19.10/fs/ecryptfs/
Dfile.c226 if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE) in ecryptfs_open()
227 == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { in ecryptfs_open()
Dkthread.c138 if ((flags & O_ACCMODE) == O_RDONLY) { in ecryptfs_privileged_open()
/linux-5.19.10/kernel/power/
Duser.c62 if ((filp->f_flags & O_ACCMODE) == O_RDWR) { in snapshot_open()
71 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { in snapshot_open()
/linux-5.19.10/drivers/staging/media/av7110/
Dav7110_av.c934 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in dvb_video_poll()
942 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_poll()
964 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_video_write()
1131 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_video_ioctl()
1362 if (((file->f_flags & O_ACCMODE) == O_RDONLY) && in dvb_audio_ioctl()
1513 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_open()
1534 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_release()
/linux-5.19.10/sound/core/seq/oss/
Dseq_oss_init.c285 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in translate_mode()
287 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in translate_mode()
/linux-5.19.10/security/integrity/ima/
Dima_fs.c391 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) in ima_open_policy()
414 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in ima_release_policy()
/linux-5.19.10/fs/
Danon_inodes.c110 flags & (O_ACCMODE | O_NONBLOCK), fops); in __anon_inode_getfile()
/linux-5.19.10/drivers/most/
Dmost_cdev.c125 ((filp->f_flags & O_ACCMODE) != O_RDONLY)) || in comp_open()
127 ((filp->f_flags & O_ACCMODE) != O_WRONLY))) { in comp_open()
/linux-5.19.10/drivers/misc/genwqe/
Dcard_dev.c1097 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1133 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1156 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
/linux-5.19.10/fs/9p/
Dvfs_addr.c71 (fid->mode & O_ACCMODE) == O_WRONLY) { in v9fs_init_request()
/linux-5.19.10/fs/vboxsf/
Dfile.c82 switch (file->f_flags & O_ACCMODE) { in vboxsf_file_open()
/linux-5.19.10/fs/nfs/
Dinternal.h48 if ((flags & O_ACCMODE) != O_WRONLY) in flags_to_mode()
50 if ((flags & O_ACCMODE) != O_RDONLY) in flags_to_mode()
/linux-5.19.10/sound/core/
Dinfo.c246 mode = file->f_flags & O_ACCMODE; in snd_info_entry_open()
277 entry->c.ops->release(entry, file->f_flags & O_ACCMODE, in snd_info_entry_release()

123