/linux-6.6.21/include/linux/ |
D | iomap.h | 96 loff_t offset; /* file offset of mapping, bytes */ 108 static inline sector_t iomap_sector(const struct iomap *iomap, loff_t pos) in iomap_sector() 116 static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos) in iomap_inline_data() 142 struct folio *(*get_folio)(struct iomap_iter *iter, loff_t pos, 144 void (*put_folio)(struct inode *inode, loff_t pos, unsigned copied, 188 int (*iomap_begin)(struct inode *inode, loff_t pos, loff_t length, 198 int (*iomap_end)(struct inode *inode, loff_t pos, loff_t length, 217 loff_t pos; 262 struct iomap *iomap, loff_t pos, loff_t length, ssize_t written, 263 int (*punch)(struct inode *inode, loff_t pos, loff_t length)); [all …]
|
D | sysctl.h | 65 size_t *lenp, loff_t *ppos); 67 int proc_dostring(struct ctl_table *, int, void *, size_t *, loff_t *); 69 size_t *lenp, loff_t *ppos); 70 int proc_dointvec(struct ctl_table *, int, void *, size_t *, loff_t *); 71 int proc_douintvec(struct ctl_table *, int, void *, size_t *, loff_t *); 72 int proc_dointvec_minmax(struct ctl_table *, int, void *, size_t *, loff_t *); 74 size_t *lenp, loff_t *ppos); 76 size_t *lenp, loff_t *ppos); 77 int proc_dointvec_jiffies(struct ctl_table *, int, void *, size_t *, loff_t *); 79 void *buffer, size_t *lenp, loff_t *ppos); [all …]
|
D | seq_file.h | 23 loff_t index; 24 loff_t read_pos; 33 void * (*start) (struct seq_file *m, loff_t *pos); 35 void * (*next) (struct seq_file *m, void *v, loff_t *pos); 110 ssize_t seq_read(struct file *, char __user *, size_t, loff_t *); 112 loff_t seq_lseek(struct file *, loff_t, int); 165 void *single_start(struct seq_file *, loff_t *); 275 loff_t pos); 277 loff_t pos); 279 loff_t *ppos); [all …]
|
D | netfs.h | 131 loff_t remote_i_size; /* Size of the remote file */ 151 loff_t start; /* Where to start the I/O */ 191 loff_t i_size; /* Size of the file */ 192 loff_t start; /* Start position */ 217 int (*check_write_begin)(struct file *file, loff_t pos, unsigned len, 241 loff_t start_pos, 249 loff_t start_pos, 256 loff_t *_start, size_t *_len, loff_t i_size); 262 loff_t i_size); 268 loff_t *_start, size_t *_len, loff_t i_size, [all …]
|
D | fs.h | 92 typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, 249 loff_t ia_size; 375 loff_t ki_pos; 417 loff_t pos, unsigned len, 420 loff_t pos, unsigned len, unsigned copied, 675 loff_t i_size; 893 static inline loff_t i_size_read(const struct inode *inode) in i_size_read() 896 loff_t i_size; in i_size_read() 905 loff_t i_size; in i_size_read() 921 static inline void i_size_write(struct inode *inode, loff_t i_size) in i_size_write() [all …]
|
D | fscache.h | 115 loff_t object_size; /* Size of the netfs object */ 166 loff_t); 168 extern void __fscache_unuse_cookie(struct fscache_cookie *, const void *, const loff_t *); 170 extern void __fscache_resize_cookie(struct fscache_cookie *, loff_t); 171 extern void __fscache_invalidate(struct fscache_cookie *, const void *, loff_t, unsigned int); 176 loff_t, size_t, loff_t, netfs_io_terminated_t, void *, 178 extern void __fscache_clear_page_bits(struct address_space *, loff_t, size_t); 249 loff_t object_size) in fscache_acquire_cookie() 286 const loff_t *object_size) in fscache_unuse_cookie() 327 const void *aux_data, const loff_t *object_size) in fscache_update_aux() [all …]
|
D | nvram.h | 36 ssize_t (*read)(char *, size_t, loff_t *); 37 ssize_t (*write)(char *, size_t, loff_t *); 81 static inline ssize_t nvram_read_bytes(char *buf, size_t count, loff_t *ppos) in nvram_read_bytes() 84 loff_t i; in nvram_read_bytes() 95 static inline ssize_t nvram_write_bytes(char *buf, size_t count, loff_t *ppos) in nvram_write_bytes() 98 loff_t i; in nvram_write_bytes() 109 static inline ssize_t nvram_read(char *buf, size_t count, loff_t *ppos) in nvram_read() 121 static inline ssize_t nvram_write(char *buf, size_t count, loff_t *ppos) in nvram_write()
|
D | splice.h | 42 loff_t pos; /* file position */ 43 loff_t *opos; /* sendfile: output position */ 72 loff_t *, size_t, unsigned int, 80 long vfs_splice_read(struct file *in, loff_t *ppos, 85 extern long do_splice(struct file *in, loff_t *off_in, 86 struct file *out, loff_t *off_out, 92 loff_t *ppos, size_t len, unsigned int flags);
|
D | uprobes.h | 113 extern int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); 114 extern int uprobe_register_refctr(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct… 115 extern int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool); 116 extern void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); 152 uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) in uprobe_register() 156 static inline int uprobe_register_refctr(struct inode *inode, loff_t offset, loff_t ref_ctr_offset,… in uprobe_register_refctr() 161 uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool add) in uprobe_apply() 166 uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) in uprobe_unregister()
|
D | dax.h | 161 struct page *dax_layout_busy_page_range(struct address_space *mapping, loff_t start, loff_t end); 208 int dax_file_unshare(struct inode *inode, loff_t pos, loff_t len, 210 int dax_zero_range(struct inode *inode, loff_t pos, loff_t len, bool *did_zero, 212 int dax_truncate_page(struct inode *inode, loff_t pos, bool *did_zero, 251 int dax_dedupe_file_range_compare(struct inode *src, loff_t srcoff, 252 struct inode *dest, loff_t destoff, 253 loff_t len, bool *is_same, 255 int dax_remap_file_range_prep(struct file *file_in, loff_t pos_in, 256 struct file *file_out, loff_t pos_out, 257 loff_t *len, unsigned int remap_flags,
|
/linux-6.6.21/fs/ |
D | remap_range.c | 31 static int generic_remap_checks(struct file *file_in, loff_t pos_in, in generic_remap_checks() 32 struct file *file_out, loff_t pos_out, in generic_remap_checks() 33 loff_t *req_count, unsigned int remap_flags) in generic_remap_checks() 39 loff_t size_in, size_out; in generic_remap_checks() 40 loff_t bs = inode_out->i_sb->s_blocksize; in generic_remap_checks() 102 static int remap_verify_area(struct file *file, loff_t pos, loff_t len, in remap_verify_area() 105 loff_t tmp; in remap_verify_area() 129 loff_t pos_out, in generic_remap_check_len() 130 loff_t *len, in generic_remap_check_len() 134 loff_t new_len = *len; in generic_remap_check_len() [all …]
|
D | read_write.c | 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() [all …]
|
/linux-6.6.21/include/linux/mtd/ |
D | mtd.h | 317 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, 319 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); 320 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, 322 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len, 324 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len, 326 int (*_read_oob) (struct mtd_info *mtd, loff_t from, 328 int (*_write_oob) (struct mtd_info *mtd, loff_t to, 332 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, 336 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from, 338 int (*_write_user_prot_reg) (struct mtd_info *mtd, loff_t to, [all …]
|
/linux-6.6.21/fs/nfs/ |
D | nfs42.h | 20 int nfs42_proc_allocate(struct file *, loff_t, loff_t); 21 ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t, 23 int nfs42_proc_deallocate(struct file *, loff_t, loff_t); 24 loff_t nfs42_proc_llseek(struct file *, loff_t, int); 27 int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
|
/linux-6.6.21/fs/iomap/ |
D | seek.c | 13 static loff_t iomap_seek_hole_iter(const struct iomap_iter *iter, in iomap_seek_hole_iter() 14 loff_t *hole_pos) in iomap_seek_hole_iter() 16 loff_t length = iomap_length(iter); in iomap_seek_hole_iter() 33 loff_t 34 iomap_seek_hole(struct inode *inode, loff_t pos, const struct iomap_ops *ops) in iomap_seek_hole() 36 loff_t size = i_size_read(inode); in iomap_seek_hole() 59 static loff_t iomap_seek_data_iter(const struct iomap_iter *iter, in iomap_seek_data_iter() 60 loff_t *hole_pos) in iomap_seek_data_iter() 62 loff_t length = iomap_length(iter); in iomap_seek_data_iter() 79 loff_t [all …]
|
D | buffered-io.c | 26 typedef int (*iomap_punch_t)(struct inode *inode, loff_t offset, loff_t length); 195 loff_t *pos, loff_t length, size_t *offp, size_t *lenp) in iomap_adjust_read_range() 198 loff_t orig_pos = *pos; in iomap_adjust_read_range() 199 loff_t isize = i_size_read(inode); in iomap_adjust_read_range() 203 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); in iomap_adjust_read_range() 324 loff_t pos) in iomap_block_needs_zeroing() 333 static loff_t iomap_readpage_iter(const struct iomap_iter *iter, in iomap_readpage_iter() 334 struct iomap_readpage_ctx *ctx, loff_t offset) in iomap_readpage_iter() 337 loff_t pos = iter->pos + offset; in iomap_readpage_iter() 338 loff_t length = iomap_length(iter) - offset; in iomap_readpage_iter() [all …]
|
/linux-6.6.21/fs/xfs/ |
D | xfs_reflink.h | 38 extern loff_t xfs_reflink_remap_range(struct file *file_in, loff_t pos_in, 39 struct file *file_out, loff_t pos_out, loff_t len, 47 extern int xfs_reflink_remap_prep(struct file *file_in, loff_t pos_in, 48 struct file *file_out, loff_t pos_out, loff_t *len, 50 extern int xfs_reflink_remap_blocks(struct xfs_inode *src, loff_t pos_in, 51 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len, 52 loff_t *remapped);
|
/linux-6.6.21/fs/xfs/scrub/ |
D | xfile.h | 12 loff_t pos; 29 int xfile_create(const char *description, loff_t isize, struct xfile **xfilep); 32 ssize_t xfile_pread(struct xfile *xf, void *buf, size_t count, loff_t pos); 34 loff_t pos); 41 xfile_obj_load(struct xfile *xf, void *buf, size_t count, loff_t pos) in xfile_obj_load() 55 xfile_obj_store(struct xfile *xf, const void *buf, size_t count, loff_t pos) in xfile_obj_store() 64 loff_t xfile_seek_data(struct xfile *xf, loff_t pos); 67 loff_t size; 73 int xfile_get_page(struct xfile *xf, loff_t offset, unsigned int len,
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | debugfs.c | 27 loff_t *ppos) in hfi1_seq_read() 40 loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence) in hfi1_seq_lseek() 43 loff_t r; in hfi1_seq_lseek() 56 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _opcode_stats_seq_start() 65 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _opcode_stats_seq_next() 92 loff_t *spos = v; in _opcode_stats_seq_show() 93 loff_t i = *spos, j; in _opcode_stats_seq_show() 114 static void *_tx_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _tx_opcode_stats_seq_start() 119 static void *_tx_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _tx_opcode_stats_seq_next() 130 loff_t *spos = v; in _tx_opcode_stats_seq_show() [all …]
|
/linux-6.6.21/fs/ecryptfs/ |
D | read_write.c | 28 loff_t offset, size_t size) in ecryptfs_write_lower() 62 loff_t offset; in ecryptfs_write_lower_page_segment() 65 offset = ((((loff_t)page_for_lower->index) << PAGE_SHIFT) in ecryptfs_write_lower_page_segment() 93 int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset, in ecryptfs_write() 99 loff_t ecryptfs_file_size = i_size_read(ecryptfs_inode); in ecryptfs_write() 100 loff_t data_offset = 0; in ecryptfs_write() 101 loff_t pos; in ecryptfs_write() 117 loff_t total_remaining_bytes = ((offset + size) - pos); in ecryptfs_write() 128 loff_t total_remaining_zeros = (offset - pos); in ecryptfs_write() 219 int ecryptfs_read_lower(char *data, loff_t offset, size_t size, in ecryptfs_read_lower() [all …]
|
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-debugfs.c | 125 loff_t *ppos, unsigned int value) in xgbe_common_read() 149 loff_t *ppos, unsigned int *value) in xgbe_common_write() 175 size_t count, loff_t *ppos) in xgmac_reg_addr_read() 184 size_t count, loff_t *ppos) in xgmac_reg_addr_write() 193 size_t count, loff_t *ppos) in xgmac_reg_value_read() 205 size_t count, loff_t *ppos) in xgmac_reg_value_write() 235 size_t count, loff_t *ppos) in xpcs_mmd_read() 243 size_t count, loff_t *ppos) in xpcs_mmd_write() 252 size_t count, loff_t *ppos) in xpcs_reg_addr_read() 260 size_t count, loff_t *ppos) in xpcs_reg_addr_write() [all …]
|
/linux-6.6.21/fs/smb/client/ |
D | cifsfs.h | 105 extern int cifs_fsync(struct file *, loff_t, loff_t, int); 106 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int); 113 extern void cifs_pages_written_back(struct inode *inode, loff_t start, unsigned int len); 114 extern void cifs_pages_write_failed(struct inode *inode, loff_t start, unsigned int len); 115 extern void cifs_pages_write_redirty(struct inode *inode, loff_t start, unsigned int len); 138 struct file *src_file, loff_t off, 139 struct file *dst_file, loff_t destoff, 143 extern void cifs_setsize(struct inode *inode, loff_t offset); 144 extern int cifs_truncate_page(struct address_space *mapping, loff_t from);
|
/linux-6.6.21/mm/ |
D | fadvise.c | 31 int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in generic_fadvise() 36 loff_t endbyte; /* inclusive */ in generic_fadvise() 180 int vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in vfs_fadvise() 191 int ksys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice) in ksys_fadvise64_64() 205 SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) in SYSCALL_DEFINE4() argument 212 SYSCALL_DEFINE4(fadvise64, int, fd, loff_t, offset, size_t, len, int, advice) in SYSCALL_DEFINE4() argument
|
/linux-6.6.21/fs/cachefiles/ |
D | io.c | 20 loff_t start; 74 loff_t start_pos, in cachefiles_read() 102 loff_t off = start_pos, off2; in cachefiles_read() 107 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO && off2 != -ENXIO) { in cachefiles_read() 198 loff_t start, size_t len, size_t granularity, in cachefiles_query_occupancy() 199 loff_t *_data_start, size_t *_data_len) in cachefiles_query_occupancy() 203 loff_t off, off2; in cachefiles_query_occupancy() 224 if (off < 0 && off >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy() 234 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy() 280 loff_t start_pos, in __cachefiles_write() [all …]
|
/linux-6.6.21/fs/btrfs/ |
D | file.h | 8 int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync); 23 size_t num_pages, loff_t pos, size_t write_bytes, 25 int btrfs_fdatawrite_range(struct inode *inode, loff_t start, loff_t end); 26 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos,
|