| /linux/fs/nfs/ |
| H A 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 int nfs42_proc_zero_range(struct file *, loff_t, loff_t); 25 loff_t nfs42_proc_llseek(struct file *, loff_t, int); 28 int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
|
| /linux/include/linux/mtd/ |
| H A 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/include/linux/ |
| H A D | iomap.h | 132 loff_t offset; /* file offset of mapping, bytes */ 143 static inline sector_t iomap_sector(const struct iomap *iomap, loff_t pos) in iomap_sector() 153 static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos) in iomap_inline_data() 164 struct folio *(*get_folio)(struct iomap_iter *iter, loff_t pos, 166 void (*put_folio)(struct inode *inode, loff_t pos, unsigned copied, 194 struct folio *folio, loff_t pos, size_t len); 221 typedef int (*iomap_iter_begin_fn)(struct inode *inode, loff_t pos, 222 loff_t length, unsigned flags, struct iomap *iomap, 231 typedef int (*iomap_iter_end_fn)(struct inode *inode, loff_t pos, loff_t length, 265 loff_t pos; [all …]
|
| H A D | splice.h | 42 loff_t pos; /* file position */ 43 loff_t *opos; /* sendfile: output position */ 72 loff_t *ppos, size_t len, unsigned int flags, 79 ssize_t vfs_splice_read(struct file *in, loff_t *ppos, 84 ssize_t do_splice(struct file *in, loff_t *off_in, struct file *out, 85 loff_t *off_out, size_t len, unsigned int flags); 86 ssize_t do_splice_direct(struct file *in, loff_t *ppos, struct file *out, 87 loff_t *opos, size_t len, unsigned int flags); 88 ssize_t splice_file_range(struct file *in, loff_t *ppos, struct file *out, 89 loff_t *opos, size_t len); [all …]
|
| H A 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()
|
| H A D | sysctl.h | 78 size_t *lenp, loff_t *ppos); 82 loff_t *ppos); 84 loff_t *ppos); 86 loff_t *ppos); 88 size_t *lenp, loff_t *ppos); 90 loff_t *ppos); 92 size_t *lenp, loff_t *ppos); 94 size_t *lenp, loff_t *ppos); 96 size_t *lenp, loff_t *ppos); 98 size_t *lenp, loff_t *ppos); [all …]
|
| /linux/fs/ |
| H A 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 int remap_verify_area(struct file *file, loff_t pos, loff_t len, bool write) in remap_verify_area() 105 loff_t tmp; in remap_verify_area() 135 loff_t pos_out, in generic_remap_check_len() 136 loff_t *len, in generic_remap_check_len() 140 loff_t new_len = *len; in generic_remap_check_len() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_reflink.h | 51 extern loff_t xfs_reflink_remap_range(struct file *file_in, loff_t pos_in, 52 struct file *file_out, loff_t pos_out, loff_t len, 60 extern int xfs_reflink_remap_prep(struct file *file_in, loff_t pos_in, 61 struct file *file_out, loff_t pos_out, loff_t *len, 63 extern int xfs_reflink_remap_blocks(struct xfs_inode *src, loff_t pos_in, 64 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len, 65 loff_t *remapped);
|
| H A D | xfs_iomap.h | 27 int xfs_zero_range(struct xfs_inode *ip, loff_t pos, loff_t len, 29 int xfs_truncate_page(struct xfs_inode *ip, loff_t pos, 36 loff_t offset, in xfs_iomap_set_anon_write() 37 loff_t length) in xfs_iomap_set_anon_write() 66 int xfs_read_iomap_begin(struct inode *inode, loff_t offset, 67 loff_t length, unsigned flags, struct iomap *iomap,
|
| H A D | xfs_file.c | 50 loff_t pos, in xfs_is_falloc_aligned() 71 loff_t start, in xfs_dir_fsync() 72 loff_t end, in xfs_dir_fsync() 127 loff_t start, in xfs_file_fsync() 128 loff_t end, in xfs_file_fsync() 242 loff_t file_offset) in xfs_dio_read_bounce_submit_io() 358 loff_t *ppos, in xfs_file_splice_read() 400 loff_t isize; in xfs_file_write_zero_eof() 537 loff_t count = iov_iter_count(from); in xfs_zoned_write_space_reserve() 587 loff_t offset, in xfs_dio_endio_set_isize() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | debugfs.c | 28 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _opcode_stats_seq_start() 37 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _opcode_stats_seq_next() 64 loff_t *spos = v; in _opcode_stats_seq_show() 65 loff_t i = *spos, j; in _opcode_stats_seq_show() 86 static void *_tx_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _tx_opcode_stats_seq_start() 91 static void *_tx_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _tx_opcode_stats_seq_next() 102 loff_t *spos = v; in _tx_opcode_stats_seq_show() 103 loff_t i = *spos; in _tx_opcode_stats_seq_show() 122 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) in _ctx_stats_seq_start() 134 static void *_ctx_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _ctx_stats_seq_next() [all …]
|
| /linux/fs/iomap/ |
| H A D | seek.c | 10 loff_t *hole_pos) in iomap_seek_hole_iter() 12 loff_t length = iomap_length(iter); in iomap_seek_hole_iter() 29 loff_t 30 iomap_seek_hole(struct inode *inode, loff_t pos, const struct iomap_ops *ops) in iomap_seek_hole() 32 loff_t size = i_size_read(inode); in iomap_seek_hole() 56 loff_t *hole_pos) in iomap_seek_data_iter() 58 loff_t length = iomap_length(iter); in iomap_seek_data_iter() 75 loff_t 76 iomap_seek_data(struct inode *inode, loff_t pos, const struct iomap_ops *ops) in iomap_seek_data() 78 loff_t size = i_size_read(inode); in iomap_seek_data()
|
| H A D | buffered-io.c | 303 static size_t iomap_bytes_to_truncate(loff_t end_pos, unsigned block_bits, in iomap_bytes_to_truncate() 319 loff_t *pos, loff_t length, size_t *offp, size_t *lenp) in iomap_adjust_read_range() 322 loff_t orig_pos = *pos; in iomap_adjust_read_range() 323 loff_t isize = i_size_read(inode); in iomap_adjust_read_range() 327 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); in iomap_adjust_read_range() 383 loff_t pos) in iomap_block_needs_zeroing() 561 loff_t pos = iter->pos; in iomap_read_folio_iter() 562 loff_t length = iomap_length(iter); in iomap_read_folio_iter() 567 loff_t pos_diff; in iomap_read_folio_iter() 579 length = min_t(loff_t, length, folio_len - offset_in_folio(folio, pos)); in iomap_read_folio_iter() [all …]
|
| /linux/drivers/s390/char/ |
| H A D | hmcdrv_dev.c | 43 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence); 45 size_t len, loff_t *pos); 47 size_t len, loff_t *pos); 48 static ssize_t hmcdrv_dev_transfer(char __kernel *cmd, loff_t offset, 113 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) in hmcdrv_dev_seek() 149 static ssize_t hmcdrv_dev_transfer(char __kernel *cmd, loff_t offset, in hmcdrv_dev_transfer() 172 size_t len, loff_t *pos) in hmcdrv_dev_read() 197 size_t len, loff_t *pos) in hmcdrv_dev_write()
|
| /linux/fs/gfs2/ |
| H A D | bmap.h | 53 int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length, 55 int gfs2_iomap_alloc(struct inode *inode, loff_t pos, loff_t length, 61 int gfs2_clear_beyond_eof(struct inode *inode, loff_t end); 69 int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
|
| /linux/fs/exfat/ |
| H A D | iomap.c | 41 static int __exfat_iomap_begin(struct inode *inode, loff_t offset, loff_t length, in __exfat_iomap_begin() 48 loff_t cluster_offset, cluster_length; in __exfat_iomap_begin() 83 iomap->length = min_t(loff_t, length, cluster_length - cluster_offset); in __exfat_iomap_begin() 142 static int exfat_iomap_begin(struct inode *inode, loff_t offset, loff_t length, in exfat_iomap_begin() 148 static int exfat_write_iomap_begin(struct inode *inode, loff_t offset, loff_t length, in exfat_write_iomap_begin() 166 static int exfat_write_iomap_end(struct inode *inode, loff_t pos, loff_t length, in exfat_write_iomap_end() 171 loff_t end; in exfat_write_iomap_end() 251 loff_t pos = folio_pos(folio); in exfat_iomap_read_end_io()
|
| /linux/drivers/mtd/tests/ |
| H A 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/drivers/mtd/chips/ |
| H A D | map_rom.c | 19 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 20 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 24 static int maprom_point (struct mtd_info *mtd, loff_t from, size_t len, 26 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 73 static int maprom_point(struct mtd_info *mtd, loff_t from, size_t len, in maprom_point() 87 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in maprom_unpoint() 92 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read() 106 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write()
|
| H A D | map_ram.c | 19 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 20 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 24 static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len, 26 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 91 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point() 105 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mapram_unpoint() 110 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() 119 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write()
|
| /linux/drivers/net/wireless/marvell/libertas/ |
| H A D | debugfs.c | 26 size_t count, loff_t *ppos) in write_file_dummy() 34 size_t count, loff_t *ppos) in lbs_dev_info() 56 loff_t *ppos) in lbs_sleepparams_write() 92 size_t count, loff_t *ppos) in lbs_sleepparams_read() 120 loff_t *ppos) in lbs_host_sleep_write() 161 size_t count, loff_t *ppos) in lbs_host_sleep_read() 216 size_t count, loff_t *ppos) in lbs_threshold_read() 269 loff_t *ppos) in lbs_threshold_write() 336 size_t count, loff_t *ppos) in lbs_lowrssi_read() 344 size_t count, loff_t *ppos) in lbs_lowrssi_write() [all …]
|
| /linux/fs/overlayfs/ |
| H A D | file.c | 243 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek() 247 loff_t ret; in ovl_llseek() 378 static ssize_t ovl_splice_read(struct file *in, loff_t *ppos, in ovl_splice_read() 411 loff_t *ppos, size_t len, unsigned int flags) in ovl_splice_write() 442 static int ovl_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ovl_fsync() 479 static long ovl_fallocate(struct file *file, int mode, loff_t offset, loff_t len) in ovl_fallocate() 509 static int ovl_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in ovl_fadvise() 527 static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, in ovl_copyfile() 528 struct file *file_out, loff_t pos_out, in ovl_copyfile() 529 loff_t len, unsigned int flags, enum ovl_copyop op) in ovl_copyfile() [all …]
|
| /linux/fs/btrfs/ |
| H A D | file.h | 25 int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync); 39 int btrfs_dirty_folio(struct btrfs_inode *inode, struct folio *folio, loff_t pos, 41 int btrfs_fdatawrite_range(struct btrfs_inode *inode, loff_t start, loff_t end); 42 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos,
|
| H A D | reflink.h | 10 loff_t btrfs_remap_file_range(struct file *file_in, loff_t pos_in, 11 struct file *file_out, loff_t pos_out, 12 loff_t len, unsigned int remap_flags);
|
| /linux/drivers/zorro/ |
| H A D | proc.c | 24 static loff_t 25 proc_bus_zorro_lseek(struct file *file, loff_t off, int whence) in proc_bus_zorro_lseek() 31 proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in proc_bus_zorro_read() 35 loff_t pos = *ppos; in proc_bus_zorro_read() 64 static void * zorro_seq_start(struct seq_file *m, loff_t *pos) in zorro_seq_start() 69 static void * zorro_seq_next(struct seq_file *m, void *v, loff_t *pos) in zorro_seq_next() 81 unsigned int slot = *(loff_t *)v; in zorro_seq_show()
|
| /linux/fs/zonefs/ |
| H A D | zonefs.h | 60 loff_t z_size; 63 loff_t z_capacity; 66 loff_t z_wpoffset; 232 loff_t s_blocks; 233 loff_t s_used_blocks; 261 void zonefs_i_size_write(struct inode *inode, loff_t isize); 262 void zonefs_update_stats(struct inode *inode, loff_t new_isize); 281 int zonefs_file_truncate(struct inode *inode, loff_t isize);
|