| /linux/fs/coda/ |
| H A D | coda_linux.c | 48 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/fs/ceph/ |
| H A D | util.c | 64 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/drivers/s390/char/ |
| H A D | hmcdrv_dev.c | 79 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) in hmcdrv_dev_open() 176 if (((fp->f_flags & O_ACCMODE) == O_WRONLY) || in hmcdrv_dev_read()
|
| H A D | vmur.c | 703 accmode = file->f_flags & O_ACCMODE; in ur_open() 790 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in ur_llseek()
|
| /linux/include/uapi/linux/ |
| H A D | dma-heap.h | 19 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
|
| /linux/tools/testing/selftests/drivers/s390x/uvdevice/ |
| H A D | test_uvdevice.c | 40 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP() 162 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP() 262 int fd = open(UV_PATH, O_ACCMODE); in main()
|
| /linux/rust/kernel/fs/ |
| H A D | file.rs | 96 pub const O_ACCMODE: u32 = bindings::O_ACCMODE; constant
|
| /linux/tools/include/uapi/asm-generic/ |
| H A D | fcntl.h | |
| /linux/tools/perf/trace/beauty/ |
| H A D | open_flags.c | 32 if ((flags & O_ACCMODE) == O_RDONLY) in open__scnprintf_flags()
|
| /linux/sound/core/seq/oss/ |
| H A D | seq_oss_init.c | 280 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in translate_mode() 282 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in translate_mode()
|
| /linux/fs/ecryptfs/ |
| H A D | kthread.c | 138 if ((flags & O_ACCMODE) == O_RDONLY) { in ecryptfs_privileged_open()
|
| /linux/security/integrity/ima/ |
| H A D | ima_fs.c | 715 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) 738 if ((file->f_flags & O_ACCMODE) == O_RDONLY)
|
| /linux/drivers/most/ |
| H A D | most_cdev.c | 128 ((filp->f_flags & O_ACCMODE) != O_RDONLY)) || in comp_open() 130 ((filp->f_flags & O_ACCMODE) != O_WRONLY))) { in comp_open()
|
| /linux/drivers/misc/genwqe/ |
| H A D | card_dev.c | 1097 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/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | debugfs.h | 20 if ((file->f_flags & O_ACCMODE) == O_RDWR) \
|
| /linux/sound/core/ |
| H A D | info.c | 241 mode = file->f_flags & O_ACCMODE; in snd_info_entry_open() 269 entry->c.ops->release(entry, file->f_flags & O_ACCMODE, in snd_info_entry_release()
|
| H A D | compress_offload.c | 84 if ((f->f_flags & O_ACCMODE) == O_WRONLY) in snd_compr_open() 86 else if ((f->f_flags & O_ACCMODE) == O_RDONLY) in snd_compr_open() 88 else if ((f->f_flags & O_ACCMODE) == O_RDWR) in snd_compr_open()
|
| /linux/drivers/media/dvb-core/ |
| H A D | dvbdev.c | 140 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_generic_open() 162 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_generic_release()
|
| /linux/fs/nfs/ |
| H A D | internal.h | 50 if ((flags & O_ACCMODE) != O_WRONLY) in flags_to_mode() 52 if ((flags & O_ACCMODE) != O_RDONLY) in flags_to_mode()
|
| /linux/ipc/ |
| H A D | mqueue.c | 864 static const int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE, in prepare_open() 881 if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY)) in prepare_open() 883 acc = oflag2acc[oflag & O_ACCMODE]; in prepare_open()
|
| /linux/fs/overlayfs/ |
| H A D | util.c | 663 if (flags & ~(O_ACCMODE | O_LARGEFILE)) in ovl_path_open() 666 switch (flags & O_ACCMODE) { in ovl_path_open()
|
| /linux/drivers/acpi/ |
| H A D | acpi_dbg.c | 476 if ((file->f_flags & O_ACCMODE) != O_WRONLY) { in acpi_aml_open()
|
| /linux/tools/objtool/ |
| H A D | elf.c | 1229 if ((flags & O_ACCMODE) == O_RDONLY) in elf_open_read() 1231 else if ((flags & O_ACCMODE) == O_RDWR) in elf_open_read()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 206 O_ACCMODE | O_APPEND | O_NONBLOCK | \ 1638 switch (event_f_flags & O_ACCMODE) { in SYSCALL_DEFINE2()
|
| /linux/block/ |
| H A D | fops.c | 645 if ((file->f_flags & O_ACCMODE) == (O_RDWR | O_WRONLY)) in file_to_blk_mode()
|