Lines Matching refs:loff_t
54 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos()
85 loff_t
86 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size()
87 loff_t maxsize, loff_t eof) in generic_file_llseek_size()
144 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek()
162 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek()
181 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence) in no_seek_end_llseek()
201 loff_t no_seek_end_llseek_size(struct file *file, loff_t offset, int whence, loff_t size) in no_seek_end_llseek_size()
224 loff_t noop_llseek(struct file *file, loff_t offset, int whence) in noop_llseek()
230 loff_t default_llseek(struct file *file, loff_t offset, int whence) in default_llseek()
233 loff_t retval; in default_llseek()
285 loff_t vfs_llseek(struct file *file, loff_t offset, int whence) in vfs_llseek()
302 loff_t res = vfs_llseek(f.file, offset, whence); in ksys_lseek()
304 if (res != (loff_t)retval) in ksys_lseek()
326 unsigned long, offset_low, loff_t __user *, result, in SYSCALL_DEFINE5()
331 loff_t offset; in SYSCALL_DEFINE5()
340 offset = vfs_llseek(f.file, ((loff_t) offset_high << 32) | offset_low, in SYSCALL_DEFINE5()
355 int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) in rw_verify_area()
361 loff_t pos = *ppos; in rw_verify_area()
368 } else if (unlikely((loff_t) (pos + count) < 0)) { in rw_verify_area()
379 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read()
404 ssize_t __kernel_read(struct file *file, void *buf, size_t count, loff_t *pos) in __kernel_read()
439 ssize_t kernel_read(struct file *file, void *buf, size_t count, loff_t *pos) in kernel_read()
450 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) in vfs_read()
481 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in new_sync_write()
499 ssize_t __kernel_write_iter(struct file *file, struct iov_iter *from, loff_t *pos) in __kernel_write_iter()
529 ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos) in __kernel_write()
549 loff_t *pos) in kernel_write()
564 ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) in vfs_write()
597 static inline loff_t *file_ppos(struct file *file) in file_ppos()
608 loff_t pos, *ppos = file_ppos(f.file); in ksys_read()
632 loff_t pos, *ppos = file_ppos(f.file); in ksys_write()
653 loff_t pos) in ksys_pread64()
673 size_t, count, loff_t, pos) in SYSCALL_DEFINE4() argument
687 size_t count, loff_t pos) in ksys_pwrite64()
707 size_t, count, loff_t, pos) in SYSCALL_DEFINE4() argument
721 loff_t *ppos, int type, rwf_t flags) in do_iter_readv_writev()
744 loff_t *ppos, int type, rwf_t flags) in do_loop_readv_writev()
777 loff_t *pos, rwf_t flags) in do_iter_read()
832 ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos, in vfs_iter_read()
842 loff_t *pos, rwf_t flags) in do_iter_write()
896 ssize_t vfs_iter_write(struct file *file, struct iov_iter *iter, loff_t *ppos, in vfs_iter_write()
906 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_readv()
923 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_writev()
947 loff_t pos, *ppos = file_ppos(f.file); in do_readv()
971 loff_t pos, *ppos = file_ppos(f.file); in do_writev()
988 static inline loff_t pos_from_hilo(unsigned long high, unsigned long low) in pos_from_hilo()
991 return (((loff_t)high << HALF_LONG_BITS) << HALF_LONG_BITS) | low; in pos_from_hilo()
995 unsigned long vlen, loff_t pos, rwf_t flags) in do_preadv()
1018 unsigned long vlen, loff_t pos, rwf_t flags) in do_pwritev()
1055 loff_t pos = pos_from_hilo(pos_h, pos_l); in SYSCALL_DEFINE5()
1064 loff_t pos = pos_from_hilo(pos_h, pos_l); in SYSCALL_DEFINE6()
1075 loff_t pos = pos_from_hilo(pos_h, pos_l); in SYSCALL_DEFINE5()
1084 loff_t pos = pos_from_hilo(pos_h, pos_l); in SYSCALL_DEFINE6()
1101 unsigned long, vlen, loff_t, pos) in COMPAT_SYSCALL_DEFINE4() argument
1111 loff_t pos = ((loff_t)pos_high << 32) | pos_low; in COMPAT_SYSCALL_DEFINE5()
1119 unsigned long, vlen, loff_t, pos, rwf_t, flags) in COMPAT_SYSCALL_DEFINE5() argument
1132 loff_t pos = ((loff_t)pos_high << 32) | pos_low; in COMPAT_SYSCALL_DEFINE6()
1142 unsigned long, vlen, loff_t, pos) in COMPAT_SYSCALL_DEFINE4() argument
1152 loff_t pos = ((loff_t)pos_high << 32) | pos_low; in COMPAT_SYSCALL_DEFINE5()
1160 unsigned long, vlen, loff_t, pos, rwf_t, flags) in COMPAT_SYSCALL_DEFINE5() argument
1172 loff_t pos = ((loff_t)pos_high << 32) | pos_low; in COMPAT_SYSCALL_DEFINE6()
1180 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile()
1181 size_t count, loff_t max) in do_sendfile()
1186 loff_t pos; in do_sendfile()
1187 loff_t out_pos; in do_sendfile()
1291 loff_t pos; in SYSCALL_DEFINE4()
1308 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4()
1310 loff_t pos; in SYSCALL_DEFINE4()
1314 if (unlikely(copy_from_user(&pos, offset, sizeof(loff_t)))) in SYSCALL_DEFINE4()
1329 loff_t pos; in COMPAT_SYSCALL_DEFINE4()
1349 loff_t pos; in COMPAT_SYSCALL_DEFINE4()
1353 if (unlikely(copy_from_user(&pos, offset, sizeof(loff_t)))) in COMPAT_SYSCALL_DEFINE4()
1386 ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in, in generic_copy_file_range()
1387 struct file *file_out, loff_t pos_out, in generic_copy_file_range()
1404 static int generic_copy_file_checks(struct file *file_in, loff_t pos_in, in generic_copy_file_checks()
1405 struct file *file_out, loff_t pos_out, in generic_copy_file_checks()
1411 loff_t size_in; in generic_copy_file_checks()
1475 ssize_t vfs_copy_file_range(struct file *file_in, loff_t pos_in, in vfs_copy_file_range()
1476 struct file *file_out, loff_t pos_out, in vfs_copy_file_range()
1519 min_t(loff_t, MAX_RW_COUNT, len), in vfs_copy_file_range()
1558 SYSCALL_DEFINE6(copy_file_range, int, fd_in, loff_t __user *, off_in, in SYSCALL_DEFINE6()
1559 int, fd_out, loff_t __user *, off_out, in SYSCALL_DEFINE6()
1562 loff_t pos_in; in SYSCALL_DEFINE6()
1563 loff_t pos_out; in SYSCALL_DEFINE6()
1578 if (copy_from_user(&pos_in, off_in, sizeof(loff_t))) in SYSCALL_DEFINE6()
1585 if (copy_from_user(&pos_out, off_out, sizeof(loff_t))) in SYSCALL_DEFINE6()
1602 if (copy_to_user(off_in, &pos_in, sizeof(loff_t))) in SYSCALL_DEFINE6()
1609 if (copy_to_user(off_out, &pos_out, sizeof(loff_t))) in SYSCALL_DEFINE6()
1629 int generic_write_check_limits(struct file *file, loff_t pos, loff_t *count) in generic_write_check_limits()
1632 loff_t max_size = inode->i_sb->s_maxbytes; in generic_write_check_limits()
1633 loff_t limit = rlimit(RLIMIT_FSIZE); in generic_write_check_limits()
1655 int generic_write_checks_count(struct kiocb *iocb, loff_t *count) in generic_write_checks_count()
1687 loff_t count = iov_iter_count(from); in generic_write_checks()