Lines Matching refs:f_mode
39 return file->f_mode & FMODE_UNSIGNED_OFFSET; in unsigned_offsets()
287 if (!(file->f_mode & FMODE_LSEEK)) in vfs_llseek()
414 if (WARN_ON_ONCE(!(file->f_mode & FMODE_READ))) in __kernel_read()
416 if (!(file->f_mode & FMODE_CAN_READ)) in __kernel_read()
454 if (!(file->f_mode & FMODE_READ)) in vfs_read()
456 if (!(file->f_mode & FMODE_CAN_READ)) in vfs_read()
504 if (WARN_ON_ONCE(!(file->f_mode & FMODE_WRITE))) in __kernel_write_iter()
506 if (!(file->f_mode & FMODE_CAN_WRITE)) in __kernel_write_iter()
568 if (!(file->f_mode & FMODE_WRITE)) in vfs_write()
570 if (!(file->f_mode & FMODE_CAN_WRITE)) in vfs_write()
599 return file->f_mode & FMODE_STREAM ? NULL : &file->f_pos; in file_ppos()
664 if (f.file->f_mode & FMODE_PREAD) in ksys_pread64()
698 if (f.file->f_mode & FMODE_PWRITE) in ksys_pwrite64()
782 if (!(file->f_mode & FMODE_READ)) in do_iter_read()
784 if (!(file->f_mode & FMODE_CAN_READ)) in do_iter_read()
812 if (!(file->f_mode & FMODE_READ)) in vfs_iocb_iter_read()
814 if (!(file->f_mode & FMODE_CAN_READ)) in vfs_iocb_iter_read()
847 if (!(file->f_mode & FMODE_WRITE)) in do_iter_write()
849 if (!(file->f_mode & FMODE_CAN_WRITE)) in do_iter_write()
876 if (!(file->f_mode & FMODE_WRITE)) in vfs_iocb_iter_write()
878 if (!(file->f_mode & FMODE_CAN_WRITE)) in vfs_iocb_iter_write()
1006 if (f.file->f_mode & FMODE_PREAD) in do_preadv()
1029 if (f.file->f_mode & FMODE_PWRITE) in do_pwritev()
1198 if (!(in.file->f_mode & FMODE_READ)) in do_sendfile()
1205 if (!(in.file->f_mode & FMODE_PREAD)) in do_sendfile()
1221 if (!(out.file->f_mode & FMODE_WRITE)) in do_sendfile()
1671 (file->f_mode & FMODE_BUF_WASYNC))) in generic_write_checks_count()
1714 if (!(file_in->f_mode & FMODE_READ) || in generic_file_rw_checks()
1715 !(file_out->f_mode & FMODE_WRITE) || in generic_file_rw_checks()