Lines Matching refs:f_mode
39 return file->f_mode & FMODE_UNSIGNED_OFFSET; in unsigned_offsets()
296 if (file->f_mode & FMODE_LSEEK) { in vfs_llseek()
429 if (WARN_ON_ONCE(!(file->f_mode & FMODE_READ))) in __kernel_read()
431 if (!(file->f_mode & FMODE_CAN_READ)) in __kernel_read()
469 if (!(file->f_mode & FMODE_READ)) in vfs_read()
471 if (!(file->f_mode & FMODE_CAN_READ)) in vfs_read()
525 if (WARN_ON_ONCE(!(file->f_mode & FMODE_WRITE))) in __kernel_write()
527 if (!(file->f_mode & FMODE_CAN_WRITE)) in __kernel_write()
578 if (!(file->f_mode & FMODE_WRITE)) in vfs_write()
580 if (!(file->f_mode & FMODE_CAN_WRITE)) in vfs_write()
609 return file->f_mode & FMODE_STREAM ? NULL : &file->f_pos; in file_ppos()
674 if (f.file->f_mode & FMODE_PREAD) in ksys_pread64()
700 if (f.file->f_mode & FMODE_PWRITE) in ksys_pwrite64()
777 if (!(file->f_mode & FMODE_READ)) in do_iter_read()
779 if (!(file->f_mode & FMODE_CAN_READ)) in do_iter_read()
807 if (!(file->f_mode & FMODE_READ)) in vfs_iocb_iter_read()
809 if (!(file->f_mode & FMODE_CAN_READ)) in vfs_iocb_iter_read()
842 if (!(file->f_mode & FMODE_WRITE)) in do_iter_write()
844 if (!(file->f_mode & FMODE_CAN_WRITE)) in do_iter_write()
871 if (!(file->f_mode & FMODE_WRITE)) in vfs_iocb_iter_write()
873 if (!(file->f_mode & FMODE_CAN_WRITE)) in vfs_iocb_iter_write()
1001 if (f.file->f_mode & FMODE_PREAD) in do_preadv()
1024 if (f.file->f_mode & FMODE_PWRITE) in do_pwritev()
1193 if (!(in.file->f_mode & FMODE_READ)) in do_sendfile()
1200 if (!(in.file->f_mode & FMODE_PREAD)) in do_sendfile()
1216 if (!(out.file->f_mode & FMODE_WRITE)) in do_sendfile()
1699 if (!(file_in->f_mode & FMODE_READ) || in generic_file_rw_checks()
1700 !(file_out->f_mode & FMODE_WRITE) || in generic_file_rw_checks()