Home
last modified time | relevance | path

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

12345678910>>...15

/fs/
Dread_write.c25 typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *);
27 unsigned long, loff_t);
44 static loff_t lseek_execute(struct file *file, struct inode *inode, in lseek_execute()
45 loff_t offset, loff_t maxsize) in lseek_execute()
75 loff_t
76 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size()
77 loff_t maxsize, loff_t eof) in generic_file_llseek_size()
137 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek()
158 loff_t noop_llseek(struct file *file, loff_t offset, int whence) in noop_llseek()
164 loff_t no_llseek(struct file *file, loff_t offset, int whence) in no_llseek()
[all …]
Dbad_inode.c19 static loff_t bad_file_llseek(struct file *file, loff_t offset, int whence) in bad_file_llseek()
25 size_t size, loff_t *ppos) in bad_file_read()
31 size_t siz, loff_t *ppos) in bad_file_write()
37 unsigned long nr_segs, loff_t pos) in bad_file_aio_read()
43 unsigned long nr_segs, loff_t pos) in bad_file_aio_write()
90 static int bad_file_fsync(struct file *file, loff_t start, loff_t end, in bad_file_fsync()
112 int off, size_t len, loff_t *pos, int more) in bad_file_sendpage()
135 struct file *out, loff_t *ppos, size_t len, in bad_file_splice_write()
141 static ssize_t bad_file_splice_read(struct file *in, loff_t *ppos, in bad_file_splice_read()
Dsync.c178 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range()
231 int generic_write_sync(struct file *file, loff_t pos, loff_t count) in generic_write_sync()
287 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
293 loff_t endbyte; /* inclusive */ in SYSCALL_DEFINE4()
373 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
Dseq_file.c97 static int traverse(struct seq_file *m, loff_t offset) in traverse()
99 loff_t pos = 0, index; in traverse()
164 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read()
168 loff_t pos; in seq_read()
262 loff_t next = pos; in seq_read()
315 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek()
318 loff_t retval = -EINVAL; in seq_lseek()
578 static void *single_start(struct seq_file *p, loff_t *pos) in single_start()
583 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next()
779 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start()
[all …]
Dlibfs.c84 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek()
103 loff_t n = file->f_pos - 2; in dcache_dir_lseek()
195 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir()
394 loff_t pos, unsigned len, unsigned flags, in simple_write_begin()
438 loff_t pos, unsigned len, unsigned copied, in simple_write_end()
442 loff_t last_pos = pos + copied; in simple_write_end()
582 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer()
585 loff_t pos = *ppos; in simple_read_from_buffer()
616 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer()
619 loff_t pos = *ppos; in simple_write_to_buffer()
[all …]
Dsplice.c307 __generic_file_splice_read(struct file *in, loff_t *ppos, in __generic_file_splice_read()
317 loff_t isize; in __generic_file_splice_read()
500 in->f_ra.prev_pos = (loff_t)index << PAGE_CACHE_SHIFT; in __generic_file_splice_read()
523 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read()
527 loff_t isize, left; in generic_file_splice_read()
559 unsigned long vlen, loff_t offset) in kernel_readv()
562 loff_t pos = offset; in kernel_readv()
575 loff_t pos) in kernel_write()
590 ssize_t default_file_splice_read(struct file *in, loff_t *ppos, in default_file_splice_read()
695 loff_t pos = sd->pos; in pipe_to_sendpage()
[all …]
/fs/ext4/
Dfile.c78 ext4_unaligned_aio(struct inode *inode, struct iov_iter *from, loff_t pos)
103 loff_t pos = iocb->ki_pos;
207 unsigned long nr_segs, loff_t pos) in ext4_unaligned_aio()
212 loff_t final_size = pos + count; in ext4_unaligned_aio()
225 unsigned long nr_segs, loff_t pos) in ext4_file_dio_write()
298 unsigned long nr_segs, loff_t pos) in ext4_file_write()
434 loff_t *offset) in ext4_find_unwritten_pgoff()
440 loff_t endoff; in ext4_find_unwritten_pgoff()
441 loff_t startoff; in ext4_find_unwritten_pgoff()
442 loff_t lastoff; in ext4_find_unwritten_pgoff()
[all …]
/fs/ecryptfs/
Dread_write.c40 loff_t offset, size_t size) in ecryptfs_write_lower()
74 loff_t offset; in ecryptfs_write_lower_page_segment()
77 offset = ((((loff_t)page_for_lower->index) << PAGE_CACHE_SHIFT) in ecryptfs_write_lower_page_segment()
105 int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset, in ecryptfs_write()
111 loff_t ecryptfs_file_size = i_size_read(ecryptfs_inode); in ecryptfs_write()
112 loff_t data_offset = 0; in ecryptfs_write()
113 loff_t pos; in ecryptfs_write()
129 loff_t total_remaining_bytes = ((offset + size) - pos); in ecryptfs_write()
140 loff_t total_remaining_zeros = (offset - pos); in ecryptfs_write()
231 int ecryptfs_read_lower(char *data, loff_t offset, size_t size, in ecryptfs_read_lower()
[all …]
Dmmap.c47 struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index) in ecryptfs_get_locked_page()
125 loff_t extent_num_in_page = 0; in ecryptfs_copy_up_encrypted_with_header()
126 loff_t num_extents_per_page = (PAGE_CACHE_SIZE in ecryptfs_copy_up_encrypted_with_header()
131 loff_t view_extent_num = ((((loff_t)page->index) in ecryptfs_copy_up_encrypted_with_header()
163 loff_t lower_offset = in ecryptfs_copy_up_encrypted_with_header()
280 loff_t pos, unsigned len, unsigned flags, in ecryptfs_write_begin()
285 loff_t prev_page_end_size; in ecryptfs_write_begin()
293 prev_page_end_size = ((loff_t)index << PAGE_CACHE_SHIFT); in ecryptfs_write_begin()
480 loff_t pos, unsigned len, unsigned copied, in ecryptfs_write_end()
/fs/afs/
Dproc.c24 static void *afs_proc_cells_start(struct seq_file *p, loff_t *pos);
25 static void *afs_proc_cells_next(struct seq_file *p, void *v, loff_t *pos);
29 size_t size, loff_t *_pos);
50 size_t size, loff_t *_pos);
53 size_t size, loff_t *_pos);
67 static void *afs_proc_cell_volumes_start(struct seq_file *p, loff_t *pos);
69 loff_t *pos);
92 static void *afs_proc_cell_vlservers_start(struct seq_file *p, loff_t *pos);
94 loff_t *pos);
116 static void *afs_proc_cell_servers_start(struct seq_file *p, loff_t *pos);
[all …]
/fs/hpfs/
Ddnode.c11 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos()
17 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
21 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; in get_pos()
24 void hpfs_add_pos(struct inode *inode, loff_t *pos) in hpfs_add_pos()
28 loff_t **ppos; in hpfs_add_pos()
34 if (!(ppos = kmalloc((i+0x11) * sizeof(loff_t*), GFP_NOFS))) { in hpfs_add_pos()
39 memcpy(ppos, hpfs_inode->i_rddir_off, i * sizeof(loff_t)); in hpfs_add_pos()
48 void hpfs_del_pos(struct inode *inode, loff_t *pos) in hpfs_del_pos()
51 loff_t **i, **j; in hpfs_del_pos()
70 static void for_all_poss(struct inode *inode, void (*f)(loff_t *, loff_t, loff_t), in for_all_poss() argument
[all …]
/fs/xfs/
Dxfs_file.c93 loff_t pos, /* offset in file */ in xfs_iozero()
138 loff_t start, in xfs_dir_fsync()
139 loff_t end, in xfs_dir_fsync()
161 loff_t start, in xfs_file_fsync()
162 loff_t end, in xfs_file_fsync()
233 loff_t pos) in xfs_file_aio_read()
319 loff_t *ppos, in xfs_file_splice_read()
360 loff_t *ppos, in xfs_file_splice_write()
544 loff_t *pos, in xfs_file_aio_write_checks()
626 loff_t pos, in xfs_file_dio_aio_write()
[all …]
/fs/cifs/
Dcifsfs.h89 unsigned long nr_segs, loff_t pos);
91 unsigned long nr_segs, loff_t pos);
93 unsigned long nr_segs, loff_t pos);
95 unsigned long nr_segs, loff_t pos);
97 extern int cifs_fsync(struct file *, loff_t, loff_t, int);
98 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int);
/fs/fat/
Dfat.h120 loff_t mmu_private; /* physically allocated size */
125 loff_t i_pos; /* on-disk position of directory entry or 0 */
133 loff_t i_pos; /* on-disk position of directory entry */
134 loff_t slot_off; /* offset for slot or de start */
224 loff_t i_pos, sector_t *blknr, int *offset) in fat_get_blknr_offset()
230 static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi, in fat_i_pos_read()
233 loff_t i_pos; in fat_i_pos_read()
364 extern void fat_truncate_blocks(struct inode *inode, loff_t offset);
367 extern int fat_file_fsync(struct file *file, loff_t start, loff_t end,
371 extern void fat_attach(struct inode *inode, loff_t i_pos);
[all …]
/fs/9p/
Dvfs_file.c437 loff_t * offset) in v9fs_file_read()
461 loff_t *offset, int invalidate) in v9fs_file_write_internal()
464 loff_t i_size; in v9fs_file_write_internal()
467 loff_t origin = *offset; in v9fs_file_write_internal()
511 size_t count, loff_t *offset) in v9fs_file_write()
514 loff_t origin = *offset; in v9fs_file_write()
539 static int v9fs_file_fsync(struct file *filp, loff_t start, loff_t end, in v9fs_file_fsync()
563 int v9fs_file_fsync_dotl(struct file *filp, loff_t start, loff_t end, in v9fs_file_fsync_dotl()
629 loff_t *offsetp) in v9fs_direct_read()
631 loff_t size, offset; in v9fs_direct_read()
[all …]
Dvfs_addr.c55 loff_t offset; in v9fs_fid_readpage()
166 loff_t offset, size; in v9fs_vfs_writepage_locked()
261 loff_t pos, unsigned long nr_segs) in v9fs_direct_IO()
276 loff_t pos, unsigned len, unsigned flags, in v9fs_write_begin()
309 loff_t pos, unsigned len, unsigned copied, in v9fs_write_end()
312 loff_t last_pos = pos + copied; in v9fs_write_end()
/fs/gfs2/
Dfile.c56 static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) in gfs2_llseek()
60 loff_t error; in gfs2_llseek()
338 static void gfs2_size_hint(struct file *filep, loff_t offset, size_t size) in gfs2_size_hint()
397 loff_t size; in gfs2_page_mkwrite()
632 static int gfs2_fsync(struct file *file, loff_t start, loff_t end, in gfs2_fsync()
680 unsigned long nr_segs, loff_t pos) in gfs2_file_aio_write()
705 static int fallocate_chunk(struct inode *inode, loff_t offset, loff_t len, in fallocate_chunk()
711 loff_t size = len; in fallocate_chunk()
755 static void calc_max_reserv(struct gfs2_inode *ip, loff_t max, loff_t *len, in calc_max_reserv()
772 *len = ((loff_t)max_data - 3) << sdp->sd_sb.sb_bsize_shift; in calc_max_reserv()
[all …]
/fs/isofs/
Dcompress.c43 static loff_t zisofs_uncompress_block(struct inode *inode, loff_t block_start, in zisofs_uncompress_block()
44 loff_t block_end, int pcount, in zisofs_uncompress_block()
77 return ((loff_t)pcount) << PAGE_CACHE_SHIFT; in zisofs_uncompress_block()
202 loff_t start_off, end_off; in zisofs_fill_pages()
203 loff_t block_start, block_end; in zisofs_fill_pages()
207 loff_t poffset = 0; in zisofs_fill_pages()
213 loff_t ret; in zisofs_fill_pages()
223 end_off = min_t(loff_t, start_off + PAGE_CACHE_SIZE, inode->i_size); in zisofs_fill_pages()
/fs/f2fs/
Dfile.c105 int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) in f2fs_sync_file()
378 loff_t start, loff_t len) in fill_zero()
424 static int punch_hole(struct inode *inode, loff_t offset, loff_t len, int mode) in punch_hole()
427 loff_t off_start, off_end; in punch_hole()
448 loff_t blk_start, blk_end; in punch_hole()
474 static int expand_inode_data(struct inode *inode, loff_t offset, in expand_inode_data()
475 loff_t len, int mode) in expand_inode_data()
479 loff_t new_size = i_size_read(inode); in expand_inode_data()
480 loff_t off_start, off_end; in expand_inode_data()
536 loff_t offset, loff_t len) in f2fs_fallocate()
/fs/fuse/
Dcontrol.c34 size_t count, loff_t *ppos) in fuse_conn_abort_write()
45 size_t len, loff_t *ppos) in fuse_conn_waiting_read()
65 size_t len, loff_t *ppos, unsigned val) in fuse_conn_limit_read()
74 size_t count, loff_t *ppos, unsigned *val, in fuse_conn_limit_write()
101 loff_t *ppos) in fuse_conn_max_background_read()
118 size_t count, loff_t *ppos) in fuse_conn_max_background_write()
138 loff_t *ppos) in fuse_conn_congestion_threshold_read()
155 size_t count, loff_t *ppos) in fuse_conn_congestion_threshold_write()
/fs/nfs/
Dinternal.h231 void nfs_set_pgio_error(struct nfs_pgio_header *hdr, int error, loff_t pos);
285 int nfs_file_fsync_commit(struct file *, loff_t, loff_t, int);
286 loff_t nfs_file_llseek(struct file *, loff_t, int);
288 ssize_t nfs_file_read(struct kiocb *, const struct iovec *, unsigned long, loff_t);
289 ssize_t nfs_file_splice_read(struct file *, loff_t *, struct pipe_inode_info *,
292 ssize_t nfs_file_write(struct kiocb *, const struct iovec *, unsigned long, loff_t);
296 ssize_t nfs_file_splice_write(struct pipe_inode_info *, struct file *, loff_t *,
521 sb->s_maxbytes = (loff_t)maxfilesize; in nfs_super_set_maxbytes()
532 loff_t i_size = i_size_read(page_file_mapping(page)->host); in nfs_page_length()
/fs/nfsd/
Dvfs.h70 loff_t, unsigned long);
76 loff_t, struct kvec *, int, unsigned long *);
78 loff_t, struct kvec *, int, unsigned long *);
80 loff_t, struct kvec *,int, unsigned long *, int *);
98 loff_t *, struct readdir_cd *, filldir_t);
/fs/jffs2/
Dos-linux.h115 …v(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen…
116 int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char…
117 int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf);
156 int jffs2_fsync(struct file *, loff_t, loff_t, int);
193 unsigned long count, loff_t to, size_t *retlen);
194 int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len,
/fs/nilfs2/
Dsegment.h143 loff_t sc_dsync_start;
144 loff_t sc_dsync_end;
229 loff_t, loff_t);
/fs/proc/
Dnommu.c61 ((loff_t)region->vm_pgoff) << PAGE_SHIFT, in nommu_region_show()
87 static void *nommu_region_list_start(struct seq_file *m, loff_t *_pos) in nommu_region_list_start()
90 loff_t pos = *_pos; in nommu_region_list_start()
105 static void *nommu_region_list_next(struct seq_file *m, void *v, loff_t *pos) in nommu_region_list_next()

12345678910>>...15