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 no_llseek(struct file *file, loff_t offset, int whence) in no_llseek()
236 loff_t default_llseek(struct file *file, loff_t offset, int whence) in default_llseek()
239 loff_t retval; in default_llseek()
291 loff_t vfs_llseek(struct file *file, loff_t offset, int whence) in vfs_llseek()
293 loff_t (*fn)(struct file *, loff_t, int); in vfs_llseek()
313 loff_t res = vfs_llseek(f.file, offset, whence); in ksys_lseek()
315 if (res != (loff_t)retval) in ksys_lseek()
336 unsigned long, offset_low, loff_t __user *, result, in SYSCALL_DEFINE5()
341 loff_t offset; in SYSCALL_DEFINE5()
350 offset = vfs_llseek(f.file, ((loff_t) offset_high << 32) | offset_low, in SYSCALL_DEFINE5()
365 int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) in rw_verify_area()
368 loff_t pos; in rw_verify_area()
380 } else if (unlikely((loff_t) (pos + count) < 0)) { in rw_verify_area()
395 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read()
413 loff_t *pos) in __vfs_read()
423 ssize_t kernel_read(struct file *file, void *buf, size_t count, loff_t *pos) in kernel_read()
437 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) in vfs_read()
463 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in new_sync_write()
482 loff_t *pos) in __vfs_write()
492 ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos) in __kernel_write()
518 loff_t *pos) in kernel_write()
533 ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) in vfs_write()
561 static inline loff_t file_pos_read(struct file *file) in file_pos_read()
566 static inline void file_pos_write(struct file *file, loff_t pos) in file_pos_write()
577 loff_t pos = file_pos_read(f.file); in ksys_read()
597 loff_t pos = file_pos_read(f.file); in ksys_write()
614 loff_t pos) in ksys_pread64()
634 size_t, count, loff_t, pos) in SYSCALL_DEFINE4() argument
640 size_t count, loff_t pos) in ksys_pwrite64()
660 size_t, count, loff_t, pos) in SYSCALL_DEFINE4() argument
666 loff_t *ppos, int type, rwf_t flags) in do_iter_readv_writev()
688 loff_t *ppos, int type, rwf_t flags) in do_loop_readv_writev()
904 loff_t *pos, rwf_t flags) in do_iter_read()
931 ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos, in vfs_iter_read()
941 loff_t *pos, rwf_t flags) in do_iter_write()
967 ssize_t vfs_iter_write(struct file *file, struct iov_iter *iter, loff_t *ppos, in vfs_iter_write()
977 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_readv()
994 unsigned long vlen, loff_t *pos, rwf_t flags) in vfs_writev()
1018 loff_t pos = file_pos_read(f.file); in do_readv()
1038 loff_t pos = file_pos_read(f.file); in do_writev()
1051 static inline loff_t pos_from_hilo(unsigned long high, unsigned long low) in pos_from_hilo()
1054 return (((loff_t)high << HALF_LONG_BITS) << HALF_LONG_BITS) | low; in pos_from_hilo()
1058 unsigned long vlen, loff_t pos, rwf_t flags) in do_preadv()
1081 unsigned long vlen, loff_t pos, rwf_t flags) in do_pwritev()
1118 loff_t pos = pos_from_hilo(pos_h, pos_l); in SYSCALL_DEFINE5()
1127 loff_t pos = pos_from_hilo(pos_h, pos_l); in SYSCALL_DEFINE6()
1138 loff_t pos = pos_from_hilo(pos_h, pos_l); in SYSCALL_DEFINE5()
1147 loff_t pos = pos_from_hilo(pos_h, pos_l); in SYSCALL_DEFINE6()
1158 unsigned long vlen, loff_t *pos, rwf_t flags) in compat_readv()
1182 loff_t pos; in do_compat_readv()
1204 unsigned long vlen, loff_t pos, rwf_t flags) in do_compat_preadv64()
1224 unsigned long, vlen, loff_t, pos) in COMPAT_SYSCALL_DEFINE4() argument
1234 loff_t pos = ((loff_t)pos_high << 32) | pos_low; in COMPAT_SYSCALL_DEFINE5()
1242 unsigned long, vlen, loff_t, pos, rwf_t, flags) in COMPAT_SYSCALL_DEFINE5() argument
1253 loff_t pos = ((loff_t)pos_high << 32) | pos_low; in COMPAT_SYSCALL_DEFINE6()
1263 unsigned long vlen, loff_t *pos, rwf_t flags) in compat_writev()
1289 loff_t pos; in do_compat_writev()
1310 unsigned long vlen, loff_t pos, rwf_t flags) in do_compat_pwritev64()
1330 unsigned long, vlen, loff_t, pos) in COMPAT_SYSCALL_DEFINE4() argument
1340 loff_t pos = ((loff_t)pos_high << 32) | pos_low; in COMPAT_SYSCALL_DEFINE5()
1348 unsigned long, vlen, loff_t, pos, rwf_t, flags) in COMPAT_SYSCALL_DEFINE5() argument
1358 loff_t pos = ((loff_t)pos_high << 32) | pos_low; in COMPAT_SYSCALL_DEFINE6()
1368 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile()
1369 size_t count, loff_t max) in do_sendfile()
1373 loff_t pos; in do_sendfile()
1374 loff_t out_pos; in do_sendfile()
1470 loff_t pos; in SYSCALL_DEFINE4()
1487 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4()
1489 loff_t pos; in SYSCALL_DEFINE4()
1493 if (unlikely(copy_from_user(&pos, offset, sizeof(loff_t)))) in SYSCALL_DEFINE4()
1508 loff_t pos; in COMPAT_SYSCALL_DEFINE4()
1528 loff_t pos; in COMPAT_SYSCALL_DEFINE4()
1532 if (unlikely(copy_from_user(&pos, offset, sizeof(loff_t)))) in COMPAT_SYSCALL_DEFINE4()
1549 ssize_t vfs_copy_file_range(struct file *file_in, loff_t pos_in, in vfs_copy_file_range()
1550 struct file *file_out, loff_t pos_out, in vfs_copy_file_range()
1627 SYSCALL_DEFINE6(copy_file_range, int, fd_in, loff_t __user *, off_in, in SYSCALL_DEFINE6()
1628 int, fd_out, loff_t __user *, off_out, in SYSCALL_DEFINE6()
1631 loff_t pos_in; in SYSCALL_DEFINE6()
1632 loff_t pos_out; in SYSCALL_DEFINE6()
1647 if (copy_from_user(&pos_in, off_in, sizeof(loff_t))) in SYSCALL_DEFINE6()
1654 if (copy_from_user(&pos_out, off_out, sizeof(loff_t))) in SYSCALL_DEFINE6()
1667 if (copy_to_user(off_in, &pos_in, sizeof(loff_t))) in SYSCALL_DEFINE6()
1674 if (copy_to_user(off_out, &pos_out, sizeof(loff_t))) in SYSCALL_DEFINE6()
1689 static int clone_verify_area(struct file *file, loff_t pos, u64 len, bool write) in clone_verify_area()
1696 if (unlikely((loff_t) (pos + len) < 0)) in clone_verify_area()
1700 loff_t end = len ? pos + len - 1 : OFFSET_MAX; in clone_verify_area()
1720 int vfs_clone_file_prep_inodes(struct inode *inode_in, loff_t pos_in, in vfs_clone_file_prep_inodes()
1721 struct inode *inode_out, loff_t pos_out, in vfs_clone_file_prep_inodes()
1724 loff_t bs = inode_out->i_sb->s_blocksize; in vfs_clone_file_prep_inodes()
1725 loff_t blen; in vfs_clone_file_prep_inodes()
1726 loff_t isize; in vfs_clone_file_prep_inodes()
1764 loff_t disize; in vfs_clone_file_prep_inodes()
1821 int do_clone_file_range(struct file *file_in, loff_t pos_in, in do_clone_file_range()
1822 struct file *file_out, loff_t pos_out, u64 len) in do_clone_file_range()
1871 int vfs_clone_file_range(struct file *file_in, loff_t pos_in, in vfs_clone_file_range()
1872 struct file *file_out, loff_t pos_out, u64 len) in vfs_clone_file_range()
1888 static struct page *vfs_dedupe_get_page(struct inode *inode, loff_t offset) in vfs_dedupe_get_page()
1911 int vfs_dedupe_file_range_compare(struct inode *src, loff_t srcoff, in vfs_dedupe_file_range_compare()
1912 struct inode *dest, loff_t destoff, in vfs_dedupe_file_range_compare()
1913 loff_t len, bool *is_same) in vfs_dedupe_file_range_compare()
1915 loff_t src_poff; in vfs_dedupe_file_range_compare()
1916 loff_t dest_poff; in vfs_dedupe_file_range_compare()
1921 loff_t cmp_len; in vfs_dedupe_file_range_compare()
1980 int vfs_dedupe_file_range_one(struct file *src_file, loff_t src_pos, in vfs_dedupe_file_range_one()
1981 struct file *dst_file, loff_t dst_pos, u64 len) in vfs_dedupe_file_range_one()