Searched refs:f_flags (Results 1 - 200 of 330) sorted by relevance

12

/linux-4.1.27/arch/mips/include/uapi/asm/
H A Dstatfs.h36 long f_flags; member in struct:statfs
57 __u32 f_flags; member in struct:statfs64
78 long f_flags; member in struct:statfs64
94 __u32 f_flags; member in struct:compat_statfs64
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dstatfs.h31 unsigned int f_flags; member in struct:statfs
46 unsigned int f_flags; member in struct:statfs64
/linux-4.1.27/include/uapi/asm-generic/
H A Dstatfs.h33 __statfs_word f_flags; member in struct:statfs
56 __statfs_word f_flags; member in struct:statfs64
79 __u32 f_flags; member in struct:compat_statfs64
H A Dfcntl.h102 #define F_GETFL 3 /* get file->f_flags */
103 #define F_SETFL 4 /* set file->f_flags */
/linux-4.1.27/include/linux/
H A Dstatfs.h18 long f_flags; member in struct:kstatfs
34 #define ST_VALID 0x0020 /* f_flags support is implemented */
H A Dfs.h839 * Protects f_ep_links, f_flags.
844 unsigned int f_flags; member in struct:file
1900 if (!(file->f_flags & O_NOATIME)) file_accessed()
2401 if (!(file->f_flags & O_DSYNC) && !IS_SYNC(file->f_mapping->host)) generic_write_sync()
2404 (file->f_flags & __O_SYNC) ? 0 : 1); generic_write_sync()
2831 return (filp->f_flags & O_DIRECT) || IS_DAX(file_inode(filp)); io_is_direct()
2837 if (file->f_flags & O_APPEND) iocb_flags()
/linux-4.1.27/fs/
H A Dstatfs.c72 buf->f_flags = calculate_f_flags(path->mnt); vfs_statfs()
140 buf.f_flags = st->f_flags; do_statfs_native()
164 buf.f_flags = st->f_flags; do_statfs64()
H A Dfcntl.c41 if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode)) setfl()
45 if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME)) setfl()
68 if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op->fasync) { setfl()
76 filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK); setfl()
263 err = filp->f_flags; do_fcntl()
592 filp->f_flags &= ~FASYNC; fasync_remove_entry()
645 filp->f_flags |= FASYNC; fasync_insert_entry()
H A Dopen.c168 if (f.file->f_flags & O_LARGEFILE) do_sys_ftruncate()
673 if (f->f_flags & O_DIRECT) { open_check_o_direct()
688 f->f_mode = OPEN_FMODE(f->f_flags) | FMODE_LSEEK | do_dentry_open()
695 if (unlikely(f->f_flags & O_PATH)) { do_dentry_open()
727 error = break_lease(inode, f->f_flags); do_dentry_open()
747 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); do_dentry_open()
840 inode = dentry->d_op->d_select_inode(dentry, file->f_flags); vfs_open()
861 f->f_flags = flags; dentry_open()
1125 if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) generic_file_open()
H A Dpipe.c304 if (filp->f_flags & O_NONBLOCK) { pipe_read()
334 return (file->f_flags & O_DIRECT) != 0; is_packetized()
442 if (filp->f_flags & O_NONBLOCK) { pipe_write()
701 f->f_flags = O_WRONLY | (flags & (O_NONBLOCK | O_DIRECT)); create_pipe_files()
710 res[0]->f_flags = O_RDONLY | (flags & O_NONBLOCK); create_pipe_files()
871 if ((filp->f_flags & O_NONBLOCK)) { fifo_open()
889 if (!is_pipe && (filp->f_flags & O_NONBLOCK) && !pipe->readers) fifo_open()
H A Dioctl.c489 filp->f_flags |= flag; ioctl_fionbio()
491 filp->f_flags &= ~flag; ioctl_fionbio()
508 if ((flag ^ filp->f_flags) & FASYNC) { ioctl_fioasync()
510 /* fasync() adjusts filp->f_flags */ ioctl_fioasync()
H A Danon_inodes.c110 file->f_flags = flags & (O_ACCMODE | O_NONBLOCK); anon_inode_getfile()
H A Deventfd.c235 res = eventfd_ctx_read(ctx, file->f_flags & O_NONBLOCK, &cnt); eventfd_read()
260 else if (!(file->f_flags & O_NONBLOCK)) { eventfd_write()
H A Dsignalfd.c209 int nonblock = file->f_flags & O_NONBLOCK; signalfd_read()
H A Dfile_table.c202 if (unlikely(file->f_flags & FASYNC)) { __fput()
H A Dcompat.c240 __put_user(kbuf->f_flags, &ubuf->f_flags) || put_compat_statfs()
295 __put_user(kbuf->f_flags, &ubuf->f_flags) || put_compat_statfs64()
H A Dblock_dev.c1464 filp->f_flags |= O_LARGEFILE; blkdev_open()
1466 if (filp->f_flags & O_NDELAY) blkdev_open()
1468 if (filp->f_flags & O_EXCL) blkdev_open()
1470 if ((filp->f_flags & O_ACCMODE) == 3) blkdev_open()
1588 if (file->f_flags & O_NDELAY) block_ioctl()
H A Dtimerfd.c245 if (file->f_flags & O_NONBLOCK) timerfd_read()
/linux-4.1.27/fs/proc/
H A Dkmsg.c36 if ((file->f_flags & O_NONBLOCK) && kmsg_read()
H A Dfd.c22 int f_flags = 0, ret = -ENOENT; seq_show() local
41 f_flags = file->f_flags; seq_show()
43 f_flags |= O_CLOEXEC; seq_show()
56 (long long)file->f_pos, f_flags, seq_show()
/linux-4.1.27/include/media/
H A Dadv7511.h39 u32 f_flags; member in struct:adv7511_cec_arg
/linux-4.1.27/arch/alpha/kernel/
H A Dbinfmt_loader.c15 if (eh->fh.f_magic != 0x183 || (eh->fh.f_flags & 0x3000) != 0x3000) load_binary()
H A Dosf_sys.c233 short f_flags; member in struct:osf_statfs
246 short f_flags; member in struct:osf_statfs64
305 tmp_stat.f_flags = 0; /* mount flags */ linux_to_osf_statfs()
/linux-4.1.27/fs/coda/
H A Dfile.c127 unsigned short flags = coda_file->f_flags & (~O_EXCL); coda_open()
145 host_file->f_flags |= coda_file->f_flags & (O_APPEND | O_SYNC); coda_open()
158 unsigned short flags = (coda_file->f_flags) & (~O_EXCL); coda_release()
H A Dpsdev.c220 if (file->f_flags & O_NONBLOCK) { coda_psdev_read()
/linux-4.1.27/drivers/char/pcmcia/
H A Dcm4000_cs.c944 ((filp->f_flags & O_NONBLOCK)
946 if (filp->f_flags & O_NONBLOCK)
957 ((filp->f_flags & O_NONBLOCK) || (dev->rpos < dev->rlen)))) {
958 if (filp->f_flags & O_NONBLOCK)
966 ((filp->f_flags & O_NONBLOCK)
968 if (filp->f_flags & O_NONBLOCK)
1096 ((filp->f_flags & O_NONBLOCK)
1098 if (filp->f_flags & O_NONBLOCK)
1111 ((filp->f_flags & O_NONBLOCK)
1113 if (filp->f_flags & O_NONBLOCK)
1486 ((filp->f_flags & O_NONBLOCK)
1489 if (filp->f_flags & O_NONBLOCK)
1536 ((filp->f_flags & O_NONBLOCK)
1539 if (filp->f_flags & O_NONBLOCK)
1554 ((filp->f_flags & O_NONBLOCK)
1557 if (filp->f_flags & O_NONBLOCK)
1585 ((filp->f_flags & O_NONBLOCK)
1588 if (filp->f_flags & O_NONBLOCK)
1597 ((filp->f_flags & O_NONBLOCK)
1600 if (filp->f_flags & O_NONBLOCK)
1672 if (filp->f_flags & O_NONBLOCK) {
H A Dcm4040_cs.c234 if (filp->f_flags & O_NONBLOCK) { cm4040_read()
235 DEBUGP(4, dev, "filep->f_flags O_NONBLOCK set\n"); cm4040_read()
338 if (filp->f_flags & O_NONBLOCK) {
339 DEBUGP(4, dev, "filep->f_flags O_NONBLOCK set\n");
460 if (filp->f_flags & O_NONBLOCK) {
461 DEBUGP(4, dev, "filep->f_flags O_NONBLOCK set\n");
/linux-4.1.27/arch/mips/boot/
H A Decoff.h11 unsigned short f_flags; /* flags */ member in struct:filehdr
H A Delf2ecoff.c227 f->f_flags = swab16(f->f_flags); convert_ecoff_filehdr()
444 efh.f_flags = 0x100f; /* Stripped, not sharable. */ main()
/linux-4.1.27/arch/alpha/include/uapi/asm/
H A Da.out.h22 __u16 f_opthdr, f_flags; member in struct:filehdr
/linux-4.1.27/fs/notify/fanotify/
H A Dfanotify_user.c31 * Internal and external open flags are stored together in field f_flags of
81 client_fd = get_unused_fd_flags(group->fanotify_data.f_flags); create_fd()
93 group->fanotify_data.f_flags | FMODE_NONOTIFY, create_fd()
282 if (file->f_flags & O_NONBLOCK) fanotify_read()
693 int f_flags, fd; SYSCALL_DEFINE2() local
724 f_flags = O_RDWR | FMODE_NONOTIFY; SYSCALL_DEFINE2()
726 f_flags |= O_CLOEXEC; SYSCALL_DEFINE2()
728 f_flags |= O_NONBLOCK; SYSCALL_DEFINE2()
749 group->fanotify_data.f_flags = event_f_flags; SYSCALL_DEFINE2()
789 fd = anon_inode_getfd("[fanotify]", &fanotify_fops, group, f_flags); SYSCALL_DEFINE2()
/linux-4.1.27/drivers/media/pci/ttpci/
H A Dav7110_av.c949 if ((file->f_flags & O_ACCMODE) != O_RDONLY) dvb_video_poll()
957 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { dvb_video_poll()
979 if ((file->f_flags & O_ACCMODE) == O_RDONLY) dvb_video_write()
988 return ts_play(av7110, buf, count, file->f_flags & O_NONBLOCK, 1); dvb_video_write()
990 return dvb_play(av7110, buf, count, file->f_flags & O_NONBLOCK, 1); dvb_video_write()
1029 return ts_play(av7110, buf, count, file->f_flags & O_NONBLOCK, 0); dvb_audio_write()
1031 return dvb_aplay(av7110, buf, count, file->f_flags & O_NONBLOCK, 0); dvb_audio_write()
1107 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { dvb_video_ioctl()
1186 ret = dvb_video_get_event(av7110, parg, file->f_flags); dvb_video_ioctl()
1234 file->f_flags & O_NONBLOCK); dvb_video_ioctl()
1319 if (((file->f_flags & O_ACCMODE) == O_RDONLY) && dvb_audio_ioctl()
1470 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { dvb_video_open()
1491 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { dvb_video_release()
H A Dav7110_ca.c154 int non_blocking = file->f_flags & O_NONBLOCK; ci_ll_write()
193 int non_blocking = file->f_flags & O_NONBLOCK; ci_ll_read()
/linux-4.1.27/drivers/char/
H A Dsnsc.c171 if (file->f_flags & O_NONBLOCK) { scdrv_read()
190 if (file->f_flags & O_NONBLOCK) { scdrv_read()
263 if (file->f_flags & O_NONBLOCK) { scdrv_write()
287 if (file->f_flags & O_NONBLOCK) { scdrv_write()
H A Dppdev.c135 (file->f_flags & O_NONBLOCK) ? pp_read()
166 if (file->f_flags & O_NONBLOCK) { pp_read()
214 (file->f_flags & O_NONBLOCK) ? pp_write()
248 if (file->f_flags & O_NONBLOCK) { pp_write()
H A Ddtlk.c148 if (file->f_flags & O_NONBLOCK) dtlk_read()
213 if (file->f_flags & O_NONBLOCK) dtlk_write()
H A Dnvram.c346 if ((nvram_open_cnt && (file->f_flags & O_EXCL)) || nvram_open()
353 if (file->f_flags & O_EXCL) nvram_open()
H A Draw.c80 filp->f_flags |= O_DIRECT; raw_open()
H A Dlp.c303 int nonblock = ((file->f_flags & O_NONBLOCK) || lp_write()
420 int nonblock = ((file->f_flags & O_NONBLOCK) || lp_read()
514 if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { lp_open()
H A Dgenrtc.c185 if (file->f_flags & O_NONBLOCK && !gen_rtc_irq_data) gen_rtc_read()
H A Dvirtio_console.c768 if (filp->f_flags & O_NONBLOCK) port_fops_read()
830 nonblock = filp->f_flags & O_NONBLOCK; port_fops_write()
953 ret = wait_port_writable(port, filp->f_flags & O_NONBLOCK); port_fops_splice_write()
H A Dapm-emulation.c218 if (queue_empty(&as->queue) && fp->f_flags & O_NONBLOCK) apm_read()
H A Dmem.c258 if (file->f_flags & O_DSYNC) uncached_access()
/linux-4.1.27/arch/mips/loongson/common/
H A Dmem.c97 if (file->f_flags & O_DSYNC) __uncached_access()
/linux-4.1.27/arch/mips/kernel/
H A Drtlx.c329 return rtlx_open(iminor(inode), (filp->f_flags & O_NONBLOCK) ? 0 : 1); file_open()
365 if (!rtlx_read_poll(minor, (file->f_flags & O_NONBLOCK) ? 0 : 1)) file_read()
380 if (file->f_flags & O_NONBLOCK) file_write()
/linux-4.1.27/drivers/media/dvb-core/
H A Ddmxdev.c139 if ((file->f_flags & O_ACCMODE) == O_RDWR) { dvb_dvr_open()
146 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { dvb_dvr_open()
161 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { dvb_dvr_open()
190 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { dvb_dvr_release()
195 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { dvb_dvr_release()
226 if ((file->f_flags & O_ACCMODE) != O_WRONLY) dvb_dvr_write()
250 file->f_flags & O_NONBLOCK, dvb_dvr_read()
908 file->f_flags & O_NONBLOCK, dvb_dmxdev_read_sec()
929 file->f_flags & O_NONBLOCK, dvb_dmxdev_read_sec()
951 file->f_flags & O_NONBLOCK, dvb_demux_read()
1192 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { dvb_dvr_poll()
H A Ddvbdev.c116 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { dvb_generic_open()
139 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { dvb_generic_release()
/linux-4.1.27/drivers/s390/char/
H A Dhmcdrv_dev.c119 if (fp->f_flags & O_NONBLOCK) hmcdrv_dev_open()
125 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) hmcdrv_dev_open()
225 if (((fp->f_flags & O_ACCMODE) == O_WRONLY) || hmcdrv_dev_read()
H A Dvmur.c698 accmode = file->f_flags & O_ACCMODE; ur_open()
717 if (file->f_flags & O_NONBLOCK) { ur_open()
787 if ((file->f_flags & O_ACCMODE) != O_RDONLY) ur_llseek()
H A Dmonreader.c378 if (filp->f_flags & O_NONBLOCK) mon_read()
H A Dvmlogrdr.c323 if (filp->f_flags & O_NONBLOCK) vmlogrdr_open()
/linux-4.1.27/sound/core/seq/oss/
H A Dseq_oss_init.c299 if ((file->f_flags & O_ACCMODE) != O_RDONLY) translate_mode()
301 if ((file->f_flags & O_ACCMODE) != O_WRONLY) translate_mode()
303 if (file->f_flags & O_NONBLOCK) translate_mode()
/linux-4.1.27/arch/um/drivers/
H A Drandom.c71 if (filp->f_flags & O_NONBLOCK) rng_dev_read()
/linux-4.1.27/fs/notify/
H A Dfdinfo.c156 flags, group->fanotify_data.f_flags); fanotify_show_fdinfo()
/linux-4.1.27/fs/nfs/
H A Dnfs4file.c28 unsigned openflags = filp->f_flags; nfs4_file_open()
H A Dfile.c71 res = nfs_check_flags(filp->f_flags); nfs_file_open()
108 if (filp->f_flags & O_DIRECT) nfs_revalidate_file_size()
662 if (IS_SYNC(inode) || (filp->f_flags & O_DSYNC)) nfs_need_sync_write()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-radio-rx.c89 if (file->f_flags & O_NONBLOCK) vivid_radio_rx_read()
177 if (file->f_flags & O_NONBLOCK) vivid_radio_rx_s_hw_freq_seek()
H A Dvivid-radio-tx.c76 if (file->f_flags & O_NONBLOCK) vivid_radio_tx_write()
/linux-4.1.27/drivers/staging/speakup/
H A Dspeakup_soft.c180 /*if ((fp->f_flags & O_ACCMODE) != O_RDONLY) */ softsynth_open()
222 if (fp->f_flags & O_NONBLOCK) { softsynth_read()
/linux-4.1.27/drivers/input/serio/
H A Dserio_raw.c174 (file->f_flags & O_NONBLOCK)) serio_raw_read()
189 if (!(file->f_flags & O_NONBLOCK)) { serio_raw_read()
/linux-4.1.27/drivers/tty/serial/
H A Dkgdb_nmi.c276 unsigned int mode = file->f_flags & O_ACCMODE; kgdb_nmi_tty_open()
289 unsigned int mode = file->f_flags & O_ACCMODE; kgdb_nmi_tty_close()
/linux-4.1.27/arch/s390/include/asm/
H A Dcompat.h161 u32 f_flags; member in struct:compat_statfs
176 u32 f_flags; member in struct:compat_statfs64
/linux-4.1.27/kernel/power/
H A Duser.c62 if ((filp->f_flags & O_ACCMODE) == O_RDWR) { snapshot_open()
71 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { snapshot_open()
/linux-4.1.27/sound/oss/
H A Dmidibuf.c279 if (file->f_flags & O_NONBLOCK) { MIDIbuf_write()
323 if (file->f_flags & O_NONBLOCK) { MIDIbuf_read()
H A Daudio.c252 if ((err = DMAbuf_getwrbuffer(dev, &dma_buf, &buf_size, !!(file->f_flags & O_NONBLOCK))) < 0) audio_write()
255 if ((file->f_flags & O_NONBLOCK) && err == -EAGAIN) audio_write()
326 if ((buf_no = DMAbuf_getrdbuffer(dev, &dmabuf, &l, !!(file->f_flags & O_NONBLOCK))) < 0) audio_read()
335 if ((file->f_flags & O_NONBLOCK) && buf_no == -EAGAIN) audio_read()
437 file->f_flags |= O_NONBLOCK; audio_ioctl()
H A Dsequencer.c100 if (file->f_flags & O_NONBLOCK) { sequencer_read()
305 if (!seq_queue(event_rec, (file->f_flags & (O_NONBLOCK) ? 1 : 0))) sequencer_write()
312 if (!processed && (file->f_flags & O_NONBLOCK)) sequencer_write()
1131 if (mode != OPEN_READ && !(file->f_flags & O_NONBLOCK)) sequencer_release()
H A Dswarm_cs4297a.c1743 if (file->f_flags & O_NONBLOCK) cs4297a_read()
1839 if (file->f_flags & O_NONBLOCK) cs4297a_write()
2004 0 /*file->f_flags & O_NONBLOCK */ cs4297a_ioctl()
2227 file->f_flags |= O_NONBLOCK; cs4297a_ioctl()
2388 drain_dac(s, file->f_flags & O_NONBLOCK); cs4297a_release()
2397 drain_adc(s, file->f_flags & O_NONBLOCK); cs4297a_release()
2452 if (file->f_flags & O_NONBLOCK) { cs4297a_locked_open()
2469 if (file->f_flags & O_NONBLOCK) { cs4297a_locked_open()
/linux-4.1.27/drivers/misc/genwqe/
H A Dcard_dev.c614 rc = __genwqe_execute_raw_ddcb(cd, req, filp->f_flags); do_flash_update()
732 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); do_flash_read()
1000 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); genwqe_execute_ddcb()
1028 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); do_execute_ddcb()
1095 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) genwqe_ioctl()
1131 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) genwqe_ioctl()
1154 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) genwqe_ioctl()
H A Dcard_base.h512 struct genwqe_ddcb_cmd *cmd, unsigned int f_flags);
525 unsigned int f_flags);
528 unsigned int f_flags);
H A Dcard_ddcb.c752 * @f_flags: file mode: blocking, non-blocking
759 unsigned int f_flags) __genwqe_enqueue_ddcb()
797 if (f_flags & O_NONBLOCK) { __genwqe_enqueue_ddcb()
913 * @f_flags: file mode: blocking, non-blocking
917 unsigned int f_flags) __genwqe_execute_raw_ddcb()
933 rc = __genwqe_enqueue_ddcb(cd, req, f_flags); __genwqe_execute_raw_ddcb()
758 __genwqe_enqueue_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req, unsigned int f_flags) __genwqe_enqueue_ddcb() argument
915 __genwqe_execute_raw_ddcb(struct genwqe_dev *cd, struct genwqe_ddcb_cmd *cmd, unsigned int f_flags) __genwqe_execute_raw_ddcb() argument
/linux-4.1.27/arch/sparc/include/asm/
H A Dcompat.h138 int f_flags; member in struct:compat_statfs
/linux-4.1.27/drivers/block/aoe/
H A Daoechr.c231 if (filp->f_flags & O_NDELAY) { aoechr_read()
/linux-4.1.27/arch/mips/include/asm/
H A Dcompat.h115 int f_flags; member in struct:compat_statfs
/linux-4.1.27/arch/mips/mm/
H A Dcache.c237 if (file->f_flags & O_DSYNC) __uncached_access()
/linux-4.1.27/arch/parisc/include/asm/
H A Dcompat.h110 s32 f_flags; member in struct:compat_statfs
/linux-4.1.27/arch/powerpc/include/asm/
H A Dcompat.h108 int f_flags; member in struct:compat_statfs
/linux-4.1.27/arch/alpha/boot/tools/
H A Dobjstrip.c199 if (!(aout->fh.f_flags & COFF_F_EXEC)) { main()
/linux-4.1.27/fs/9p/
H A Dvfs_file.c71 omode = v9fs_open_to_dotl_flags(file->f_flags); v9fs_file_open()
73 omode = v9fs_uflags2omode(file->f_flags, v9fs_file_open()
86 if ((file->f_flags & O_APPEND) && v9fs_file_open()
95 ((file->f_flags & O_ACCMODE) != O_RDONLY)) { v9fs_file_open()
H A Dcache.c248 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) v9fs_cache_inode_set_cookie()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-event.c115 if (filep->f_flags & O_NONBLOCK) iio_event_chrdev_read()
141 if (copied == 0 && (filep->f_flags & O_NONBLOCK)) iio_event_chrdev_read()
H A Dindustrialio-buffer.c124 if (!(filp->f_flags & O_NONBLOCK)) iio_buffer_read_first_n_outer()
137 if (ret == 0 && (filp->f_flags & O_NONBLOCK)) iio_buffer_read_first_n_outer()
/linux-4.1.27/drivers/char/hw_random/
H A Dcore.c245 !(filp->f_flags & O_NONBLOCK)); rng_dev_read()
254 if (filp->f_flags & O_NONBLOCK) { rng_dev_read()
/linux-4.1.27/drivers/thermal/int340x_thermal/
H A Dacpi_thermal_rel.c37 (acpi_thermal_rel_chrdev_count && (file->f_flags & O_EXCL))) { acpi_thermal_rel_open()
42 if (file->f_flags & O_EXCL) acpi_thermal_rel_open()
/linux-4.1.27/include/uapi/linux/
H A Dcoff.h63 char f_flags[2]; /* flags */ member in struct:COFF_filehdr
67 * Bits for f_flags:
/linux-4.1.27/fs/ecryptfs/
H A Dfile.c217 if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE) ecryptfs_open()
218 == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { ecryptfs_open()
/linux-4.1.27/sound/core/
H A Drawmidi.c373 if ((file->f_flags & O_APPEND) && !(file->f_flags & O_NONBLOCK)) snd_rawmidi_open()
405 if ((file->f_flags & O_APPEND) || maj == SOUND_MAJOR) /* OSS emul? */ snd_rawmidi_open()
420 if (file->f_flags & O_NONBLOCK) { snd_rawmidi_open()
1006 if ((file->f_flags & O_NONBLOCK) != 0 || result > 0) { snd_rawmidi_read()
1310 if (file->f_flags & O_NONBLOCK) { snd_rawmidi_write()
1334 if ((size_t)count1 < count && (file->f_flags & O_NONBLOCK)) snd_rawmidi_write()
1338 if (file->f_flags & O_DSYNC) { snd_rawmidi_write()
H A Dpcm_native.c1510 /* we use the second argument for updating f_flags */ snd_pcm_pre_prepare()
1512 int f_flags) snd_pcm_pre_prepare()
1520 substream->f_flags = f_flags; snd_pcm_pre_prepare()
1549 * @file: file to refer f_flags
1558 int f_flags; snd_pcm_prepare() local
1561 f_flags = file->f_flags; snd_pcm_prepare()
1563 f_flags = substream->f_flags; snd_pcm_prepare()
1568 substream, f_flags); snd_pcm_prepare()
1677 if (file->f_flags & O_NONBLOCK) snd_pcm_drain()
1679 } else if (substream->f_flags & O_NONBLOCK) snd_pcm_drain()
2378 if (file->f_flags & O_NONBLOCK) { snd_pcm_open()
1511 snd_pcm_pre_prepare(struct snd_pcm_substream *substream, int f_flags) snd_pcm_pre_prepare() argument
H A Dinfo.c318 mode = file->f_flags & O_ACCMODE; snd_info_entry_open()
408 mode = file->f_flags & O_ACCMODE; snd_info_entry_release()
H A Dpcm.c937 if (file->f_flags & O_APPEND) { snd_pcm_attach_substream()
996 substream->f_flags = file->f_flags; snd_pcm_attach_substream()
H A Dhwdep.c123 if (file->f_flags & O_NONBLOCK) { snd_hwdep_open()
H A Dpcm_lib.c2138 nonblock = !!(substream->f_flags & O_NONBLOCK); snd_pcm_lib_write()
2201 nonblock = !!(substream->f_flags & O_NONBLOCK); snd_pcm_lib_writev()
2350 nonblock = !!(substream->f_flags & O_NONBLOCK); snd_pcm_lib_read()
2409 nonblock = !!(substream->f_flags & O_NONBLOCK); snd_pcm_lib_readv()
H A Dcompress_offload.c92 if ((f->f_flags & O_ACCMODE) == O_WRONLY) snd_compr_open()
94 else if ((f->f_flags & O_ACCMODE) == O_RDONLY) snd_compr_open()
/linux-4.1.27/drivers/xen/
H A Dmcelog.c79 (xen_mce_chrdev_open_count && (file->f_flags & O_EXCL))) { xen_mce_chrdev_open()
85 if (file->f_flags & O_EXCL) xen_mce_chrdev_open()
H A Devtchn.c193 if (file->f_flags & O_NONBLOCK) evtchn_read()
/linux-4.1.27/sound/core/oss/
H A Dpcm_oss.c1401 else if ((substream->f_flags & O_NONBLOCK) != 0) { snd_pcm_oss_write1()
1416 if ((substream->f_flags & O_NONBLOCK) != 0 && snd_pcm_oss_write1()
1679 saved_f_flags = substream->f_flags; snd_pcm_oss_sync()
1680 substream->f_flags &= ~O_NONBLOCK; snd_pcm_oss_sync()
1682 substream->f_flags = saved_f_flags; snd_pcm_oss_sync()
1926 file->f_flags |= O_NONBLOCK; snd_pcm_oss_nonblock()
2272 substream->f_flags |= O_NONBLOCK; snd_pcm_oss_init_substream()
2274 substream->f_flags &= ~O_NONBLOCK; snd_pcm_oss_init_substream()
2333 file->f_flags &= ~O_APPEND; snd_pcm_oss_open_file()
2420 nonblock = !!(file->f_flags & O_NONBLOCK); snd_pcm_oss_open()
2669 substream->f_flags = file->f_flags & O_NONBLOCK; snd_pcm_oss_read()
2693 substream->f_flags = file->f_flags & O_NONBLOCK; snd_pcm_oss_write()
/linux-4.1.27/drivers/media/usb/em28xx/
H A Dem28xx-audio.c267 nonblock = !!(substream->f_flags & O_NONBLOCK); snd_em28xx_capture_open()
509 nonblock = !!(substream->f_flags & O_NONBLOCK); em28xx_vol_put()
547 nonblock = !!(substream->f_flags & O_NONBLOCK); em28xx_vol_get()
582 nonblock = !!(substream->f_flags & O_NONBLOCK); em28xx_vol_put_mute()
623 nonblock = !!(substream->f_flags & O_NONBLOCK); em28xx_vol_get_mute()
/linux-4.1.27/ipc/
H A Dmqueue.c1032 if (f.file->f_flags & O_NONBLOCK) { SYSCALL_DEFINE5()
1137 if (f.file->f_flags & O_NONBLOCK) { SYSCALL_DEFINE5()
1342 omqstat.mq_flags = f.file->f_flags & O_NONBLOCK; SYSCALL_DEFINE3()
1347 f.file->f_flags |= O_NONBLOCK; SYSCALL_DEFINE3()
1349 f.file->f_flags &= ~O_NONBLOCK; SYSCALL_DEFINE3()
/linux-4.1.27/fs/cifs/
H A Dfile.c114 struct super_block *sb, int mode, unsigned int f_flags, cifs_posix_open()
140 posix_flags = cifs_posix_convert_flags(f_flags); cifs_posix_open()
176 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, cifs_nt_open()
190 desired_access = cifs_convert_flags(f_flags); cifs_nt_open()
216 disposition = cifs_get_disposition(f_flags); cifs_nt_open()
303 cfile->f_flags = file->f_flags; cifs_new_fileinfo()
471 inode, file->f_flags, full_path); cifs_open()
473 if (file->f_flags & O_DIRECT && cifs_open()
492 file->f_flags, &oplock, &fid.netfid, xid); cifs_open()
521 file->f_flags, &oplock, &fid, xid); cifs_open()
642 inode, cfile->f_flags, full_path); cifs_reopen_file()
656 unsigned int oflags = cfile->f_flags & cifs_reopen_file()
673 desired_access = cifs_convert_flags(cfile->f_flags); cifs_reopen_file()
1735 if (OPEN_FMODE(open_file->f_flags) & FMODE_READ) { find_readable_file()
1788 if (OPEN_FMODE(open_file->f_flags) & FMODE_WRITE) { find_writable_file()
2996 if ((file->f_flags & O_ACCMODE) == O_WRONLY) cifs_user_readv()
3158 if ((file->f_flags & O_ACCMODE) == O_WRONLY) cifs_read()
3638 if (OPEN_FMODE(open_file->f_flags) & FMODE_WRITE) { is_inode_writable()
3733 if ((file->f_flags & O_ACCMODE) != O_WRONLY && !oncethru) { cifs_write_begin()
113 cifs_posix_open(char *full_path, struct inode **pinode, struct super_block *sb, int mode, unsigned int f_flags, __u32 *poplock, __u16 *pnetfid, unsigned int xid) cifs_posix_open() argument
175 cifs_nt_open(char *full_path, struct inode *inode, struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, struct cifs_fid *fid, unsigned int xid) cifs_nt_open() argument
H A Dfscache.c103 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) cifs_fscache_set_inode_cookie()
/linux-4.1.27/fs/ocfs2/dlmfs/
H A Ddlmfs.c143 file->f_flags); dlmfs_file_open()
145 status = dlmfs_decode_open_flags(file->f_flags, &level, &flags); dlmfs_file_open()
151 file->f_flags &= ~O_APPEND; dlmfs_file_open()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dfile.c535 .it_flags = file->f_flags }; ll_file_open()
542 inode->i_generation, inode, file->f_flags); ll_file_open()
571 /* Convert f_flags into access mode. We cannot use file->f_mode, ll_file_open()
576 if (file->f_flags & O_TRUNC) ll_file_open()
685 (cl_is_lov_delay_create(file->f_flags) || ll_file_open()
690 cl_lov_delay_create_clear(&file->f_flags); ll_file_open()
1059 if (file->f_flags & O_NOATIME) file_is_noatime()
1084 io->u.ci_rw.crw_nonblock = file->f_flags & O_NONBLOCK; ll_io_init()
1086 io->u.ci_wr.wr_append = !!(file->f_flags & O_APPEND); ll_io_init()
1087 io->u.ci_wr.wr_sync = file->f_flags & O_SYNC || ll_io_init()
1088 file->f_flags & O_DIRECT || ll_io_init()
1096 } else if (file->f_flags & O_APPEND) { ll_io_init()
1491 cl_lov_delay_create_clear(&file->f_flags); ll_lov_setea()
1520 cl_lov_delay_create_clear(&file->f_flags); ll_lov_setstripe()
1576 arg, (file->f_flags & O_NONBLOCK), &grouplock); ll_get_grouplock()
2236 !(file->f_flags & O_DIRECT)) { ll_file_ioctl()
2259 if ((file->f_flags & O_ACCMODE) == 0) /* O_RDONLY */ ll_file_ioctl()
2267 if ((file2->f_flags & O_ACCMODE) != 0) /* O_WRONLY or O_RDWR */ ll_file_ioctl()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_fops.c144 if (filp->f_flags & O_EXCL) drm_open_helper()
497 if (filp->f_flags & O_NONBLOCK) { drm_read()
/linux-4.1.27/security/tomoyo/
H A Dtomoyo.c314 if (!(cmd == F_SETFL && ((arg ^ file->f_flags) & O_APPEND))) tomoyo_file_fcntl()
330 int flags = f->f_flags; tomoyo_file_open()
/linux-4.1.27/drivers/isdn/divert/
H A Ddivert_procfs.c90 if (file->f_flags & O_NONBLOCK) isdn_divert_read()
/linux-4.1.27/drivers/isdn/mISDN/
H A Dtimerdev.c117 if (filep->f_flags & O_NONBLOCK) mISDN_read()
/linux-4.1.27/arch/x86/include/asm/
H A Dcompat.h114 int f_flags; member in struct:compat_statfs
/linux-4.1.27/drivers/bluetooth/
H A Dhci_vhci.c288 if (file->f_flags & O_NONBLOCK) { vhci_read()
/linux-4.1.27/drivers/usb/gadget/function/
H A Duvc_v4l2.c190 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK); uvc_v4l2_dqbuf()
H A Df_hid.c214 if (file->f_flags & O_NONBLOCK) f_hidg_read()
284 if (file->f_flags & O_NONBLOCK) f_hidg_write()
H A Df_fs.c268 ret = ffs_mutex_lock(&ffs->mutex, file->f_flags & O_NONBLOCK); ffs_ep0_write()
444 ret = ffs_mutex_lock(&ffs->mutex, file->f_flags & O_NONBLOCK); ffs_ep0_read()
472 if ((file->f_flags & O_NONBLOCK) && !ffs->ev.count) { ffs_ep0_read()
586 ret = ffs_mutex_lock(&ffs->mutex, file->f_flags & O_NONBLOCK); ffs_ep0_poll()
700 if (file->f_flags & O_NONBLOCK) { ffs_epfile_io()
756 ret = ffs_mutex_lock(&epfile->mutex, file->f_flags & O_NONBLOCK); ffs_epfile_io()
H A Df_printer.c476 if (fd->f_flags & (O_NONBLOCK|O_NDELAY)) { printer_read()
588 if (fd->f_flags & (O_NONBLOCK|O_NDELAY)) { printer_write()
/linux-4.1.27/arch/powerpc/boot/
H A Drs6000.h19 char f_flags[2]; /* flags */ member in struct:external_filehdr
/linux-4.1.27/arch/arm64/include/asm/
H A Dcompat.h140 int f_flags; member in struct:compat_statfs
/linux-4.1.27/fs/autofs4/
H A Dautofs_i.h221 pipe->f_flags |= O_DIRECT; autofs_prepare_pipe()
/linux-4.1.27/fs/ceph/
H A Dfile.c148 flags = file->f_flags & ~(O_CREAT|O_EXCL); ceph_open()
153 ceph_vinop(inode), file, flags, file->f_flags); ceph_open()
445 (file->f_flags & O_DIRECT) ? "O_DIRECT" : ""); ceph_sync_read()
1050 ((file->f_flags & O_SYNC) || IS_SYNC(file->f_mapping->host) || ceph_write_iter()
/linux-4.1.27/net/batman-adv/
H A Dicmp_socket.c114 if ((file->f_flags & O_NONBLOCK) && (socket_client->queue_len == 0)) batadv_socket_read()
H A Ddebugfs.c130 if ((file->f_flags & O_NONBLOCK) && batadv_log_empty(debug_log)) batadv_log_read()
/linux-4.1.27/security/apparmor/include/
H A Dfile.h197 int flags = file->f_flags; aa_map_file_to_perms()
/linux-4.1.27/security/integrity/ima/
H A Dima_api.c211 if (file->f_flags & O_DIRECT) { ima_collect_measurement()
H A Dima_fs.c311 if (!(filp->f_flags & O_WRONLY)) ima_open_policy()
H A Dima_main.c227 if (file->f_flags & O_DIRECT) process_measurement()
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Dinode.c289 get_ready_ep (unsigned f_flags, struct ep_data *epdata, bool is_write) get_ready_ep() argument
293 if (f_flags & O_NONBLOCK) { get_ready_ep()
399 if ((status = get_ready_ep (fd->f_flags, data, false)) < 0) ep_ioctl()
582 if ((value = get_ready_ep(file->f_flags, epdata, false)) < 0) ep_read_iter()
642 if ((value = get_ready_ep(file->f_flags, epdata, true)) < 0) ep_write_iter()
955 if ((fd->f_flags & O_NONBLOCK) != 0 ep0_read()
1037 if (fd->f_flags & O_NONBLOCK) { ep0_read()
/linux-4.1.27/net/
H A Dsocket.c384 file->f_flags = O_RDWR | (flags & O_NONBLOCK); sock_alloc_file()
764 flags = (file->f_flags & O_NONBLOCK) ? MSG_DONTWAIT : 0; sock_sendpage()
791 if (file->f_flags & O_NONBLOCK) sock_read_iter()
816 if (file->f_flags & O_NONBLOCK) sock_write_iter()
1484 err = sock->ops->accept(sock, newsock, sock->file->f_flags); SYSCALL_DEFINE4()
1553 sock->file->f_flags); SYSCALL_DEFINE3()
1657 if (sock->file->f_flags & O_NONBLOCK) SYSCALL_DEFINE6()
1709 if (sock->file->f_flags & O_NONBLOCK) SYSCALL_DEFINE6()
1941 if (sock->file->f_flags & O_NONBLOCK) ___sys_sendmsg()
2106 if (sock->file->f_flags & O_NONBLOCK) ___sys_recvmsg()
/linux-4.1.27/drivers/char/xillybus/
H A Dxillybus_core.c813 if (!no_time_left && (filp->f_flags & O_NONBLOCK)) { xillybus_read()
915 if (filp->f_flags & O_NONBLOCK) xillybus_read()
1368 if (filp->f_flags & O_NONBLOCK) { xillybus_write()
1455 if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && xillybus_open()
1463 if ((filp->f_mode & FMODE_WRITE) && (filp->f_flags & O_NONBLOCK) && xillybus_open()
/linux-4.1.27/drivers/media/platform/
H A Dtimblogiw.c324 return videobuf_dqbuf(&fh->vb_vidq, b, file->f_flags & O_NONBLOCK); timblogiw_dqbuf()
721 file->f_flags & O_NONBLOCK); timblogiw_read()
/linux-4.1.27/drivers/media/radio/si470x/
H A Dradio-si470x-common.c471 if (file->f_flags & O_NONBLOCK) { si470x_fops_read()
713 if (file->f_flags & O_NONBLOCK) si470x_vidioc_s_hw_freq_seek()
/linux-4.1.27/drivers/misc/
H A Dhpilo.c590 data->ccb_excl = fp->f_flags & O_EXCL; ilo_open()
616 if (fp->f_flags & O_EXCL || hw->ccb_alloc[slot]->ccb_excl) { ilo_open()
/linux-4.1.27/drivers/input/misc/
H A Duinput.c539 (file->f_flags & O_NONBLOCK)) uinput_read()
549 if (!(file->f_flags & O_NONBLOCK)) uinput_read()
/linux-4.1.27/drivers/usb/misc/
H A Dldusb.c484 if (file->f_flags & O_NONBLOCK) { ld_usb_read()
561 if (file->f_flags & O_NONBLOCK) { ld_usb_write()
H A Diowarrior.c297 if (file->f_flags & O_NONBLOCK) iowarrior_read()
389 if (file->f_flags & O_NONBLOCK) { iowarrior_write()
H A Dlegousbtower.c583 if (file->f_flags & O_NONBLOCK) { tower_read()
664 if (file->f_flags & O_NONBLOCK) { tower_write()
/linux-4.1.27/drivers/usb/
H A Dusb-skeleton.c257 if (file->f_flags & O_NONBLOCK) { skel_read()
380 if (!(file->f_flags & O_NONBLOCK)) { skel_write()
/linux-4.1.27/drivers/isdn/hysdn/
H A Dhysdn_proclog.c180 if (file->f_flags & O_NONBLOCK) hysdn_log_read()
/linux-4.1.27/drivers/hid/
H A Dhid-roccat.c94 if (file->f_flags & O_NONBLOCK) { roccat_read()
H A Dhidraw.c68 if (file->f_flags & O_NONBLOCK) { hidraw_read()
H A Dhid-sensor-custom.c662 if (file->f_flags & O_NONBLOCK) hid_sensor_custom_read()
H A Duhid.c650 if (file->f_flags & O_NONBLOCK) { uhid_char_read()
/linux-4.1.27/fs/xfs/
H A Dxfs_ioctl.c260 filp->f_flags |= O_NOATIME; xfs_open_by_handle()
632 if (filp->f_flags & O_DSYNC) xfs_ioc_space()
1453 (f.file->f_flags & O_APPEND)) { xfs_ioc_swapext()
1466 (tmp.file->f_flags & O_APPEND)) { xfs_ioc_swapext()
/linux-4.1.27/drivers/media/common/siano/
H A Dsmsdvb-debugfs.c403 if (file->f_flags & O_NONBLOCK) { smsdvb_stats_read()
/linux-4.1.27/kernel/time/
H A Dposix-clock.c62 err = clk->ops.read(clk, fp->f_flags, buf, count); posix_clock_read()
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-fileops.c518 rc = ivtv_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK); ivtv_v4l2_read()
631 if (filp->f_flags & O_NONBLOCK) ivtv_write()
714 if (count && !(filp->f_flags & O_NONBLOCK)) ivtv_write()
/linux-4.1.27/drivers/media/pci/saa7164/
H A Dsaa7164-encoder.c1183 if ((file->f_flags & O_NONBLOCK) == 0) { fops_read()
1235 if ((file->f_flags & O_NONBLOCK) == 0) { fops_read()
1279 if ((file->f_flags & O_NONBLOCK) == 0) { fops_poll()
H A Dsaa7164-vbi.c1129 if ((file->f_flags & O_NONBLOCK) == 0) { fops_read()
1181 if ((file->f_flags & O_NONBLOCK) == 0) { fops_read()
1226 if ((file->f_flags & O_NONBLOCK) == 0) { fops_poll()
/linux-4.1.27/drivers/media/common/saa7146/
H A Dsaa7146_video.c931 return videobuf_dqbuf(&fh->video_q, buf, file->f_flags & O_NONBLOCK); vidioc_dqbuf()
933 return videobuf_dqbuf(&fh->vbi_q, buf, file->f_flags & O_NONBLOCK); vidioc_dqbuf()
1287 file->f_flags & O_NONBLOCK); video_read()
H A Dsaa7146_vbi.c479 file->f_flags & O_NONBLOCK); vbi_read()
/linux-4.1.27/net/9p/
H A Dtrans_fd.c282 if (!(ts->rd->f_flags & O_NONBLOCK)) p9_fd_read()
425 if (!(ts->wr->f_flags & O_NONBLOCK)) p9_fd_write()
834 p->rd->f_flags |= O_NONBLOCK; p9_socket_open()
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
H A Dfile.c796 if (file->f_flags & O_NONBLOCK) { spufs_ibox_read()
953 if (file->f_flags & O_NONBLOCK) { spufs_wbox_write()
1635 if (file->f_flags & O_NONBLOCK) { spufs_mfc_read()
1772 if (file->f_flags & O_NONBLOCK) { spufs_mfc_write()
2522 } else if (file->f_flags & O_NONBLOCK) { spufs_switch_log_read()
/linux-4.1.27/drivers/scsi/
H A Dsg.c276 int flags = filp->f_flags; sg_open()
450 if (filp->f_flags & O_NONBLOCK) { sg_read()
601 if (!((filp->f_flags & O_NONBLOCK) || sg_write()
611 blocking = !(filp->f_flags & O_NONBLOCK); sg_write()
847 read_only = (O_RDWR != (filp->f_flags & O_ACCMODE)); sg_ioctl()
1109 cmd_in, filp->f_flags & O_NDELAY); sg_ioctl()
H A Dch.c614 file->f_flags & O_NDELAY); ch_ioctl()
/linux-4.1.27/fs/fuse/
H A Dfile.c30 inarg.flags = file->f_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); fuse_send_open()
182 if (fc->atomic_o_trunc && (file->f_flags & O_TRUNC)) { fuse_finish_open()
201 bool lock_inode = (file->f_flags & O_TRUNC) && fuse_open_common()
256 fuse_prepare_release(ff, file->f_flags, opcode); fuse_release_common()
508 inarg->flags = file->f_flags; fuse_read_fill()
957 inarg->flags = file->f_flags; fuse_send_write()
H A Dcuse.c146 fuse_sync_release(ff, file->f_flags); cuse_release()
/linux-4.1.27/drivers/usb/class/
H A Dusblp.c724 if ((rv = usblp_wwait(usblp, !!(file->f_flags & O_NONBLOCK))) < 0) usblp_write()
763 rv = usblp_wwait(usblp, !!(file->f_flags&O_NONBLOCK)); usblp_write()
820 rv = usblp_rwait_and_lock(usblp, !!(file->f_flags & O_NONBLOCK)); usblp_read()
H A Dcdc-wdm.c375 if (!(file->f_flags & O_NONBLOCK)) wdm_write()
496 if (file->f_flags & O_NONBLOCK) { wdm_read()
/linux-4.1.27/arch/cris/arch-v32/drivers/
H A Dsync_serial.c630 if (file->f_flags & O_NONBLOCK) __sync_serial_read()
1154 if (!(file->f_flags & O_NONBLOCK)) { sync_serial_write()
1179 if (file->f_flags & O_NONBLOCK) { sync_serial_write()
/linux-4.1.27/drivers/media/radio/
H A Dradio-cadet.c341 if (!cadet_has_rds_data(dev) && (file->f_flags & O_NONBLOCK)) cadet_read()
H A Dradio-tea5777.c399 if (file->f_flags & O_NONBLOCK) vidioc_s_hw_freq_seek()
H A Dtea575x.c385 if (file->f_flags & O_NONBLOCK) snd_tea575x_s_hw_freq_seek()
H A Dradio-si476x.c761 if (file->f_flags & O_NONBLOCK) si476x_radio_s_hw_freq_seek()
1124 if (file->f_flags & O_NONBLOCK) si476x_radio_fops_read()
H A Dradio-mr800.c366 if (file->f_flags & O_NONBLOCK) vidioc_s_hw_freq_seek()
/linux-4.1.27/drivers/media/radio/wl128x/
H A Dfmdrv_v4l2.c411 if (file->f_flags & O_NONBLOCK) fm_v4l2_vidioc_s_hw_freq_seek()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-subdev.c218 return v4l2_event_dequeue(vfh, arg, file->f_flags & O_NONBLOCK); subdev_do_ioctl()
H A Dv4l2-mem2mem.c425 return vb2_dqbuf(vq, buf, file->f_flags & O_NONBLOCK); v4l2_m2m_dqbuf()
/linux-4.1.27/drivers/misc/cxl/
H A Dfile.c300 if (file->f_flags & O_NONBLOCK) { afu_read()
/linux-4.1.27/drivers/misc/mei/
H A Damthif.c160 if (cb == NULL && file->f_flags & O_NONBLOCK) mei_amthif_read()
H A Dmain.c196 if (file->f_flags & O_NONBLOCK) { mei_read()
/linux-4.1.27/drivers/rtc/
H A Drtc-dev.c176 if (file->f_flags & O_NONBLOCK) { rtc_dev_read()
/linux-4.1.27/drivers/staging/media/lirc/
H A Dlirc_parallel.c347 if (filep->f_flags & O_NONBLOCK) { lirc_read()
H A Dlirc_sir.c224 if (file->f_flags & O_NONBLOCK) { lirc_read()
/linux-4.1.27/fs/overlayfs/
H A Dreaddir.c506 realfile = ovl_path_open(&realpath, file->f_flags); ovl_dir_open()
/linux-4.1.27/fs/hfsplus/
H A Dinode.c219 if (!(file->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) hfsplus_file_open()
/linux-4.1.27/arch/powerpc/kernel/
H A Drtasd.c354 if (file->f_flags & O_NONBLOCK) { rtas_log_read()
/linux-4.1.27/arch/arm64/mm/
H A Dmmu.c57 else if (file->f_flags & O_SYNC) phys_mem_access_prot()
/linux-4.1.27/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c134 if (filp->f_flags & O_NONBLOCK) xenbus_file_read()
/linux-4.1.27/drivers/infiniband/core/
H A Duser_mad.c345 if (filp->f_flags & O_NONBLOCK) ib_umad_read()
1026 if (filp->f_flags & O_NONBLOCK) { ib_umad_sm_open()
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-fileops.c605 filp->f_flags & O_NONBLOCK); cx18_v4l2_read()
608 return cx18_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK); cx18_v4l2_read()
/linux-4.1.27/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_dec.c649 ret = vb2_dqbuf(&ctx->vq_src, buf, file->f_flags & O_NONBLOCK); vidioc_dqbuf()
651 ret = vb2_dqbuf(&ctx->vq_dst, buf, file->f_flags & O_NONBLOCK); vidioc_dqbuf()
/linux-4.1.27/drivers/media/usb/cpia2/
H A Dcpia2_v4l.c157 int noblock = file->f_flags&O_NONBLOCK; cpia2_v4l_read()
927 if(frame < 0 && file->f_flags&O_NONBLOCK) cpia2_dqbuf()
/linux-4.1.27/drivers/media/usb/hdpvr/
H A Dhdpvr-video.c445 if (!(file->f_flags & O_NONBLOCK)) { hdpvr_read()
458 if (file->f_flags & O_NONBLOCK) { hdpvr_read()
/linux-4.1.27/drivers/media/usb/stkwebcam/
H A Dstk-webcam.c679 if (fp->f_flags & O_NONBLOCK && list_empty(&dev->sio_full)) stk_read()
1121 if (filp->f_flags & O_NONBLOCK && list_empty(&dev->sio_full)) stk_vidioc_dqbuf()
/linux-4.1.27/drivers/misc/carma/
H A Dcarma-fpga-program.c767 if (filp->f_flags & O_TRUNC) fpga_open()
827 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) fpga_llseek()
/linux-4.1.27/drivers/net/
H A Dmacvtap.c794 return macvtap_get_user(q, NULL, from, file->f_flags & O_NONBLOCK); macvtap_write_iter()
900 ret = macvtap_do_read(q, to, file->f_flags & O_NONBLOCK); macvtap_read_iter()
/linux-4.1.27/drivers/staging/media/dt3155v4l/
H A Ddt3155v4l.c451 res = vb2_read(pd->q, user, size, loff, filp->f_flags & O_NONBLOCK); dt3155_read()
597 return vb2_dqbuf(pd->q, b, filp->f_flags & O_NONBLOCK); dt3155_ioc_dqbuf()
/linux-4.1.27/drivers/input/
H A Devdev.c546 (file->f_flags & O_NONBLOCK)) evdev_read()
568 if (!(file->f_flags & O_NONBLOCK)) { evdev_read()
H A Djoydev.c394 if (!joydev_data_pending(client) && (file->f_flags & O_NONBLOCK)) joydev_read()
H A Dmousedev.c721 (file->f_flags & O_NONBLOCK)) mousedev_read()
/linux-4.1.27/drivers/tty/
H A Dn_hdlc.c633 if (file->f_flags & O_NONBLOCK) { n_hdlc_tty_read()
700 if (file->f_flags & O_NONBLOCK) { n_hdlc_tty_write()
H A Dtty_io.c1116 ret = tty_write_lock(tty, file->f_flags & O_NDELAY); do_tty_write()
1961 filp->f_flags |= O_NONBLOCK; /* Don't let /dev/tty block */ tty_open_current_tty()
2008 filp->f_flags |= O_NONBLOCK; tty_lookup_driver()
2055 unsigned saved_flags = filp->f_flags; tty_open()
2064 noctty = filp->f_flags & O_NOCTTY; tty_open()
2120 filp->f_flags = saved_flags; tty_open()
2436 file->f_flags |= O_NONBLOCK; fionbio()
2438 file->f_flags &= ~O_NONBLOCK; fionbio()
H A Dn_tty.c2197 if (file->f_flags & O_NONBLOCK) { n_tty_read()
2264 if (file->f_flags & O_NONBLOCK) { n_tty_read()
2424 if (file->f_flags & O_NONBLOCK) { n_tty_write()
H A Dtty_port.c382 if (filp->f_flags & O_NONBLOCK) { tty_port_block_til_ready()
/linux-4.1.27/arch/cris/arch-v10/drivers/
H A Dsync_serial.c1055 if (file->f_flags & O_NONBLOCK) { sync_serial_write()
1136 if (file->f_flags & O_NONBLOCK) sync_serial_read()
/linux-4.1.27/drivers/ide/
H A Dide-tape.c1513 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) idetape_chrdev_open()
1520 if ((filp->f_flags & O_ACCMODE) == O_WRONLY || idetape_chrdev_open()
1521 (filp->f_flags & O_ACCMODE) == O_RDWR) { idetape_chrdev_open()
/linux-4.1.27/drivers/media/platform/soc_camera/
H A Dsoc_camera.c433 return videobuf_dqbuf(&icd->vb_vidq, p, file->f_flags & O_NONBLOCK); soc_camera_dqbuf()
435 return vb2_dqbuf(&icd->vb2_vidq, p, file->f_flags & O_NONBLOCK); soc_camera_dqbuf()
811 file->f_flags & O_NONBLOCK); soc_camera_read()
/linux-4.1.27/fs/ocfs2/
H A Dfile.c99 int mode = file->f_flags; ocfs2_file_open()
1960 if (file && (file->f_flags & O_SYNC)) __ocfs2_change_file_space()
2387 if (((file->f_flags & O_DSYNC) && !direct_io) || ocfs2_file_write_iter()
/linux-4.1.27/drivers/macintosh/
H A Dadb.c747 if (file->f_flags & O_NONBLOCK) { adb_read()
/linux-4.1.27/drivers/media/rc/
H A Dlirc_dev.c712 if (file->f_flags & O_NONBLOCK) { lirc_dev_fop_read()
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00debug.c279 if (file->f_flags & O_NONBLOCK) rt2x00debug_read_queue_dump()
/linux-4.1.27/drivers/s390/block/
H A Ddasd_eer.c619 if (filp->f_flags & O_NONBLOCK) dasd_eer_read()
/linux-4.1.27/drivers/dma-buf/
H A Ddma-buf.c798 buf_obj->file->f_flags, buf_obj->file->f_mode, dma_buf_describe()
/linux-4.1.27/block/
H A Dcompat_ioctl.c672 if (file->f_flags & O_NDELAY) compat_blkdev_ioctl()
/linux-4.1.27/drivers/hid/usbhid/
H A Dhiddev.c372 if (file->f_flags & O_NONBLOCK) { hiddev_read()

Completed in 4333 milliseconds

12