O_ACCMODE 483 drivers/acpi/acpi_dbg.c if ((file->f_flags & O_ACCMODE) != O_WRONLY) { O_ACCMODE 449 drivers/dma-buf/dma-buf.c file->f_flags = flags & (O_ACCMODE | O_NONBLOCK); O_ACCMODE 1515 drivers/ide/ide-tape.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 1522 drivers/ide/ide-tape.c if ((filp->f_flags & O_ACCMODE) == O_WRONLY || O_ACCMODE 1523 drivers/ide/ide-tape.c (filp->f_flags & O_ACCMODE) == O_RDWR) { O_ACCMODE 2094 drivers/media/common/videobuf2/videobuf2-core.c if (flags & ~(O_CLOEXEC | O_ACCMODE)) { O_ACCMODE 2124 drivers/media/common/videobuf2/videobuf2-core.c flags & O_ACCMODE); O_ACCMODE 2131 drivers/media/common/videobuf2/videobuf2-core.c ret = dma_buf_fd(dbuf, flags & ~O_ACCMODE); O_ACCMODE 155 drivers/media/dvb-core/dmxdev.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 157 drivers/media/dvb-core/dmxdev.c else if ((file->f_flags & O_ACCMODE) == O_RDWR) { O_ACCMODE 188 drivers/media/dvb-core/dmxdev.c if ((file->f_flags & O_ACCMODE) == O_WRONLY) { O_ACCMODE 217 drivers/media/dvb-core/dmxdev.c if ((file->f_flags & O_ACCMODE) == O_WRONLY) { O_ACCMODE 223 drivers/media/dvb-core/dmxdev.c if (((file->f_flags & O_ACCMODE) == O_RDONLY) || O_ACCMODE 261 drivers/media/dvb-core/dmxdev.c if ((file->f_flags & O_ACCMODE) != O_WRONLY) O_ACCMODE 1356 drivers/media/dvb-core/dmxdev.c if (((file->f_flags & O_ACCMODE) == O_RDONLY) || O_ACCMODE 2017 drivers/media/dvb-core/dvb_frontend.c if ((file->f_flags & O_ACCMODE) == O_RDONLY O_ACCMODE 2791 drivers/media/dvb-core/dvb_frontend.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_ACCMODE 2860 drivers/media/dvb-core/dvb_frontend.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_ACCMODE 1429 drivers/media/dvb-core/dvb_net.c if (((file->f_flags&O_ACCMODE)==O_RDONLY)) O_ACCMODE 144 drivers/media/dvb-core/dvbdev.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_ACCMODE 167 drivers/media/dvb-core/dvbdev.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_ACCMODE 802 drivers/media/pci/ddbridge/ddbridge-core.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_ACCMODE 806 drivers/media/pci/ddbridge/ddbridge-core.c } else if ((file->f_flags & O_ACCMODE) == O_WRONLY) { O_ACCMODE 826 drivers/media/pci/ddbridge/ddbridge-core.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_ACCMODE 831 drivers/media/pci/ddbridge/ddbridge-core.c } else if ((file->f_flags & O_ACCMODE) == O_WRONLY) { O_ACCMODE 841 drivers/media/pci/ddbridge/ddbridge-core.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 843 drivers/media/pci/ddbridge/ddbridge-core.c else if ((file->f_flags & O_ACCMODE) == O_WRONLY) O_ACCMODE 933 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) O_ACCMODE 941 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_ACCMODE 963 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 1130 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_ACCMODE 1361 drivers/media/pci/ttpci/av7110_av.c if (((file->f_flags & O_ACCMODE) == O_RDONLY) && O_ACCMODE 1512 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_ACCMODE 1533 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_ACCMODE 83 drivers/misc/cxl/api.c flags & (O_ACCMODE | O_NONBLOCK), fops); O_ACCMODE 1227 drivers/misc/fastrpc.c bp.fd = dma_buf_fd(buf->dmabuf, O_ACCMODE); O_ACCMODE 1086 drivers/misc/genwqe/card_dev.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 1122 drivers/misc/genwqe/card_dev.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 1145 drivers/misc/genwqe/card_dev.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 1173 drivers/nvdimm/bus.c ro = ((file->f_flags & O_ACCMODE) == O_RDONLY); O_ACCMODE 126 drivers/s390/char/hmcdrv_dev.c if ((fp->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 226 drivers/s390/char/hmcdrv_dev.c if (((fp->f_flags & O_ACCMODE) == O_WRONLY) || O_ACCMODE 700 drivers/s390/char/vmur.c accmode = file->f_flags & O_ACCMODE; O_ACCMODE 787 drivers/s390/char/vmur.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) O_ACCMODE 99 drivers/scsi/cxlflash/ocxl_hw.c flags & (O_ACCMODE | O_NONBLOCK), fops); O_ACCMODE 293 drivers/scsi/sg.c if ((flags & O_EXCL) && (O_RDONLY == (flags & O_ACCMODE))) O_ACCMODE 916 drivers/scsi/sg.c read_only = (O_RDWR != (filp->f_flags & O_ACCMODE)); O_ACCMODE 1201 drivers/scsi/st.c ((st_flags & O_ACCMODE) == O_WRONLY || O_ACCMODE 1202 drivers/scsi/st.c (st_flags & O_ACCMODE) == O_RDWR)) { O_ACCMODE 1301 drivers/scsi/st.c STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); O_ACCMODE 648 drivers/staging/axis-fifo/axis-fifo.c if (((f->f_flags & O_ACCMODE) == O_WRONLY) || O_ACCMODE 649 drivers/staging/axis-fifo/axis-fifo.c ((f->f_flags & O_ACCMODE) == O_RDWR)) { O_ACCMODE 658 drivers/staging/axis-fifo/axis-fifo.c if (((f->f_flags & O_ACCMODE) == O_RDONLY) || O_ACCMODE 659 drivers/staging/axis-fifo/axis-fifo.c ((f->f_flags & O_ACCMODE) == O_RDWR)) { O_ACCMODE 129 drivers/staging/most/cdev/cdev.c ((filp->f_flags & O_ACCMODE) != O_RDONLY)) || O_ACCMODE 131 drivers/staging/most/cdev/cdev.c ((filp->f_flags & O_ACCMODE) != O_WRONLY))) { O_ACCMODE 273 drivers/tty/serial/kgdb_nmi.c unsigned int mode = file->f_flags & O_ACCMODE; O_ACCMODE 286 drivers/tty/serial/kgdb_nmi.c unsigned int mode = file->f_flags & O_ACCMODE; O_ACCMODE 165 fs/9p/cache.c if ((filp->f_flags & O_ACCMODE) != O_RDONLY) O_ACCMODE 80 fs/9p/vfs_file.c ((file->f_flags & O_ACCMODE) != O_RDONLY)) { O_ACCMODE 881 fs/9p/vfs_inode.c ((flags & O_ACCMODE) != O_RDONLY)) { O_ACCMODE 206 fs/9p/vfs_inode_dotl.c rflags |= flags & O_ACCMODE; O_ACCMODE 321 fs/9p/vfs_inode_dotl.c ((flags & O_ACCMODE) != O_RDONLY)) { O_ACCMODE 92 fs/anon_inodes.c flags & (O_ACCMODE | O_NONBLOCK), fops); O_ACCMODE 1840 fs/block_dev.c if ((filp->f_flags & O_ACCMODE) == 3) O_ACCMODE 24 fs/ceph/file.c switch (flags & O_ACCMODE) { O_ACCMODE 36 fs/ceph/file.c flags &= ~O_ACCMODE; O_ACCMODE 50 fs/cifs/file.c if ((flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 52 fs/cifs/file.c else if ((flags & O_ACCMODE) == O_WRONLY) O_ACCMODE 54 fs/cifs/file.c else if ((flags & O_ACCMODE) == O_RDWR) { O_ACCMODE 70 fs/cifs/file.c if ((flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 72 fs/cifs/file.c else if ((flags & O_ACCMODE) == O_WRONLY) O_ACCMODE 74 fs/cifs/file.c else if ((flags & O_ACCMODE) == O_RDWR) O_ACCMODE 3824 fs/cifs/file.c if ((file->f_flags & O_ACCMODE) == O_WRONLY) O_ACCMODE 3987 fs/cifs/file.c if ((file->f_flags & O_ACCMODE) == O_WRONLY) O_ACCMODE 4610 fs/cifs/file.c if ((file->f_flags & O_ACCMODE) != O_WRONLY && !oncethru) { O_ACCMODE 196 fs/cifs/fscache.c if ((filp->f_flags & O_ACCMODE) != O_RDONLY) O_ACCMODE 48 fs/coda/coda_linux.c if ((flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 51 fs/coda/coda_linux.c if ((flags & O_ACCMODE) == O_RDWR) O_ACCMODE 54 fs/coda/coda_linux.c if ((flags & O_ACCMODE) == O_WRONLY) O_ACCMODE 226 fs/ecryptfs/file.c if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE) O_ACCMODE 227 fs/ecryptfs/file.c == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { O_ACCMODE 137 fs/ecryptfs/kthread.c if ((flags & O_ACCMODE) == O_RDONLY) { O_ACCMODE 1609 fs/locks.c int want_write = (mode & O_ACCMODE) != O_RDONLY; O_ACCMODE 2972 fs/namei.c if ((flag & O_ACCMODE) != O_RDONLY && !(flag & O_APPEND)) O_ACCMODE 3009 fs/namei.c if ((flag & O_ACCMODE) == 3) O_ACCMODE 1481 fs/nfs/dir.c if ((flags & O_ACCMODE) != O_WRONLY) O_ACCMODE 1483 fs/nfs/dir.c if ((flags & O_ACCMODE) != O_RDONLY) O_ACCMODE 2551 fs/nfs/dir.c if ((openflags & O_ACCMODE) != O_WRONLY) O_ACCMODE 2553 fs/nfs/dir.c if ((openflags & O_ACCMODE) != O_RDONLY) O_ACCMODE 51 fs/nfs/nfs4file.c if ((openflags & O_ACCMODE) == 3) O_ACCMODE 42 fs/notify/fanotify/fanotify_user.c O_ACCMODE | O_APPEND | O_NONBLOCK | \ O_ACCMODE 789 fs/notify/fanotify/fanotify_user.c switch (event_f_flags & O_ACCMODE) { O_ACCMODE 3518 include/linux/fs.h #define ACC_MODE(x) ("\004\002\006\006"[(x)&O_ACCMODE]) O_ACCMODE 3519 include/linux/fs.h #define OPEN_FMODE(flag) ((__force fmode_t)(((flag + 1) & O_ACCMODE) | \ O_ACCMODE 792 ipc/mqueue.c static const int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE, O_ACCMODE 809 ipc/mqueue.c if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY)) O_ACCMODE 811 ipc/mqueue.c acc = oflag2acc[oflag & O_ACCMODE]; O_ACCMODE 59 kernel/power/user.c if ((filp->f_flags & O_ACCMODE) == O_RDWR) { O_ACCMODE 68 kernel/power/user.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { O_ACCMODE 1016 kernel/printk/printk.c if ((file->f_flags & O_ACCMODE) != O_WRONLY) { O_ACCMODE 66 net/ceph/ceph_fs.c switch (flags & O_ACCMODE) { O_ACCMODE 74 net/ceph/ceph_fs.c case O_ACCMODE: /* this is what the VFS does */ O_ACCMODE 389 security/integrity/ima/ima_fs.c if ((filp->f_flags & O_ACCMODE) != O_RDONLY) O_ACCMODE 412 security/integrity/ima/ima_fs.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 86 sound/core/compress_offload.c if ((f->f_flags & O_ACCMODE) == O_WRONLY) O_ACCMODE 88 sound/core/compress_offload.c else if ((f->f_flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 247 sound/core/info.c mode = file->f_flags & O_ACCMODE; O_ACCMODE 278 sound/core/info.c entry->c.ops->release(entry, file->f_flags & O_ACCMODE, O_ACCMODE 286 sound/core/seq/oss/seq_oss_init.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) O_ACCMODE 288 sound/core/seq/oss/seq_oss_init.c if ((file->f_flags & O_ACCMODE) != O_WRONLY) O_ACCMODE 427 tools/objtool/elf.c if ((flags & O_ACCMODE) == O_RDONLY) O_ACCMODE 429 tools/objtool/elf.c else if ((flags & O_ACCMODE) == O_RDWR) O_ACCMODE 30 tools/perf/trace/beauty/open_flags.c if ((flags & O_ACCMODE) == O_RDONLY)