Lines Matching refs:loff_t
96 typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
228 loff_t ia_size;
332 loff_t ki_pos;
388 loff_t pos, unsigned len, unsigned flags,
391 loff_t pos, unsigned len, unsigned copied,
427 loff_t pos, unsigned len, unsigned flags,
431 loff_t pos, unsigned len, unsigned copied,
654 loff_t i_size;
872 static inline loff_t i_size_read(const struct inode *inode) in i_size_read()
875 loff_t i_size; in i_size_read()
884 loff_t i_size; in i_size_read()
900 static inline void i_size_write(struct inode *inode, loff_t i_size) in i_size_write()
950 loff_t prev_pos;
981 loff_t f_pos;
1025 #define MAX_LFS_FILESIZE ((loff_t)ULONG_MAX << PAGE_SHIFT)
1027 #define MAX_LFS_FILESIZE ((loff_t)LLONG_MAX)
1125 loff_t fl_start;
1126 loff_t fl_end;
1156 #define OFFSET_MAX INT_LIMIT(loff_t)
1468 loff_t s_maxbytes; /* Max file size */
2020 typedef int (*filldir_t)(struct dir_context *, const char *, int, loff_t, u64,
2025 loff_t pos;
2071 loff_t (*llseek) (struct file *, loff_t, int);
2072 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
2073 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
2088 int (*fsync) (struct file *, loff_t, loff_t, int datasync);
2091 ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int);
2095 ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
2096 ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
2098 long (*fallocate)(struct file *file, int mode, loff_t offset,
2099 loff_t len);
2104 ssize_t (*copy_file_range)(struct file *, loff_t, struct file *,
2105 loff_t, size_t, unsigned int);
2106 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in,
2107 struct file *file_out, loff_t pos_out,
2108 loff_t len, unsigned int remap_flags);
2109 int (*fadvise)(struct file *, loff_t, loff_t, int);
2170 extern ssize_t vfs_read(struct file *, char __user *, size_t, loff_t *);
2171 extern ssize_t vfs_write(struct file *, const char __user *, size_t, loff_t *);
2172 extern ssize_t vfs_copy_file_range(struct file *, loff_t , struct file *,
2173 loff_t, size_t, unsigned int);
2174 extern ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in,
2175 struct file *file_out, loff_t pos_out,
2177 extern int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
2178 struct file *file_out, loff_t pos_out,
2179 loff_t *count,
2181 extern loff_t do_clone_file_range(struct file *file_in, loff_t pos_in,
2182 struct file *file_out, loff_t pos_out,
2183 loff_t len, unsigned int remap_flags);
2184 extern loff_t vfs_clone_file_range(struct file *file_in, loff_t pos_in,
2185 struct file *file_out, loff_t pos_out,
2186 loff_t len, unsigned int remap_flags);
2189 extern loff_t vfs_dedupe_file_range_one(struct file *src_file, loff_t src_pos,
2190 struct file *dst_file, loff_t dst_pos,
2191 loff_t len, unsigned int remap_flags);
2218 ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);
2219 ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t);
2727 extern long vfs_truncate(const struct path *, loff_t);
2728 int do_truncate(struct user_namespace *, struct dentry *, loff_t start,
2730 extern int vfs_fallocate(struct file *file, int mode, loff_t offset,
2731 loff_t len);
2838 extern int filemap_fdatawait_range(struct address_space *, loff_t lstart,
2839 loff_t lend);
2841 loff_t start_byte, loff_t end_byte);
2848 extern bool filemap_range_has_page(struct address_space *, loff_t lstart,
2849 loff_t lend);
2851 loff_t lstart, loff_t lend);
2853 loff_t lstart, loff_t lend);
2855 loff_t start, loff_t end, int sync_mode);
2857 loff_t start, loff_t end);
2868 extern int __must_check file_fdatawait_range(struct file *file, loff_t lstart,
2869 loff_t lend);
2872 loff_t start, loff_t end);
2940 extern int vfs_fsync_range(struct file *file, loff_t start, loff_t end,
2944 extern int sync_file_range(struct file *file, loff_t offset, loff_t nbytes,
3091 extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *);
3092 ssize_t __kernel_read(struct file *file, void *buf, size_t count, loff_t *pos);
3093 extern ssize_t kernel_write(struct file *, const void *, size_t, loff_t *);
3094 extern ssize_t __kernel_write(struct file *, const void *, size_t, loff_t *);
3106 extern loff_t default_llseek(struct file *file, loff_t offset, int whence);
3108 extern loff_t vfs_llseek(struct file *file, loff_t offset, int whence);
3203 extern int generic_write_check_limits(struct file *file, loff_t pos,
3204 loff_t *count);
3212 extern ssize_t generic_perform_write(struct file *, struct iov_iter *, loff_t);
3214 ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos,
3216 ssize_t vfs_iter_write(struct file *file, struct iov_iter *iter, loff_t *ppos,
3224 extern ssize_t generic_file_splice_read(struct file *, loff_t *,
3227 struct file *, loff_t *, size_t, unsigned int);
3229 struct file *out, loff_t *, size_t len, unsigned int flags);
3230 extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out,
3231 loff_t *opos, size_t len, unsigned int flags);
3236 extern loff_t noop_llseek(struct file *file, loff_t offset, int whence);
3237 extern loff_t no_llseek(struct file *file, loff_t offset, int whence);
3238 extern loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize);
3239 extern loff_t generic_file_llseek(struct file *file, loff_t offset, int whence);
3240 extern loff_t generic_file_llseek_size(struct file *file, loff_t offset,
3241 int whence, loff_t maxsize, loff_t eof);
3242 extern loff_t fixed_size_llseek(struct file *file, loff_t offset,
3243 int whence, loff_t size);
3244 extern loff_t no_seek_end_llseek_size(struct file *, loff_t, int, loff_t);
3245 extern loff_t no_seek_end_llseek(struct file *, loff_t, int);
3252 loff_t file_offset);
3331 void __inode_add_bytes(struct inode *inode, loff_t bytes);
3332 void inode_add_bytes(struct inode *inode, loff_t bytes);
3333 void __inode_sub_bytes(struct inode *inode, loff_t bytes);
3334 void inode_sub_bytes(struct inode *inode, loff_t bytes);
3335 static inline loff_t __inode_get_bytes(struct inode *inode) in __inode_get_bytes()
3337 return (((loff_t)inode->i_blocks) << 9) + inode->i_bytes; in __inode_get_bytes()
3339 loff_t inode_get_bytes(struct inode *inode);
3340 void inode_set_bytes(struct inode *inode, loff_t bytes);
3376 extern loff_t dcache_dir_lseek(struct file *, loff_t, int);
3394 extern int noop_fsync(struct file *, loff_t, loff_t, int);
3400 loff_t pos, unsigned len, unsigned flags,
3409 extern ssize_t generic_read_dir(struct file *, char __user *, size_t, loff_t *);
3422 loff_t *ppos, const void *from, size_t available);
3423 extern ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos,
3426 extern int __generic_file_fsync(struct file *, loff_t, loff_t, int);
3427 extern int generic_file_fsync(struct file *, loff_t, loff_t, int);
3448 extern int inode_newsize_ok(const struct inode *, loff_t offset);
3542 size_t size, loff_t *pos);
3589 size_t len, loff_t *ppos);
3591 size_t len, loff_t *ppos);
3595 void *buffer, size_t *lenp, loff_t *ppos);
3597 void *buffer, size_t *lenp, loff_t *ppos);
3599 void *buffer, size_t *lenp, loff_t *ppos);
3682 extern int vfs_fadvise(struct file *file, loff_t offset, loff_t len,
3684 extern int generic_fadvise(struct file *file, loff_t offset, loff_t len,