| /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/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 …]
|
| H A D | sync.c | 178 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range() 224 int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, in sync_file_range() 229 loff_t endbyte; /* inclusive */ in sync_file_range() 349 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range() 360 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument 378 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
|
| /linux/include/linux/ |
| 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 | sysctl.h | 78 size_t *lenp, loff_t *ppos); 80 int proc_dostring(const struct ctl_table *, int, void *, size_t *, loff_t *); 82 size_t *lenp, loff_t *ppos); 84 int proc_dointvec(const struct ctl_table *, int, void *, size_t *, loff_t *); 86 size_t *lenp, loff_t *ppos); 88 size_t *lenp, loff_t *ppos, 100 int proc_douintvec(const struct ctl_table *, int, void *, size_t *, loff_t *); 102 size_t *lenp, loff_t *ppos); 104 size_t *lenp, loff_t *ppos, 116 size_t *lenp, loff_t *ppos); [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 | pagemap.h | 36 loff_t pos, loff_t end, bool nowait); 43 int filemap_fdatawait_range(struct address_space *, loff_t lstart, loff_t lend); 45 loff_t start_byte, loff_t end_byte); 47 loff_t start, loff_t end); 54 bool filemap_range_has_page(struct address_space *, loff_t lstart, loff_t lend); 56 loff_t lstart, loff_t lend); 58 loff_t start, loff_t end); 955 static inline loff_t folio_next_pos(const struct folio *folio) in folio_next_pos() 957 return (loff_t)folio_next_index(folio) << PAGE_SHIFT; in folio_next_pos() 1045 static inline loff_t folio_pos(const struct folio *folio) in folio_pos() [all …]
|
| /linux/fs/ntfs/ |
| H A D | iomap.c | 15 static void ntfs_iomap_put_folio_non_resident(struct inode *inode, loff_t pos, in ntfs_iomap_put_folio_non_resident() 20 loff_t start_down, end_up, init; in ntfs_iomap_put_folio_non_resident() 28 loff_t offset = offset_in_folio(folio, pos + len); in ntfs_iomap_put_folio_non_resident() 39 loff_t offset = max_t(loff_t, pos + len, init); in ntfs_iomap_put_folio_non_resident() 49 loff_t offset = 0, offset2 = offset_in_folio(folio, pos + len); in ntfs_iomap_put_folio_non_resident() 69 static void ntfs_iomap_put_folio(struct inode *inode, loff_t pos, in ntfs_iomap_put_folio() 83 static int ntfs_read_iomap_begin_resident(struct inode *inode, loff_t offset, loff_t length, in ntfs_read_iomap_begin_resident() 88 loff_t i_size; in ntfs_read_iomap_begin_resident() 194 static int ntfs_read_iomap_begin_non_resident(struct inode *inode, loff_t offset, in ntfs_read_iomap_begin_non_resident() 195 loff_t length, unsigned int flags, struct iomap *iomap, in ntfs_read_iomap_begin_non_resident() [all …]
|
| H A D | file.c | 156 static int ntfs_file_fsync(struct file *filp, loff_t start, loff_t end, in ntfs_file_fsync() 256 loff_t old_size = vi->i_size; in ntfs_setattr_size() 279 loff_t len = min_t(loff_t, in ntfs_setattr_size() 412 static loff_t ntfs_file_llseek(struct file *file, loff_t offset, int whence) in ntfs_file_llseek() 506 loff_t offset, end; in ntfs_dio_write_iter() 545 loff_t pos; in ntfs_file_write_iter() 547 loff_t old_data_size, old_init_size; in ntfs_file_write_iter() 649 loff_t from, to; in ntfs_file_mmap_prepare() 652 from = ((loff_t)desc->pgoff << PAGE_SHIFT); in ntfs_file_mmap_prepare() 653 to = min_t(loff_t, i_size_read(inode), in ntfs_file_mmap_prepare() [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);
|
| /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 | 272 static size_t iomap_bytes_to_truncate(loff_t end_pos, unsigned block_bits, in iomap_bytes_to_truncate() 288 loff_t *pos, loff_t length, size_t *offp, size_t *lenp) in iomap_adjust_read_range() 291 loff_t orig_pos = *pos; in iomap_adjust_read_range() 292 loff_t isize = i_size_read(inode); in iomap_adjust_read_range() 296 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); in iomap_adjust_read_range() 352 loff_t pos) in iomap_block_needs_zeroing() 513 loff_t pos = iter->pos; in iomap_read_folio_iter() 514 loff_t length = iomap_length(iter); in iomap_read_folio_iter() 519 loff_t pos_diff; in iomap_read_folio_iter() 531 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/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/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() 57 loff_t *ppos) in lbs_sleepparams_write() 93 size_t count, loff_t *ppos) in lbs_sleepparams_read() 122 loff_t *ppos) in lbs_host_sleep_write() 163 size_t count, loff_t *ppos) in lbs_host_sleep_read() 219 size_t count, loff_t *ppos) in lbs_threshold_read() 272 loff_t *ppos) in lbs_threshold_write() 339 size_t count, loff_t *ppos) in lbs_lowrssi_read() 347 size_t count, loff_t *ppos) in lbs_lowrssi_write() [all …]
|
| /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/net/appletalk/ |
| H A 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/kernel/ |
| H A D | sysctl.c | 77 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() 155 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() 190 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() 576 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() 648 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() 701 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() 731 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() 780 size_t *lenp, loff_t *ppos, in proc_douintvec_conv() 804 size_t *lenp, loff_t *ppos) in proc_dobool() 841 size_t *lenp, loff_t *ppos) in proc_dointvec() [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,
|
| /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, 68 int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
|
| /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);
|