FMODE_READ 1573 arch/x86/kernel/apm_32.c as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; FMODE_READ 1448 fs/aio.c if (unlikely(!(file->f_mode & FMODE_READ))) FMODE_READ 1484 fs/aio.c if (unlikely(!(file->f_mode & FMODE_READ))) FMODE_READ 113 fs/anon_inodes.c FMODE_READ | FMODE_WRITE, fops); FMODE_READ 997 fs/block_dev.c if (file->f_mode & FMODE_READ) FMODE_READ 1318 fs/block_dev.c mode_t mode = FMODE_READ; FMODE_READ 169 fs/cifs/dir.c if (oflags & FMODE_READ) FMODE_READ 173 fs/cifs/dir.c if (!(oflags & FMODE_READ)) FMODE_READ 1147 fs/compat.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 250 fs/configfs/file.c if (file->f_mode & FMODE_READ) { FMODE_READ 118 fs/exec.c FMODE_READ|FMODE_EXEC); FMODE_READ 674 fs/exec.c FMODE_READ|FMODE_EXEC); FMODE_READ 333 fs/ext3/super.c bdev = open_by_devnum(dev, FMODE_READ|FMODE_WRITE); FMODE_READ 445 fs/ext4/super.c bdev = open_by_devnum(dev, FMODE_READ|FMODE_WRITE); FMODE_READ 51 fs/fifo.c filp->f_mode &= (FMODE_READ | FMODE_WRITE); FMODE_READ 378 fs/hostfs/hostfs_kern.c mode = file->f_mode & (FMODE_READ | FMODE_WRITE); FMODE_READ 392 fs/hostfs/hostfs_kern.c if (HOSTFS_I(ino)->mode & FMODE_READ) FMODE_READ 630 fs/hostfs/hostfs_kern.c HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; FMODE_READ 418 fs/hppfs/hppfs.c if (fmode == (FMODE_READ | FMODE_WRITE)) FMODE_READ 420 fs/hppfs/hppfs.c if (fmode == FMODE_READ) FMODE_READ 989 fs/hugetlbfs/inode.c FMODE_WRITE | FMODE_READ, FMODE_READ 632 fs/inotify_user.c filp->f_mode = FMODE_READ; FMODE_READ 1124 fs/jfs/jfs_logmgr.c bdev = open_by_devnum(sbi->logdev, FMODE_READ|FMODE_WRITE); FMODE_READ 1808 fs/locks.c if (!(filp->f_mode & FMODE_READ)) FMODE_READ 1926 fs/locks.c if (!(filp->f_mode & FMODE_READ)) FMODE_READ 53 fs/nfs/delegation.h flags &= FMODE_READ|FMODE_WRITE; FMODE_READ 1078 fs/nfs/dir.c if (inode != NULL && nfs_have_delegation(inode, FMODE_READ)) FMODE_READ 1896 fs/nfs/dir.c if (openflags & FMODE_READ) FMODE_READ 563 fs/nfs/file.c if (nfs_have_delegation(inode, FMODE_READ)) FMODE_READ 650 fs/nfs/file.c if (!nfs_have_delegation(inode, FMODE_READ)) FMODE_READ 756 fs/nfs/inode.c if (nfs_have_delegation(inode, FMODE_READ)) FMODE_READ 1166 fs/nfs/inode.c if (!nfs_have_delegation(inode, FMODE_READ) || FMODE_READ 330 fs/nfs/nfs4proc.c switch (mode & (FMODE_READ|FMODE_WRITE|O_EXCL)) { FMODE_READ 331 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 337 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_READ 358 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 361 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_READ 373 fs/nfs/nfs4proc.c case FMODE_READ: FMODE_READ 379 fs/nfs/nfs4proc.c case FMODE_READ|FMODE_WRITE: FMODE_READ 393 fs/nfs/nfs4proc.c open_flags &= (FMODE_READ|FMODE_WRITE); FMODE_READ 430 fs/nfs/nfs4proc.c int open_mode = opendata->o_arg.open_flags & (FMODE_READ|FMODE_WRITE|O_EXCL); FMODE_READ 592 fs/nfs/nfs4proc.c ret = nfs4_open_recover_helper(opendata, FMODE_READ|FMODE_WRITE, &newstate); FMODE_READ 606 fs/nfs/nfs4proc.c ret = nfs4_open_recover_helper(opendata, FMODE_READ, &newstate); FMODE_READ 811 fs/nfs/nfs4proc.c if (can_open_cached(data->state, data->o_arg.open_flags & (FMODE_READ|FMODE_WRITE|O_EXCL))) FMODE_READ 1053 fs/nfs/nfs4proc.c nfs4_return_incompatible_delegation(path->dentry->d_inode, flags & (FMODE_READ|FMODE_WRITE)); FMODE_READ 1275 fs/nfs/nfs4proc.c calldata->arg.open_flags = FMODE_READ; FMODE_READ 468 fs/nfs/nfs4state.c switch (mode & (FMODE_READ | FMODE_WRITE)) { FMODE_READ 469 fs/nfs/nfs4state.c case FMODE_READ: FMODE_READ 475 fs/nfs/nfs4state.c case FMODE_READ|FMODE_WRITE: FMODE_READ 478 fs/nfs/nfs4state.c newstate = FMODE_READ|FMODE_WRITE; FMODE_READ 481 fs/nfs/nfs4state.c newstate &= ~FMODE_READ; FMODE_READ 961 fs/nfs/nfs4xdr.c switch (open_flags & (FMODE_READ|FMODE_WRITE)) { FMODE_READ 962 fs/nfs/nfs4xdr.c case FMODE_READ: FMODE_READ 968 fs/nfs/nfs4xdr.c case FMODE_READ|FMODE_WRITE: FMODE_READ 1036 fs/nfs/nfs4xdr.c case FMODE_READ: FMODE_READ 1039 fs/nfs/nfs4xdr.c case FMODE_WRITE|FMODE_READ: FMODE_READ 3380 fs/nfs/nfs4xdr.c res->delegation_type = FMODE_READ; FMODE_READ 3383 fs/nfs/nfs4xdr.c res->delegation_type = FMODE_WRITE|FMODE_READ; FMODE_READ 507 fs/nfs/read.c ctx = nfs_find_open_context(inode, NULL, FMODE_READ); FMODE_READ 588 fs/nfs/read.c desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); FMODE_READ 39 fs/nfsctl.c error = may_open(&nd,MAY_READ|MAY_WRITE,FMODE_READ|FMODE_WRITE); FMODE_READ 1261 fs/nfsd/nfs4state.c filp->f_mode = (filp->f_mode | FMODE_READ) & ~FMODE_WRITE; FMODE_READ 1271 fs/ocfs2/cluster/heartbeat.c ret = blkdev_get(reg->hr_bdev, FMODE_WRITE | FMODE_READ, 0); FMODE_READ 478 fs/partitions/check.c err = blkdev_get(bdev, FMODE_READ, 0); FMODE_READ 619 fs/pipe.c if (filp->f_mode & FMODE_READ) { FMODE_READ 737 fs/pipe.c decr = (filp->f_mode & FMODE_READ) != 0; FMODE_READ 768 fs/pipe.c if (filp->f_mode & FMODE_READ) FMODE_READ 989 fs/pipe.c f->f_mode = FMODE_READ; FMODE_READ 246 fs/read_write.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 617 fs/read_write.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 698 fs/read_write.c if (!(in_file->f_mode & FMODE_READ)) FMODE_READ 2596 fs/reiserfs/journal.c int blkdev_mode = FMODE_READ | FMODE_WRITE; FMODE_READ 2606 fs/reiserfs/journal.c blkdev_mode = FMODE_READ; FMODE_READ 923 fs/splice.c if (unlikely(!(in->f_mode & FMODE_READ))) FMODE_READ 1454 fs/splice.c else if (file->f_mode & FMODE_READ) FMODE_READ 1477 fs/splice.c if (in->f_mode & FMODE_READ) { FMODE_READ 1698 fs/splice.c if (in->f_mode & FMODE_READ) { FMODE_READ 187 fs/sysfs/bin.c if ((file->f_mode & FMODE_READ) && !(attr->read || attr->mmap)) FMODE_READ 358 fs/sysfs/file.c if (file->f_mode & FMODE_READ) { FMODE_READ 928 ipc/mqueue.c if (unlikely(!(filp->f_mode & FMODE_READ))) FMODE_READ 842 ipc/shm.c f_mode = FMODE_READ; FMODE_READ 846 ipc/shm.c f_mode = FMODE_READ | FMODE_WRITE; FMODE_READ 2120 kernel/cgroup.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 2180 kernel/cgroup.c if (file->f_mode & FMODE_READ) { FMODE_READ 594 kernel/power/swap.c resume_bdev = open_by_devnum(swsusp_resume_device, FMODE_READ); FMODE_READ 911 kernel/relay.c if (filp->f_mode & FMODE_READ) { FMODE_READ 1077 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 1112 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) FMODE_READ 1123 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) FMODE_READ 1223 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 1355 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { FMODE_READ 1364 mm/filemap.c if (file->f_mode & FMODE_READ) { FMODE_READ 1013 mm/mmap.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 2571 mm/shmem.c init_file(file, shm_mnt, dentry, FMODE_WRITE | FMODE_READ, FMODE_READ 81 mm/tiny-shmem.c init_file(file, shm_mnt, dentry, FMODE_WRITE | FMODE_READ, FMODE_READ 391 net/socket.c init_file(file, sock_mnt, dentry, FMODE_READ | FMODE_WRITE, FMODE_READ 865 net/sunrpc/cache.c if (filp->f_mode & FMODE_READ) { FMODE_READ 176 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_READ) FMODE_READ 205 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_READ) { FMODE_READ 1723 security/selinux/hooks.c if (file->f_mode & FMODE_READ) FMODE_READ 963 security/smack/smack_lsm.c if (file->f_mode & FMODE_READ) FMODE_READ 2295 sound/core/oss/pcm_oss.c if ((f_mode & (FMODE_WRITE|FMODE_READ)) == (FMODE_WRITE|FMODE_READ) && FMODE_READ 2309 sound/core/oss/pcm_oss.c if (! (f_mode & FMODE_READ)) FMODE_READ 2378 sound/core/oss/pcm_oss.c if (file->f_mode & FMODE_READ) FMODE_READ 71 sound/core/rawmidi.c switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { FMODE_READ 74 sound/core/rawmidi.c case FMODE_READ: FMODE_READ 106 sound/core/seq/seq_clientmgr.c switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { FMODE_READ 109 sound/core/seq/seq_clientmgr.c case FMODE_READ: FMODE_READ 1222 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1230 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1353 sound/oss/au1550_ac97.c ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); FMODE_READ 1390 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1403 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1411 sound/oss/au1550_ac97.c if (s->open_mode & FMODE_READ) FMODE_READ 1418 sound/oss/au1550_ac97.c return put_user((file->f_mode & FMODE_READ) ? FMODE_READ 1426 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1454 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1529 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1552 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) FMODE_READ 1567 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ && !s->dma_adc.stopped) FMODE_READ 1577 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1614 sound/oss/au1550_ac97.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 1646 sound/oss/au1550_ac97.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 1669 sound/oss/au1550_ac97.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 1700 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1729 sound/oss/au1550_ac97.c if ((file->f_mode & FMODE_READ && s->dma_adc.subdivision) || FMODE_READ 1736 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1751 sound/oss/au1550_ac97.c return put_user((file->f_mode & FMODE_READ) ? FMODE_READ 1757 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) FMODE_READ 1763 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) FMODE_READ 1815 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1835 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1844 sound/oss/au1550_ac97.c s->open_mode |= file->f_mode & (FMODE_READ | FMODE_WRITE); FMODE_READ 1869 sound/oss/au1550_ac97.c if (file->f_mode & FMODE_READ) { FMODE_READ 1874 sound/oss/au1550_ac97.c s->open_mode &= ((~file->f_mode) & (FMODE_READ|FMODE_WRITE)); FMODE_READ 744 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_READ) { FMODE_READ 156 sound/oss/msnd_pinnacle.c if (dev.mode & FMODE_READ) { FMODE_READ 183 sound/oss/msnd_pinnacle.c if (file->f_mode & FMODE_READ) FMODE_READ 188 sound/oss/msnd_pinnacle.c if (file->f_mode & FMODE_READ) FMODE_READ 239 sound/oss/msnd_pinnacle.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 291 sound/oss/msnd_pinnacle.c if (file->f_mode & FMODE_READ) FMODE_READ 316 sound/oss/msnd_pinnacle.c if (file->f_mode & FMODE_READ) FMODE_READ 321 sound/oss/msnd_pinnacle.c if (file->f_mode & FMODE_READ) FMODE_READ 359 sound/oss/msnd_pinnacle.c if (file->f_mode & FMODE_READ) FMODE_READ 364 sound/oss/msnd_pinnacle.c if (file->f_mode & FMODE_READ) FMODE_READ 677 sound/oss/msnd_pinnacle.c if ((file ? file->f_mode : dev.mode) & FMODE_READ) { FMODE_READ 683 sound/oss/msnd_pinnacle.c dev.mode &= ~FMODE_READ; FMODE_READ 720 sound/oss/msnd_pinnacle.c if ((file ? file->f_mode : dev.mode) & FMODE_READ) { FMODE_READ 727 sound/oss/msnd_pinnacle.c dev.mode |= FMODE_READ; FMODE_READ 762 sound/oss/msnd_pinnacle.c (file->f_mode & FMODE_READ && FMODE_READ 775 sound/oss/msnd_pinnacle.c if (file->f_mode & FMODE_READ) { FMODE_READ 916 sound/oss/msnd_pinnacle.c if (!test_bit(F_READING, &dev.flags) && dev.mode & FMODE_READ) { FMODE_READ 237 sound/oss/sh_dac_audio.c if (file->f_mode & FMODE_READ) FMODE_READ 113 sound/oss/sound_config.h #if OPEN_READ == FMODE_READ && OPEN_WRITE == FMODE_WRITE FMODE_READ 124 sound/oss/sound_config.h return ((file->f_mode & FMODE_READ) ? OPEN_READ : 0) | FMODE_READ 811 sound/oss/swarm_cs4297a.c __raw_writeq((s->ena & FMODE_READ) ? M_SYNCSER_DMA_RX_EN : 0, FMODE_READ 852 sound/oss/swarm_cs4297a.c s->ena &= ~FMODE_READ; FMODE_READ 873 sound/oss/swarm_cs4297a.c if (!(s->ena & FMODE_READ) && FMODE_READ 903 sound/oss/swarm_cs4297a.c s->ena |= FMODE_READ; FMODE_READ 932 sound/oss/swarm_cs4297a.c if ((s->ena & FMODE_READ) || (status & (M_SYNCSER_RX_EOP_COUNT))) { FMODE_READ 937 sound/oss/swarm_cs4297a.c if (s->ena & FMODE_READ) { FMODE_READ 1901 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 1925 sound/oss/swarm_cs4297a.c } else if (file->f_mode & FMODE_READ) { FMODE_READ 1968 sound/oss/swarm_cs4297a.c ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); FMODE_READ 2005 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 2029 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 2048 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 2068 sound/oss/swarm_cs4297a.c else if (file->f_mode & FMODE_READ) FMODE_READ 2088 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 2111 sound/oss/swarm_cs4297a.c else if (file->f_mode & FMODE_READ) FMODE_READ 2126 sound/oss/swarm_cs4297a.c if (file->f_mode & s->ena & FMODE_READ) FMODE_READ 2135 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 2179 sound/oss/swarm_cs4297a.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 2218 sound/oss/swarm_cs4297a.c if (!(file->f_mode & FMODE_READ)) FMODE_READ 2294 sound/oss/swarm_cs4297a.c if ((file->f_mode & FMODE_READ && s->dma_adc.subdivision) FMODE_READ 2301 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) FMODE_READ 2308 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) FMODE_READ 2314 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) FMODE_READ 2320 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) FMODE_READ 2361 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 2366 sound/oss/swarm_cs4297a.c s->open_mode &= ~FMODE_READ; FMODE_READ 2403 sound/oss/swarm_cs4297a.c if (!(file->f_mode & (FMODE_WRITE | FMODE_READ))) { FMODE_READ 2431 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 2433 sound/oss/swarm_cs4297a.c while (s->open_mode & FMODE_READ) { FMODE_READ 2448 sound/oss/swarm_cs4297a.c s->open_mode |= file->f_mode & (FMODE_READ | FMODE_WRITE); FMODE_READ 2449 sound/oss/swarm_cs4297a.c if (file->f_mode & FMODE_READ) { FMODE_READ 2455 sound/oss/swarm_cs4297a.c s->ena &= ~FMODE_READ; FMODE_READ 2255 sound/oss/vwsnd.c vwsnd_port_t *rport = ((file->f_mode & FMODE_READ) ? FMODE_READ 2344 sound/oss/vwsnd.c vwsnd_port_t *rport = (file->f_mode & FMODE_READ) ? FMODE_READ 2407 sound/oss/vwsnd.c vwsnd_port_t *rport = (file->f_mode & FMODE_READ) ? FMODE_READ 2437 sound/oss/vwsnd.c vwsnd_port_t *rport = (file->f_mode & FMODE_READ) ? FMODE_READ 2945 sound/oss/vwsnd.c devc->open_mode |= file->f_mode & (FMODE_READ | FMODE_WRITE); FMODE_READ 2964 sound/oss/vwsnd.c if (file->f_mode & FMODE_READ) { FMODE_READ 3011 sound/oss/vwsnd.c if (file->f_mode & FMODE_READ)