/linux-6.1.9/fs/ |
D | remap_range.c | 30 static int generic_remap_checks(struct file *file_in, loff_t pos_in, in generic_remap_checks() 31 struct file *file_out, loff_t pos_out, in generic_remap_checks() 32 loff_t *req_count, unsigned int remap_flags) in generic_remap_checks() 38 loff_t size_in, size_out; in generic_remap_checks() 39 loff_t bs = inode_out->i_sb->s_blocksize; in generic_remap_checks() 101 static int remap_verify_area(struct file *file, loff_t pos, loff_t len, in remap_verify_area() 107 if (unlikely((loff_t) (pos + len) < 0)) in remap_verify_area() 126 loff_t pos_out, in generic_remap_check_len() 127 loff_t *len, in generic_remap_check_len() 131 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.1.9/include/linux/ |
D | iomap.h | 83 loff_t offset; /* file offset of mapping, bytes */ 94 static inline sector_t iomap_sector(const struct iomap *iomap, loff_t pos) in iomap_sector() 102 static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos) in iomap_inline_data() 128 int (*page_prepare)(struct inode *inode, loff_t pos, unsigned len); 129 void (*page_done)(struct inode *inode, loff_t pos, unsigned copied, 156 int (*iomap_begin)(struct inode *inode, loff_t pos, loff_t length, 166 int (*iomap_end)(struct inode *inode, loff_t pos, loff_t length, 185 loff_t pos; 234 int iomap_file_unshare(struct inode *inode, loff_t pos, loff_t len, 236 int iomap_zero_range(struct inode *inode, loff_t pos, loff_t len, [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 *); 274 loff_t pos); 276 loff_t pos); 278 loff_t *ppos); [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 | fs.h | 92 typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, 248 loff_t ia_size; 343 loff_t ki_pos; 369 loff_t pos, unsigned len, 372 loff_t pos, unsigned len, unsigned copied, 627 loff_t i_size; 845 static inline loff_t i_size_read(const struct inode *inode) in i_size_read() 848 loff_t i_size; in i_size_read() 857 loff_t i_size; in i_size_read() 873 static inline void i_size_write(struct inode *inode, loff_t i_size) in i_size_write() [all …]
|
D | netfs.h | 130 loff_t remote_i_size; /* Size of the remote file */ 150 loff_t start; /* Where to start the I/O */ 190 loff_t i_size; /* Size of the file */ 191 loff_t start; /* Start position */ 216 int (*check_write_begin)(struct file *file, loff_t pos, unsigned len, 240 loff_t start_pos, 248 loff_t start_pos, 255 loff_t *_start, size_t *_len, loff_t i_size); 261 loff_t i_size); 267 loff_t *_start, size_t *_len, loff_t i_size, [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 | 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()
|
/linux-6.1.9/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.1.9/fs/nfs/ |
D | nfs42.h | 19 int nfs42_proc_allocate(struct file *, loff_t, loff_t); 20 ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t, 22 int nfs42_proc_deallocate(struct file *, loff_t, loff_t); 23 loff_t nfs42_proc_llseek(struct file *, loff_t, int); 26 int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
|
/linux-6.1.9/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 | 91 loff_t *pos, loff_t length, size_t *offp, size_t *lenp) in iomap_adjust_read_range() 94 loff_t orig_pos = *pos; in iomap_adjust_read_range() 95 loff_t isize = i_size_read(inode); in iomap_adjust_read_range() 99 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); in iomap_adjust_read_range() 247 loff_t pos) in iomap_block_needs_zeroing() 256 static loff_t iomap_readpage_iter(const struct iomap_iter *iter, in iomap_readpage_iter() 257 struct iomap_readpage_ctx *ctx, loff_t offset) in iomap_readpage_iter() 260 loff_t pos = iter->pos + offset; in iomap_readpage_iter() 261 loff_t length = iomap_length(iter) - offset; in iomap_readpage_iter() 264 loff_t orig_pos = pos; in iomap_readpage_iter() [all …]
|
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/mm/ |
D | fadvise.c | 32 int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in generic_fadvise() 37 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.1.9/drivers/mtd/tests/ |
D | speedtest.c | 47 loff_t addr = (loff_t)ebnum * mtd->erasesize; in multiblock_erase() 65 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 73 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_page() 91 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_2pages() 109 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock() 117 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock_by_page() 135 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock_by_2pages()
|
/linux-6.1.9/fs/hpfs/ |
D | dnode.c | 12 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos() 18 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos() 22 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; in get_pos() 25 int hpfs_add_pos(struct inode *inode, loff_t *pos) in hpfs_add_pos() 29 loff_t **ppos; in hpfs_add_pos() 36 ppos = kmalloc_array(i + 0x11, sizeof(loff_t *), GFP_NOFS); in hpfs_add_pos() 42 memcpy(ppos, hpfs_inode->i_rddir_off, i * sizeof(loff_t)); in hpfs_add_pos() 52 void hpfs_del_pos(struct inode *inode, loff_t *pos) in hpfs_del_pos() 55 loff_t **i, **j; in hpfs_del_pos() 75 static void for_all_poss(struct inode *inode, void (*f)(loff_t *, loff_t, loff_t), in for_all_poss() argument [all …]
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
D | qib_debugfs.c | 69 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _opcode_stats_seq_start() 78 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _opcode_stats_seq_next() 96 loff_t *spos = v; in _opcode_stats_seq_show() 97 loff_t i = *spos, j; in _opcode_stats_seq_show() 119 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) in DEBUGFS_FILE() 131 static void *_ctx_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _ctx_stats_seq_next() 152 loff_t *spos; in _ctx_stats_seq_show() 153 loff_t i, j; in _ctx_stats_seq_show() 181 static void *_qp_stats_seq_start(struct seq_file *s, loff_t *pos) in DEBUGFS_FILE() 185 loff_t n = *pos; in DEBUGFS_FILE() [all …]
|
/linux-6.1.9/drivers/mtd/chips/ |
D | map_rom.c | 18 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 19 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 23 static int maprom_point (struct mtd_info *mtd, loff_t from, size_t len, 25 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 72 static int maprom_point(struct mtd_info *mtd, loff_t from, size_t len, in maprom_point() 86 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in maprom_unpoint() 91 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read() 105 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write()
|
/linux-6.1.9/net/appletalk/ |
D | atalk_proc.c | 17 static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos) in atalk_get_interface_idx() 27 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos) in atalk_seq_interface_start() 30 loff_t l = *pos; in atalk_seq_interface_start() 36 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next() 78 static __inline__ struct atalk_route *atalk_get_route_idx(loff_t pos) in atalk_get_route_idx() 88 static void *atalk_seq_route_start(struct seq_file *seq, loff_t *pos) in atalk_seq_route_start() 91 loff_t l = *pos; in atalk_seq_route_start() 97 static void *atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_route_next() 145 static void *atalk_seq_socket_start(struct seq_file *seq, loff_t *pos) in atalk_seq_socket_start() 152 static void *atalk_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_socket_next()
|
/linux-6.1.9/fs/gfs2/ |
D | bmap.h | 52 extern int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length, 54 extern int gfs2_iomap_alloc(struct inode *inode, loff_t pos, loff_t length, 68 extern int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
|