Home
last modified time | relevance | path

Searched refs:loff_t (Results 1 – 25 of 2018) sorted by relevance

12345678910>>...81

/openbmc/u-boot/include/
H A Dsandboxfs.h23 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer,
24 loff_t maxsize, loff_t *actread);
25 int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer,
26 loff_t maxsize, loff_t *actwrite);
31 int sandbox_fs_size(const char *filename, loff_t *size);
32 int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len,
33 loff_t *actread);
34 int fs_write_sandbox(const char *filename, void *buf, loff_t offset,
35 loff_t len, loff_t *actwrite);
H A Dnand.h47 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, in nand_read()
53 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len, in nand_write()
59 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad()
64 static inline int nand_erase(struct mtd_info *info, loff_t off, size_t size) in nand_erase()
84 loff_t length; /* number of bytes to erase */
85 loff_t offset; /* first address in NAND to erase */
95 loff_t lim;
100 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
101 size_t *actual, loff_t lim, u_char *buffer);
106 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
[all …]
H A Dext4fs.h133 int ext4_write_file(const char *filename, void *buf, loff_t offset, loff_t len,
134 loff_t *actwrite);
138 int ext4fs_open(const char *filename, loff_t *len);
139 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread);
145 int ext4fs_size(const char *filename, loff_t *size);
152 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len,
153 loff_t *actread);
H A Dfs.h72 int fs_size(const char *filename, loff_t *size);
85 int fs_read(const char *filename, ulong addr, loff_t offset, loff_t len,
86 loff_t *actread);
99 int fs_write(const char *filename, ulong addr, loff_t offset, loff_t len,
100 loff_t *actwrite);
116 loff_t size; /* size in bytes */
/openbmc/linux/include/linux/
H A Diomap.h96 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;
281 struct iomap *iomap, loff_t pos, loff_t length, ssize_t written,
282 int (*punch)(struct inode *inode, loff_t pos, loff_t length));
[all …]
H A Dsysctl.h65 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 …]
H A Dseq_file.h23 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 …]
H A Dnetfs.h131 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 …]
H A Dfs.h92 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,
676 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 …]
H A Dfscache.h115 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 …]
/openbmc/linux/fs/
H A Dremap_range.c31 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 …]
H A Dread_write.c54 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 …]
/openbmc/u-boot/include/linux/mtd/
H A Dmtd.h235 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len,
237 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
243 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len,
245 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len,
247 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len,
249 int (*_read_oob) (struct mtd_info *mtd, loff_t from,
251 int (*_write_oob) (struct mtd_info *mtd, loff_t to,
255 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from,
259 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from,
261 int (*_write_user_prot_reg) (struct mtd_info *mtd, loff_t to,
[all …]
/openbmc/u-boot/fs/sandbox/
H A Dsandboxfs.c19 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer, in sandbox_fs_read_at()
20 loff_t maxsize, loff_t *actread) in sandbox_fs_read_at()
22 loff_t size; in sandbox_fs_read_at()
56 int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer, in sandbox_fs_write_at()
57 loff_t towrite, loff_t *actwrite) in sandbox_fs_write_at()
104 loff_t size; in sandbox_fs_exists()
111 int sandbox_fs_size(const char *filename, loff_t *size) in sandbox_fs_size()
120 int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, in fs_read_sandbox()
121 loff_t *actread) in fs_read_sandbox()
132 int fs_write_sandbox(const char *filename, void *buf, loff_t offset, in fs_write_sandbox()
[all …]
/openbmc/linux/include/linux/mtd/
H A Dmtd.h317 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 …]
/openbmc/linux/fs/nfs/
H A Dnfs42.h20 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);
/openbmc/linux/fs/iomap/
H A Dseek.c13 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 …]
H A Dbuffered-io.c26 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()
325 loff_t pos) in iomap_block_needs_zeroing()
334 static loff_t iomap_readpage_iter(const struct iomap_iter *iter, in iomap_readpage_iter()
335 struct iomap_readpage_ctx *ctx, loff_t offset) in iomap_readpage_iter()
338 loff_t pos = iter->pos + offset; in iomap_readpage_iter()
339 loff_t length = iomap_length(iter) - offset; in iomap_readpage_iter()
[all …]
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Ddebugfs.c27 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 …]
/openbmc/linux/fs/xfs/scrub/
H A Dxfile.h12 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,
/openbmc/linux/fs/xfs/
H A Dxfs_reflink.h57 extern loff_t xfs_reflink_remap_range(struct file *file_in, loff_t pos_in,
58 struct file *file_out, loff_t pos_out, loff_t len,
66 extern int xfs_reflink_remap_prep(struct file *file_in, loff_t pos_in,
67 struct file *file_out, loff_t pos_out, loff_t *len,
69 extern int xfs_reflink_remap_blocks(struct xfs_inode *src, loff_t pos_in,
70 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len,
71 loff_t *remapped);
/openbmc/u-boot/fs/
H A Dfs.c74 static inline int fs_size_unsupported(const char *filename, loff_t *size) in fs_size_unsupported()
80 loff_t offset, loff_t len, in fs_read_unsupported()
81 loff_t *actread) in fs_read_unsupported()
87 loff_t offset, loff_t len, in fs_write_unsupported()
88 loff_t *actwrite) in fs_write_unsupported()
134 int (*size)(const char *filename, loff_t *size);
135 int (*read)(const char *filename, void *buf, loff_t offset,
136 loff_t len, loff_t *actread);
137 int (*write)(const char *filename, void *buf, loff_t offset,
138 loff_t len, loff_t *actwrite);
[all …]
/openbmc/linux/fs/ecryptfs/
H A Dread_write.c28 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 …]
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-debugfs.c125 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 …]
/openbmc/u-boot/fs/ext4/
H A Dext4fs.c48 int ext4fs_read_file(struct ext2fs_node *node, loff_t pos, in ext4fs_read_file()
49 loff_t len, char *buf, loff_t *actread) in ext4fs_read_file()
190 loff_t file_len; in ext4fs_exists()
197 int ext4fs_size(const char *filename, loff_t *size) in ext4fs_size()
202 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread) in ext4fs_read()
223 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len, in ext4_read_file()
224 loff_t *len_read) in ext4_read_file()
226 loff_t file_len; in ext4_read_file()

12345678910>>...81