Home
last modified time | relevance | path

Searched refs:loff_t (Results 1 – 200 of 1748) sorted by relevance

123456789

/linux-4.4.14/include/linux/mtd/
Dmtd.h190 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len,
192 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
197 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len,
199 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len,
201 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len,
203 int (*_read_oob) (struct mtd_info *mtd, loff_t from,
205 int (*_write_oob) (struct mtd_info *mtd, loff_t to,
209 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from,
213 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from,
215 int (*_write_user_prot_reg) (struct mtd_info *mtd, loff_t to,
[all …]
Dspi-nor.h175 int (*read)(struct spi_nor *nor, loff_t from,
177 void (*write)(struct spi_nor *nor, loff_t to,
179 int (*erase)(struct spi_nor *nor, loff_t offs);
181 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
182 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
183 int (*flash_is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len);
Donenand.h91 loff_t diesize[MAX_DIES];
107 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len);
119 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
226 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
228 unsigned onenand_block(struct onenand_chip *this, loff_t addr);
229 loff_t onenand_addr(struct onenand_chip *this, int block);
230 int flexonenand_region(struct mtd_info *mtd, loff_t addr);
/linux-4.4.14/fs/nfs/
Dnfs42.h15 int nfs42_proc_allocate(struct file *, loff_t, loff_t);
16 int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
17 loff_t nfs42_proc_llseek(struct file *, loff_t, int);
20 int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
Dnfs42proc.c41 loff_t offset, loff_t len) in _nfs42_proc_fallocate()
77 loff_t offset, loff_t len) in nfs42_proc_fallocate()
93 int nfs42_proc_allocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_allocate()
114 int nfs42_proc_deallocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_deallocate()
138 static loff_t _nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in _nfs42_proc_llseek()
174 loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in nfs42_proc_llseek()
178 loff_t err; in nfs42_proc_llseek()
276 struct file *dst_f, loff_t src_offset, in _nfs42_proc_clone()
277 loff_t dst_offset, loff_t count) in _nfs42_proc_clone()
320 loff_t src_offset, loff_t dst_offset, loff_t count) in nfs42_proc_clone()
Dnfs4file.c132 nfs4_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) in nfs4_file_fsync()
163 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek()
165 loff_t ret; in nfs4_file_llseek()
178 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate()
Dfile.c121 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek()
135 return (loff_t)retval; in nfs_file_llseek()
184 nfs_file_splice_read(struct file *filp, loff_t *ppos, in nfs_file_splice_read()
237 nfs_file_fsync_commit(struct file *file, loff_t start, loff_t end, int datasync) in nfs_file_fsync_commit()
269 nfs_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) in nfs_file_fsync()
318 loff_t pos, unsigned len) in nfs_want_read_modify_write()
348 loff_t pos, unsigned len, unsigned flags, in nfs_write_begin()
394 loff_t pos, unsigned len, unsigned copied, in nfs_write_end()
/linux-4.4.14/fs/
Dread_write.c24 typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *);
53 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos()
84 loff_t
85 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size()
86 loff_t maxsize, loff_t eof) in generic_file_llseek_size()
143 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek()
161 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek()
184 loff_t noop_llseek(struct file *file, loff_t offset, int whence) in noop_llseek()
190 loff_t no_llseek(struct file *file, loff_t offset, int whence) in no_llseek()
196 loff_t default_llseek(struct file *file, loff_t offset, int whence) in default_llseek()
[all …]
Dseq_file.c100 static int traverse(struct seq_file *m, loff_t offset) in traverse()
102 loff_t pos = 0, index; in traverse()
168 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read()
172 loff_t pos; in seq_read()
266 loff_t next = pos; in seq_read()
319 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek()
322 loff_t retval = -EINVAL; in seq_lseek()
548 static void *single_start(struct seq_file *p, loff_t *pos) in single_start()
553 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next()
801 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start()
[all …]
Dlibfs.c89 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek()
108 loff_t n = file->f_pos - 2; in dcache_dir_lseek()
182 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir()
392 loff_t pos, unsigned len, unsigned flags, in simple_write_begin()
437 loff_t pos, unsigned len, unsigned copied, in simple_write_end()
441 loff_t last_pos = pos + copied; in simple_write_end()
585 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer()
588 loff_t pos = *ppos; in simple_read_from_buffer()
620 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer()
623 loff_t pos = *ppos; in simple_write_to_buffer()
[all …]
Dsync.c183 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range()
282 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
288 loff_t endbyte; /* inclusive */ in SYSCALL_DEFINE4()
369 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
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()
576 unsigned long vlen, loff_t offset) in kernel_readv()
579 loff_t pos = offset; in kernel_readv()
592 loff_t pos) in kernel_write()
607 ssize_t default_file_splice_read(struct file *in, loff_t *ppos, in default_file_splice_read()
712 loff_t pos = sd->pos; in pipe_to_sendpage()
[all …]
Ddax.c81 loff_t pos, loff_t end) in dax_new_buf()
83 loff_t final = end - pos + first; /* The final byte of the buffer */ in dax_new_buf()
109 loff_t start, loff_t end, get_block_t get_block, in dax_io()
113 loff_t pos = start; in dax_io()
114 loff_t max = start; in dax_io()
115 loff_t bh_max = start; in dax_io()
210 struct iov_iter *iter, loff_t pos, get_block_t get_block, in dax_do_io()
215 loff_t end = pos + iov_iter_count(iter); in dax_do_io()
736 int dax_zero_page_range(struct inode *inode, loff_t from, unsigned length, in dax_zero_page_range()
782 int dax_truncate_page(struct inode *inode, loff_t from, get_block_t get_block) in dax_truncate_page()
/linux-4.4.14/include/linux/
Dseq_file.h24 loff_t index;
25 loff_t read_pos;
37 void * (*start) (struct seq_file *m, loff_t *pos);
39 void * (*next) (struct seq_file *m, void *v, loff_t *pos);
114 ssize_t seq_read(struct file *, char __user *, size_t, loff_t *);
115 loff_t seq_lseek(struct file *, loff_t, int);
198 loff_t pos);
200 loff_t pos);
202 loff_t *ppos);
209 loff_t pos);
[all …]
Dfs.h72 typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
251 loff_t ia_size;
325 loff_t ki_pos;
382 loff_t pos, unsigned len, unsigned flags,
385 loff_t pos, unsigned len, unsigned copied,
393 ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter, loff_t offset);
419 loff_t pos, unsigned len, unsigned flags,
423 loff_t pos, unsigned len, unsigned copied,
618 loff_t i_size;
726 static inline loff_t i_size_read(const struct inode *inode) in i_size_read()
[all …]
Dsysctl.h38 void __user *buffer, size_t *lenp, loff_t *ppos);
41 void __user *, size_t *, loff_t *);
43 void __user *, size_t *, loff_t *);
45 void __user *, size_t *, loff_t *);
47 void __user *, size_t *, loff_t *);
49 void __user *, size_t *, loff_t *);
51 void __user *, size_t *, loff_t *);
53 void __user *, size_t *, loff_t *);
55 void __user *, size_t *, loff_t *);
57 void __user *, size_t *, loff_t *);
[all …]
Dnmi.h79 void __user *, size_t *, loff_t *);
81 void __user *, size_t *, loff_t *);
83 void __user *, size_t *, loff_t *);
85 void __user *, size_t *, loff_t *);
87 void __user *, size_t *, loff_t *);
Dwriteback.h78 loff_t range_start;
79 loff_t range_end;
345 loff_t *ppos);
348 loff_t *ppos);
351 loff_t *ppos);
354 loff_t *ppos);
356 void __user *buffer, size_t *lenp, loff_t *ppos);
360 void __user *, size_t *, loff_t *);
Dbuffer_head.h214 int block_write_begin(struct address_space *mapping, loff_t pos, unsigned len,
216 int __block_write_begin(struct page *page, loff_t pos, unsigned len,
219 loff_t, unsigned, unsigned,
222 loff_t, unsigned, unsigned,
225 int cont_write_begin(struct file *, struct address_space *, loff_t,
227 get_block_t *, loff_t *);
228 int generic_cont_expand_simple(struct inode *inode, loff_t size);
247 int block_truncate_page(struct address_space *, loff_t, get_block_t *);
248 int nobh_write_begin(struct address_space *, loff_t, unsigned, unsigned,
251 loff_t, unsigned, unsigned,
[all …]
Duprobes.h124 extern int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc);
125 extern int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool);
126 extern void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc);
158 uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) in uprobe_register()
163 uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool add) in uprobe_apply()
168 uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) in uprobe_unregister()
Dshmem_fs.h48 loff_t size, unsigned long flags);
49 extern struct file *shmem_kernel_file_setup(const char *name, loff_t size,
57 extern void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end);
Duser_namespace.h69 extern ssize_t proc_uid_map_write(struct file *, const char __user *, size_t, loff_t *);
70 extern ssize_t proc_gid_map_write(struct file *, const char __user *, size_t, loff_t *);
71 extern ssize_t proc_projid_map_write(struct file *, const char __user *, size_t, loff_t *);
72 extern ssize_t proc_setgroups_write(struct file *, const char __user *, size_t, loff_t *);
Dkernfs.h93 loff_t size;
203 void *(*seq_start)(struct seq_file *sf, loff_t *ppos);
204 void *(*seq_next)(struct seq_file *sf, void *v, loff_t *ppos);
208 loff_t off);
226 loff_t off);
295 umode_t mode, loff_t size,
381 umode_t mode, loff_t size, const struct kernfs_ops *ops, in __kernfs_create_file()
442 umode_t mode, loff_t size, const struct kernfs_ops *ops, in kernfs_create_file_ns()
456 loff_t size, const struct kernfs_ops *ops, void *priv) in kernfs_create_file()
Dsplice.h38 loff_t pos; /* file position */
39 loff_t *opos; /* sendfile: output position */
69 loff_t *, size_t, unsigned int,
Dvfio.h38 size_t count, loff_t *ppos);
40 size_t count, loff_t *size);
65 size_t count, loff_t *ppos);
67 size_t count, loff_t *size);
Ddax.h8 ssize_t dax_do_io(struct kiocb *, struct inode *, struct iov_iter *, loff_t,
11 int dax_zero_page_range(struct inode *, loff_t from, unsigned len, get_block_t);
12 int dax_truncate_page(struct inode *, loff_t from, get_block_t);
Ddebugfs.h56 loff_t file_size);
122 size_t count, loff_t *ppos);
125 size_t count, loff_t *ppos);
147 loff_t file_size) in debugfs_create_file_size()
295 size_t count, loff_t *ppos) in debugfs_read_file_bool()
302 size_t count, loff_t *ppos) in debugfs_write_file_bool()
Dnsc_gpio.h34 size_t len, loff_t *ppos);
37 size_t len, loff_t *ppos);
Ddevcoredump.h14 ssize_t (*read)(char *buffer, loff_t offset, size_t count,
27 ssize_t (*read)(char *buffer, loff_t offset, size_t count, in dev_coredumpm()
/linux-4.4.14/arch/tile/kernel/
Dcompat.c38 return sys_truncate(filename, ((loff_t)high << 32) | low); in COMPAT_SYSCALL_DEFINE4()
44 return sys_ftruncate(fd, ((loff_t)high << 32) | low); in COMPAT_SYSCALL_DEFINE4()
50 return sys_pread64(fd, ubuf, count, ((loff_t)high << 32) | low); in COMPAT_SYSCALL_DEFINE6()
56 return sys_pwrite64(fd, ubuf, count, ((loff_t)high << 32) | low); in COMPAT_SYSCALL_DEFINE6()
63 return sys_sync_file_range(fd, ((loff_t)offset_hi << 32) | offset_lo, in COMPAT_SYSCALL_DEFINE6()
64 ((loff_t)nbytes_hi << 32) | nbytes_lo, in COMPAT_SYSCALL_DEFINE6()
72 return sys_fallocate(fd, mode, ((loff_t)offset_hi << 32) | offset_lo, in COMPAT_SYSCALL_DEFINE6()
73 ((loff_t)len_hi << 32) | len_lo); in COMPAT_SYSCALL_DEFINE6()
82 unsigned int, offset_low, loff_t __user *, result, in COMPAT_SYSCALL_DEFINE5()
Dsys.c64 return sys_readahead(fd, ((loff_t)offset_hi << 32) | offset_lo, count); in sys32_readahead()
70 return sys_fadvise64_64(fd, ((loff_t)offset_hi << 32) | offset_lo, in sys32_fadvise64_64()
71 ((loff_t)len_hi << 32) | len_lo, advice); in sys32_fadvise64_64()
/linux-4.4.14/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()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Ddebugfs.c109 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _opcode_stats_seq_start()
120 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _opcode_stats_seq_next()
139 loff_t *spos = v; in _opcode_stats_seq_show()
140 loff_t i = *spos, j; in _opcode_stats_seq_show()
164 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) in _ctx_stats_seq_start()
176 static void *_ctx_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _ctx_stats_seq_next()
197 loff_t *spos; in _ctx_stats_seq_show()
198 loff_t i, j; in _ctx_stats_seq_show()
228 static void *_qp_stats_seq_start(struct seq_file *s, loff_t *pos) in _qp_stats_seq_start()
232 loff_t n = *pos; in _qp_stats_seq_start()
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Dsys_ppc32.c80 return sys_pread64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); in compat_sys_pread64()
86 return sys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); in compat_sys_pwrite64()
91 return sys_readahead(fd, ((loff_t)offhi << 32) | offlo, count); in compat_sys_readahead()
103 return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo, in compat_sys_fallocate()
104 ((loff_t)lenhi << 32) | lenlo); in compat_sys_fallocate()
124 loff_t offset = ((loff_t)offset_hi << 32) | offset_lo; in compat_sys_sync_file_range2()
125 loff_t nbytes = ((loff_t)nbytes_hi << 32) | nbytes_lo; in compat_sys_sync_file_range2()
Dproc_powerpc.c32 static loff_t page_map_seek(struct file *file, loff_t off, int whence) in page_map_seek()
38 loff_t *ppos) in page_map_read()
Dnvram_64.c197 loff_t tmp_index; in nvram_write_os_partition()
236 loff_t tmp_index; in nvram_read_partition()
290 loff_t p; in nvram_init_os_partition()
455 loff_t p; in nvram_pstore_read()
734 static loff_t dev_nvram_llseek(struct file *file, loff_t offset, int origin) in dev_nvram_llseek()
758 size_t count, loff_t *ppos) in dev_nvram_read()
803 size_t count, loff_t *ppos) in dev_nvram_write()
901 loff_t tmp_index; in nvram_write_header()
1018 loff_t __init nvram_create_partition(const char *name, int sig, in nvram_create_partition()
1025 loff_t tmp_index; in nvram_create_partition()
[all …]
Drtas-proc.c140 const char __user *buf, size_t count, loff_t *ppos);
143 const char __user *buf, size_t count, loff_t *ppos);
146 const char __user *buf, size_t count, loff_t *ppos);
149 const char __user *buf, size_t count, loff_t *ppos);
152 const char __user *buf, size_t count, loff_t *ppos);
306 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_poweron_write()
340 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_progress_write()
372 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_clock_write()
731 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_tone_freq_write()
756 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_tone_volume_write()
/linux-4.4.14/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);
47 size_t size, loff_t *_pos);
50 size_t size, loff_t *_pos);
59 static void *afs_proc_cell_volumes_start(struct seq_file *p, loff_t *pos);
61 loff_t *pos);
81 static void *afs_proc_cell_vlservers_start(struct seq_file *p, loff_t *pos);
83 loff_t *pos);
102 static void *afs_proc_cell_servers_start(struct seq_file *p, loff_t *pos);
[all …]
/linux-4.4.14/fs/nfsd/
Dvfs.h39 typedef int (*nfsd_filldir_t)(void *, const char *, int, loff_t, u64, unsigned);
58 struct file *, loff_t, loff_t, int);
70 loff_t, unsigned long);
76 struct file *, loff_t, unsigned long *);
77 __be32 nfsd_readv(struct file *, loff_t, struct kvec *, int,
80 loff_t, struct kvec *, int, unsigned long *);
82 loff_t, struct kvec *,int, unsigned long *, int *);
84 struct file *file, loff_t offset,
100 loff_t *, struct readdir_cd *, nfsd_filldir_t);
/linux-4.4.14/fs/ext4/
Dfile.c77 ext4_unaligned_aio(struct inode *inode, struct iov_iter *from, loff_t pos) in ext4_unaligned_aio()
138 loff_t pos = iocb->ki_pos; in ext4_file_write_iter()
200 loff_t offset = (loff_t)(uintptr_t)bh->b_private << inode->i_blkbits; in ext4_end_io_unwritten()
309 loff_t size; in ext4_dax_pfn_mkwrite()
439 loff_t *offset) in ext4_find_unwritten_pgoff()
445 loff_t endoff; in ext4_find_unwritten_pgoff()
446 loff_t startoff; in ext4_find_unwritten_pgoff()
447 loff_t lastoff; in ext4_find_unwritten_pgoff()
453 endoff = (loff_t)(map->m_lblk + map->m_len) << blkbits; in ext4_find_unwritten_pgoff()
532 *offset = max_t(loff_t, in ext4_find_unwritten_pgoff()
[all …]
Ddir.c158 file->f_ra.prev_pos = (loff_t)index << PAGE_CACHE_SHIFT; in ext4_readdir()
294 static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor) in hash2pos()
303 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash()
312 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash()
324 static inline loff_t ext4_get_htree_eof(struct file *filp) in ext4_get_htree_eof()
345 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek()
349 loff_t htree_max = ext4_get_htree_eof(file); in ext4_dir_llseek()
393 loff_t pos) in ext4_htree_create_dir_info()
/linux-4.4.14/drivers/oprofile/
Doprofile_files.c31 size_t count, loff_t *offset) in timeout_read()
39 size_t count, loff_t *offset) in timeout_write()
68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in depth_read()
75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in depth_write()
105 static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in pointer_size_read()
117 static ssize_t cpu_type_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in cpu_type_read()
129 static ssize_t enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in enable_read()
135 static ssize_t enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in enable_write()
166 static ssize_t dump_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in dump_write()
Doprofilefs.c45 ssize_t oprofilefs_str_to_user(char const *str, char __user *buf, size_t count, loff_t *offset) in oprofilefs_str_to_user()
53 ssize_t oprofilefs_ulong_to_user(unsigned long val, char __user *buf, size_t count, loff_t *offset) in oprofilefs_ulong_to_user()
93 static ssize_t ulong_read_file(struct file *file, char __user *buf, size_t count, loff_t *offset) in ulong_read_file()
100 static ssize_t ulong_write_file(struct file *file, char const __user *buf, size_t count, loff_t *of… in ulong_write_file()
177 static ssize_t atomic_read_file(struct file *file, char __user *buf, size_t count, loff_t *offset) in atomic_read_file()
/linux-4.4.14/mm/
Dtruncate.c153 (loff_t)page->index << PAGE_CACHE_SHIFT, in truncate_inode_page()
219 loff_t lstart, loff_t lend) in truncate_inode_pages_range()
388 void truncate_inode_pages(struct address_space *mapping, loff_t lstart) in truncate_inode_pages()
390 truncate_inode_pages_range(mapping, lstart, (loff_t)-1); in truncate_inode_pages()
606 (loff_t)index << PAGE_CACHE_SHIFT, in invalidate_inode_pages2_range()
607 (loff_t)(1 + end - index) in invalidate_inode_pages2_range()
616 (loff_t)index << PAGE_CACHE_SHIFT, in invalidate_inode_pages2_range()
670 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache()
673 loff_t holebegin = round_up(newsize, PAGE_SIZE); in truncate_pagecache()
703 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize()
[all …]
Dfadvise.c28 SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) in SYSCALL_DEFINE4() argument
34 loff_t endbyte; /* inclusive */ in SYSCALL_DEFINE4()
157 SYSCALL_DEFINE4(fadvise64, int, fd, loff_t, offset, size_t, len, int, advice) in SYSCALL_DEFINE4() argument
Dfilemap.c282 int __filemap_fdatawrite_range(struct address_space *mapping, loff_t start, in __filemap_fdatawrite_range()
283 loff_t end, int sync_mode) in __filemap_fdatawrite_range()
314 int filemap_fdatawrite_range(struct address_space *mapping, loff_t start, in filemap_fdatawrite_range()
315 loff_t end) in filemap_fdatawrite_range()
335 loff_t start_byte, loff_t end_byte) in __filemap_fdatawait_range()
385 int filemap_fdatawait_range(struct address_space *mapping, loff_t start_byte, in filemap_fdatawait_range()
386 loff_t end_byte) in filemap_fdatawait_range()
413 loff_t i_size = i_size_read(mapping->host); in filemap_fdatawait_keep_errors()
435 loff_t i_size = i_size_read(mapping->host); in filemap_fdatawait()
480 loff_t lstart, loff_t lend) in filemap_write_and_wait_range()
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_debugfs.c79 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _opcode_stats_seq_start()
88 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _opcode_stats_seq_next()
106 loff_t *spos = v; in _opcode_stats_seq_show()
107 loff_t i = *spos, j; in _opcode_stats_seq_show()
129 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) in DEBUGFS_FILE()
141 static void *_ctx_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _ctx_stats_seq_next()
162 loff_t *spos; in _ctx_stats_seq_show()
163 loff_t i, j; in _ctx_stats_seq_show()
191 static void *_qp_stats_seq_start(struct seq_file *s, loff_t *pos) in DEBUGFS_FILE()
194 loff_t n = *pos; in DEBUGFS_FILE()
[all …]
Dqib_fs.c105 size_t count, loff_t *ppos) in driver_stats_read()
133 size_t count, loff_t *ppos) in driver_names_read()
146 size_t count, loff_t *ppos) in dev_counters_read()
158 size_t count, loff_t *ppos) in dev_names_read()
180 size_t count, loff_t *ppos) in portnames_read()
192 size_t count, loff_t *ppos) in portcntrs_1_read()
204 size_t count, loff_t *ppos) in portcntrs_2_read()
224 size_t count, loff_t *ppos) in qsfp_1_read()
245 size_t count, loff_t *ppos) in qsfp_2_read()
271 size_t count, loff_t *ppos) in flash_read()
[all …]
/linux-4.4.14/drivers/mtd/tests/
Dspeedtest.c59 loff_t addr = (loff_t)ebnum * mtd->erasesize; in multiblock_erase()
84 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
92 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_page()
110 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_2pages()
128 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock()
136 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock_by_page()
154 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock_by_2pages()
Dmtd_test.c13 loff_t addr = (loff_t)ebnum * mtd->erasesize; in mtdtest_erase_eraseblock()
36 loff_t addr = (loff_t)ebnum * mtd->erasesize; in is_block_bad()
83 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) in mtdtest_read()
100 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, in mtdtest_write()
Dsubpagetest.c60 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
95 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock2()
98 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in write_eraseblock2()
134 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock()
195 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock2()
198 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in verify_eraseblock2()
230 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock_ff()
Doobtest.c73 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
128 static size_t memcmpshowoffset(loff_t addr, loff_t offset, const void *cs, in memcmpshowoffset()
156 static size_t memffshow(loff_t addr, loff_t offset, const void *cs, in memffshow()
182 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock()
271 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock_in_one_go()
345 loff_t addr = 0, addr0; in mtd_oobtest_init()
644 addr = (loff_t)(i + 1) * mtd->erasesize - mtd->writesize; in mtd_oobtest_init()
678 addr = (loff_t)(i + 1) * mtd->erasesize - mtd->writesize; in mtd_oobtest_init()
Dpagetest.c55 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
66 loff_t addr0, addrn; in verify_eraseblock()
67 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock()
126 loff_t addr, addr0, addrn; in crosstest()
204 loff_t addr0; in erasecrosstest()
283 loff_t addr0; in erasetest()
Dmtd_test.h21 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf);
22 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
Dstresstest.c91 loff_t addr; in do_read()
99 addr = (loff_t)eb * mtd->erasesize + offs; in do_read()
106 loff_t addr; in do_write()
127 addr = (loff_t)eb * mtd->erasesize + offs; in do_write()
Dtorturetest.c105 loff_t addr = (loff_t)ebnum * mtd->erasesize; in check_eraseblock()
109 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock()
159 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_pattern()
163 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in write_pattern()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
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 …]
/linux-4.4.14/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()
71 static void for_all_poss(struct inode *inode, void (*f)(loff_t *, loff_t, loff_t), in for_all_poss() argument
[all …]
Dhpfs_fn.h47 loff_t mmu_private;
60 loff_t **i_rddir_off;
245 void hpfs_add_pos(struct inode *, loff_t *);
246 void hpfs_del_pos(struct inode *, loff_t *);
254 struct hpfs_dirent *map_pos_dirent(struct inode *, loff_t *, struct quad_buffer_head *);
271 int hpfs_file_fsync(struct file *, loff_t, loff_t, int);
Ddir.c23 static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) in hpfs_dir_lseek()
25 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
26 loff_t pos; in hpfs_dir_lseek()
41 pos = ((loff_t) hpfs_de_as_down_as_possible(s, hpfs_inode->i_dno) << 4) + 1; in hpfs_dir_lseek()
67 loff_t next_pos; in hpfs_readdir()
144 ctx->pos = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, hpfs_inode->i_dno) << 4) + 1; in hpfs_readdir()
Dfile.c22 int hpfs_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) in hpfs_file_fsync()
139 static void hpfs_write_failed(struct address_space *mapping, loff_t to) in hpfs_write_failed()
154 loff_t pos, unsigned len, unsigned flags, in hpfs_write_begin()
170 loff_t pos, unsigned len, unsigned copied, in hpfs_write_end()
/linux-4.4.14/drivers/zorro/
Dproc.c23 static loff_t
24 proc_bus_zorro_lseek(struct file *file, loff_t off, int whence) in proc_bus_zorro_lseek()
30 proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in proc_bus_zorro_read()
34 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-4.4.14/include/linux/sched/
Dsysctl.h11 size_t *lenp, loff_t *ppos);
64 loff_t *ppos);
88 loff_t *ppos);
92 loff_t *ppos);
96 loff_t *ppos);
/linux-4.4.14/drivers/s390/char/
Dhmcdrv_dev.c57 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
59 size_t len, loff_t *pos);
61 size_t len, loff_t *pos);
62 static ssize_t hmcdrv_dev_transfer(char __kernel *cmd, loff_t offset,
159 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) in hmcdrv_dev_seek()
198 static ssize_t hmcdrv_dev_transfer(char __kernel *cmd, loff_t offset, in hmcdrv_dev_transfer()
221 size_t len, loff_t *pos) in hmcdrv_dev_read()
246 size_t len, loff_t *pos) in hmcdrv_dev_write()
Dhmcdrv_ftp.h50 loff_t ofs;
60 ssize_t hmcdrv_ftp_cmd(char __kernel *cmd, loff_t offset,
/linux-4.4.14/arch/s390/oprofile/
Dinit.c125 size_t count, loff_t *offset) in hwsampler_read()
131 size_t count, loff_t *offset) in hwsampler_write()
173 size_t count, loff_t *offset) in hw_interval_read()
180 size_t count, loff_t *offset) in hw_interval_write()
216 size_t count, loff_t *offset) in hwsampler_zero_read()
222 size_t count, loff_t *offset) in hwsampler_zero_write()
246 size_t count, loff_t *offset) in hwsampler_kernel_read()
253 size_t count, loff_t *offset) in hwsampler_kernel_write()
281 size_t count, loff_t *offset) in hwsampler_user_read()
288 size_t count, loff_t *offset) in hwsampler_user_write()
[all …]
/linux-4.4.14/drivers/net/wireless/libertas/
Ddebugfs.c25 size_t count, loff_t *ppos) in write_file_dummy()
33 size_t count, loff_t *ppos) in lbs_dev_info()
56 loff_t *ppos) in lbs_sleepparams_write()
96 size_t count, loff_t *ppos) in lbs_sleepparams_read()
125 loff_t *ppos) in lbs_host_sleep_write()
170 size_t count, loff_t *ppos) in lbs_host_sleep_read()
226 size_t count, loff_t *ppos) in lbs_threshold_read()
279 loff_t *ppos) in lbs_threshold_write()
352 size_t count, loff_t *ppos) in lbs_lowrssi_read()
360 size_t count, loff_t *ppos) in lbs_lowrssi_write()
[all …]
/linux-4.4.14/drivers/ntb/test/
Dntb_tool.c158 size_t size, loff_t *offp, in tool_dbfn_read()
186 size_t size, loff_t *offp, in tool_dbfn_write()
231 size_t size, loff_t *offp, in tool_spadfn_read()
265 size_t size, loff_t *offp, in tool_spadfn_write()
310 size_t size, loff_t *offp) in tool_db_read()
319 size_t size, loff_t *offp) in tool_db_write()
333 size_t size, loff_t *offp) in tool_mask_read()
342 size_t size, loff_t *offp) in tool_mask_write()
356 size_t size, loff_t *offp) in tool_peer_db_read()
365 size_t size, loff_t *offp) in tool_peer_db_write()
[all …]
/linux-4.4.14/net/appletalk/
Datalk_proc.c20 static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos) in atalk_get_interface_idx()
30 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos) in atalk_seq_interface_start()
33 loff_t l = *pos; in atalk_seq_interface_start()
39 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next()
81 static __inline__ struct atalk_route *atalk_get_route_idx(loff_t pos) in atalk_get_route_idx()
91 static void *atalk_seq_route_start(struct seq_file *seq, loff_t *pos) in atalk_seq_route_start()
94 loff_t l = *pos; in atalk_seq_route_start()
100 static void *atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_route_next()
148 static void *atalk_seq_socket_start(struct seq_file *seq, loff_t *pos) in atalk_seq_socket_start()
155 static void *atalk_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_socket_next()
/linux-4.4.14/fs/fat/
Dfat.h119 loff_t mmu_private; /* physically allocated size */
124 loff_t i_pos; /* on-disk position of directory entry or 0 */
132 loff_t i_pos; /* on-disk position of directory entry */
133 loff_t slot_off; /* offset for slot or de start */
223 loff_t i_pos, sector_t *blknr, int *offset) in fat_get_blknr_offset()
229 static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi, in fat_i_pos_read()
232 loff_t i_pos; in fat_i_pos_read()
363 extern void fat_truncate_blocks(struct inode *inode, loff_t offset);
366 extern int fat_file_fsync(struct file *file, loff_t start, loff_t end,
370 extern int fat_block_truncate_page(struct inode *inode, loff_t from);
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Ddebugfs.c45 loff_t *ppos, char *fmt, ...) in wl1271_format_buffer()
91 size_t count, loff_t *ppos) in tx_queue_len_read()
143 size_t count, loff_t *ppos) \
153 size_t count, loff_t *ppos) \
194 size_t count, loff_t *ppos) in gpio_power_read()
209 size_t count, loff_t *ppos) in gpio_power_write()
241 size_t count, loff_t *ppos) in start_recovery_write()
259 size_t count, loff_t *ppos) in dynamic_ps_timeout_read()
270 size_t count, loff_t *ppos) in dynamic_ps_timeout_write()
323 size_t count, loff_t *ppos) in forced_ps_read()
[all …]
Ddebugfs.h30 loff_t *ppos, char *fmt, ...);
41 size_t count, loff_t *ppos) \
74 size_t count, loff_t *ppos) \
94 size_t count, loff_t *ppos) \
/linux-4.4.14/fs/f2fs/
Dfile.c77 if (((loff_t)(page->index + 1) << PAGE_CACHE_SHIFT) > in f2fs_vm_page_mkwrite()
184 int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) in f2fs_sync_file()
325 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) in f2fs_seek_block()
328 loff_t maxbytes = inode->i_sb->s_maxbytes; in f2fs_seek_block()
331 loff_t data_ofs = offset; in f2fs_seek_block()
332 loff_t isize; in f2fs_seek_block()
352 for (; data_ofs < isize; data_ofs = (loff_t)pgofs << PAGE_CACHE_SHIFT) { in f2fs_seek_block()
373 data_ofs = (loff_t)pgofs << PAGE_CACHE_SHIFT) { in f2fs_seek_block()
397 static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence) in f2fs_llseek()
400 loff_t maxbytes = inode->i_sb->s_maxbytes; in f2fs_llseek()
[all …]
/linux-4.4.14/net/core/
Dnet-procfs.c15 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) in dev_from_same_bucket()
31 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) in dev_from_bucket()
52 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) in dev_seq_start()
65 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next()
118 static struct softnet_data *softnet_get_online(loff_t *pos) in softnet_get_online()
131 static void *softnet_seq_start(struct seq_file *seq, loff_t *pos) in softnet_seq_start()
136 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next()
210 static void *ptype_get_idx(loff_t pos) in ptype_get_idx()
213 loff_t i = 0; in ptype_get_idx()
232 static void *ptype_seq_start(struct seq_file *seq, loff_t *pos) in ptype_seq_start()
[all …]
/linux-4.4.14/kernel/power/
Duser.c136 size_t count, loff_t *offp) in snapshot_read()
140 loff_t pg_offp = *offp & ~PAGE_MASK; in snapshot_read()
169 size_t count, loff_t *offp) in snapshot_write()
173 loff_t pg_offp = *offp & ~PAGE_MASK; in snapshot_write()
202 loff_t size; in snapshot_ioctl()
300 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl()
306 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl()
317 error = put_user(offset, (loff_t __user *)arg); in snapshot_ioctl()
405 BUILD_BUG_ON(sizeof(loff_t) != sizeof(compat_loff_t)); in snapshot_compat_ioctl()
412 loff_t offset; in snapshot_compat_ioctl()
/linux-4.4.14/security/smack/
Dsmackfs.c469 size_t count, loff_t *ppos, in smk_write_rules_list()
561 static void *smk_seq_start(struct seq_file *s, loff_t *pos, in smk_seq_start()
578 static void *smk_seq_next(struct seq_file *s, void *v, loff_t *pos, in smk_seq_next()
637 static void *load2_seq_start(struct seq_file *s, loff_t *pos) in load2_seq_start()
642 static void *load2_seq_next(struct seq_file *s, void *v, loff_t *pos) in load2_seq_next()
686 size_t count, loff_t *ppos) in smk_write_load()
781 static void *cipso_seq_start(struct seq_file *s, loff_t *pos) in cipso_seq_start()
786 static void *cipso_seq_next(struct seq_file *s, void *v, loff_t *pos) in cipso_seq_next()
860 size_t count, loff_t *ppos, int format) in smk_set_cipso()
965 size_t count, loff_t *ppos) in smk_write_cipso()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
Dmodule.c332 static int proc_call_handler(void *data, int write, loff_t *ppos, in proc_call_handler()
335 loff_t pos, void __user *buffer, int len)) in proc_call_handler()
352 loff_t pos, void __user *buffer, int nob) in __proc_dobitmasks()
393 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dobitmasks()
400 loff_t pos, void __user *buffer, int nob) in __proc_dump_kernel()
409 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dump_kernel()
416 loff_t pos, void __user *buffer, int nob) in __proc_daemon_file()
432 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_daemon_file()
440 size_t *lenp, loff_t *ppos) in libcfs_force_lbug()
449 size_t *lenp, loff_t *ppos) in proc_fail_loc()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dpmc.h26 ssize_t wil_pmc_read(struct file *, char __user *, size_t, loff_t *);
27 loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence);
/linux-4.4.14/arch/cris/arch-v10/drivers/
Deeprom.c82 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig);
84 loff_t *off);
86 loff_t *off);
91 static int eeprom_write_buf(loff_t addr, const char * buf, int count);
92 static int eeprom_read_buf(loff_t addr, char * buf, int count);
395 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig) in eeprom_lseek()
436 static int eeprom_read_buf(loff_t addr, char * buf, int count) in eeprom_read_buf()
445 static ssize_t eeprom_read(struct file * file, char * buf, size_t count, loff_t *off) in eeprom_read()
502 static int eeprom_write_buf(loff_t addr, const char * buf, int count) in eeprom_write_buf()
511 loff_t *off) in eeprom_write()
/linux-4.4.14/drivers/char/
Dmem.c99 size_t count, loff_t *ppos) in read_mem()
159 size_t count, loff_t *ppos) in write_mem()
380 size_t count, loff_t *ppos) in read_kmem()
456 size_t count, loff_t *ppos) in do_write_kmem()
507 size_t count, loff_t *ppos) in write_kmem()
557 size_t count, loff_t *ppos) in read_port()
575 size_t count, loff_t *ppos) in write_port()
599 size_t count, loff_t *ppos) in read_null()
605 size_t count, loff_t *ppos) in write_null()
629 loff_t *ppos, size_t len, unsigned int flags) in splice_write_null()
[all …]
Dps3flash.c98 static loff_t ps3flash_llseek(struct file *file, loff_t offset, int origin) in ps3flash_llseek()
106 size_t count, loff_t *pos) in ps3flash_read()
175 const void *kernelbuf, size_t count, loff_t *pos) in ps3flash_write()
250 size_t count, loff_t *pos) in ps3flash_user_read()
256 size_t count, loff_t *pos) in ps3flash_user_write()
261 static ssize_t ps3flash_kernel_read(void *buf, size_t count, loff_t pos) in ps3flash_kernel_read()
267 loff_t pos) in ps3flash_kernel_write()
289 static int ps3flash_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ps3flash_fsync()
Dgeneric_nvram.c34 static loff_t nvram_llseek(struct file *file, loff_t offset, int origin) in nvram_llseek()
57 size_t count, loff_t *ppos) in read_nvram()
74 size_t count, loff_t *ppos) in write_nvram()
Dtile-srom.c87 loff_t off, size_t count) in _srom_read()
107 loff_t off, size_t count) in _srom_write()
174 size_t count, loff_t *f_pos) in srom_read()
229 size_t count, loff_t *f_pos) in srom_write()
275 loff_t srom_llseek(struct file *file, loff_t offset, int origin) in srom_llseek()
/linux-4.4.14/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()
/linux-4.4.14/fs/xfs/
Dxfs_file.c96 loff_t pos, /* offset in file */ in xfs_iozero()
185 loff_t start, in xfs_dir_fsync()
186 loff_t end, in xfs_dir_fsync()
208 loff_t start, in xfs_file_fsync()
209 loff_t end, in xfs_file_fsync()
299 loff_t pos = iocb->ki_pos; in xfs_file_read_iter()
388 loff_t *ppos, in xfs_file_splice_read()
714 loff_t pos = iocb->ki_pos; in xfs_file_dio_aio_write()
715 loff_t end; in xfs_file_dio_aio_write()
921 loff_t offset, in xfs_file_fallocate()
[all …]
Dxfs_aops.c284 loff_t offset, in xfs_map_blocks()
691 loff_t tindex, in xfs_convert_page()
892 loff_t offset = page_offset(page); in xfs_aops_discard_page()
951 loff_t offset; in xfs_vm_writepage()
1577 loff_t offset, in __xfs_end_io_direct_write()
1651 loff_t offset, in xfs_end_io_direct_write()
1674 loff_t offset, in xfs_vm_do_dio()
1676 loff_t offset, in xfs_vm_do_dio()
1696 loff_t offset) in xfs_vm_direct_IO()
1715 loff_t start, in xfs_vm_kill_delalloc_range()
[all …]
/linux-4.4.14/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()
331 static void gfs2_size_hint(struct file *filep, loff_t offset, size_t size) in gfs2_size_hint()
392 loff_t size; in gfs2_page_mkwrite()
651 static int gfs2_fsync(struct file *file, loff_t start, loff_t end, in gfs2_fsync()
724 static int fallocate_chunk(struct inode *inode, loff_t offset, loff_t len, in fallocate_chunk()
778 static void calc_max_reserv(struct gfs2_inode *ip, loff_t *len, in calc_max_reserv()
782 loff_t max = *len; in calc_max_reserv()
793 *len = ((loff_t)max_data - 3) << sdp->sd_sb.sb_bsize_shift; in calc_max_reserv()
800 static long __gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t len) in __gfs2_fallocate()
[all …]
/linux-4.4.14/security/tomoyo/
Dsecurityfs_if.c40 size_t count, loff_t *ppos) in tomoyo_write_self()
106 size_t count, loff_t *ppos) in tomoyo_read_self()
109 loff_t len = strlen(domain); in tomoyo_read_self()
110 loff_t pos = *ppos; in tomoyo_read_self()
180 loff_t *ppos) in tomoyo_read()
196 size_t count, loff_t *ppos) in tomoyo_write()
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlprocfs_status.h598 size_t count, loff_t *off);
600 size_t count, loff_t *off);
603 size_t count, loff_t *off);
665 loff_t *off) \
676 loff_t *off) \
708 loff_t off, int count,
713 loff_t off, int count,
718 loff_t off, int count,
723 loff_t off, int count,
727 int lprocfs_quota_rd_type(char *page, char **start, loff_t off, int count,
[all …]
/linux-4.4.14/security/keys/
Dproc.c22 static void *proc_keys_start(struct seq_file *p, loff_t *_pos);
23 static void *proc_keys_next(struct seq_file *p, void *v, loff_t *_pos);
42 static void *proc_key_users_start(struct seq_file *p, loff_t *_pos);
43 static void *proc_key_users_next(struct seq_file *p, void *v, loff_t *_pos);
138 static void *proc_keys_start(struct seq_file *p, loff_t *_pos) in proc_keys_start()
161 static void *proc_keys_next(struct seq_file *p, void *v, loff_t *_pos) in proc_keys_next()
303 static void *proc_key_users_start(struct seq_file *p, loff_t *_pos) in proc_key_users_start()
307 loff_t pos = *_pos; in proc_key_users_start()
320 static void *proc_key_users_next(struct seq_file *p, void *v, loff_t *_pos) in proc_key_users_next()
/linux-4.4.14/arch/parisc/kernel/
Dsys_parisc.c320 return sys_truncate64(path, (loff_t)high << 32 | low); in parisc_truncate64()
326 return sys_ftruncate64(fd, (loff_t)high << 32 | low); in parisc_ftruncate64()
333 return sys_pread64(fd, buf, count, (loff_t)high << 32 | low); in parisc_pread64()
339 return sys_pwrite64(fd, buf, count, (loff_t)high << 32 | low); in parisc_pwrite64()
345 return sys_readahead(fd, (loff_t)high << 32 | low, count); in parisc_readahead()
352 return sys_fadvise64_64(fd, (loff_t)high_off << 32 | low_off, in parisc_fadvise64_64()
353 (loff_t)high_len << 32 | low_len, advice); in parisc_fadvise64_64()
360 return sys_sync_file_range(fd, (loff_t)hi_off << 32 | lo_off, in parisc_sync_file_range()
361 (loff_t)hi_nbytes << 32 | lo_nbytes, flags); in parisc_sync_file_range()
/linux-4.4.14/drivers/w1/slaves/
Dw1_ds2408.c76 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read()
89 loff_t off, size_t count) in output_read()
102 loff_t off, size_t count) in activity_read()
115 loff_t off, size_t count) in cond_search_mask_read()
129 char *buf, loff_t off, size_t count) in cond_search_polarity_read()
139 loff_t off, size_t count) in status_control_read()
149 loff_t off, size_t count) in output_write()
220 loff_t off, size_t count) in activity_write()
250 loff_t off, size_t count) in status_control_write()
/linux-4.4.14/drivers/mtd/chips/
Dmap_absent.c29 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
30 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
71 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read()
76 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write()
Dmap_rom.c18 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 *);
83 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read()
97 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write()
Dmap_ram.c18 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
19 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
99 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read()
108 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write()
Dcfi_cmdset_0002.c52 static int cfi_amdstd_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
53 static int cfi_amdstd_write_words(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
54 static int cfi_amdstd_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
65 static int cfi_amdstd_secsi_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
66 static int cfi_amdstd_read_fact_prot_reg(struct mtd_info *, loff_t, size_t,
68 static int cfi_amdstd_read_user_prot_reg(struct mtd_info *, loff_t, size_t,
70 static int cfi_amdstd_write_user_prot_reg(struct mtd_info *, loff_t, size_t,
72 static int cfi_amdstd_lock_user_prot_reg(struct mtd_info *, loff_t, size_t);
74 static int cfi_amdstd_panic_write(struct mtd_info *mtd, loff_t to, size_t len,
86 static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
[all …]
/linux-4.4.14/drivers/base/regmap/
Dregmap-debugfs.c40 loff_t *ppos) in regmap_name_read_file()
86 loff_t from, in regmap_debugfs_get_dump_start()
87 loff_t *pos) in regmap_debugfs_get_dump_start()
90 loff_t p = 0; in regmap_debugfs_get_dump_start()
185 size_t count, loff_t *ppos) in regmap_read_debugfs()
188 loff_t p = *ppos; in regmap_read_debugfs()
254 size_t count, loff_t *ppos) in regmap_map_read_file()
272 size_t count, loff_t *ppos) in regmap_map_write_file()
314 size_t count, loff_t *ppos) in regmap_range_read_file()
331 loff_t *ppos) in regmap_reg_ranges_read_file()
[all …]
/linux-4.4.14/drivers/net/wireless/mwifiex/
Ddebugfs.c75 size_t count, loff_t *ppos) in mwifiex_info_read()
165 size_t count, loff_t *ppos) in mwifiex_device_dump_read()
200 size_t count, loff_t *ppos) in mwifiex_getlog_read()
276 size_t count, loff_t *ppos) in mwifiex_histogram_read()
352 size_t count, loff_t *ppos) in mwifiex_histogram_write()
412 size_t count, loff_t *ppos) in mwifiex_debug_read()
448 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_regrdwr_write()
490 size_t count, loff_t *ppos) in mwifiex_regrdwr_read()
544 size_t count, loff_t *ppos) in mwifiex_debug_mask_read()
570 size_t count, loff_t *ppos) in mwifiex_debug_mask_write()
[all …]
/linux-4.4.14/drivers/mtd/devices/
Dslram.c76 static int slram_point(struct mtd_info *, loff_t, size_t, size_t *, void **,
78 static int slram_unpoint(struct mtd_info *, loff_t, size_t);
79 static int slram_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *);
80 static int slram_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
96 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point()
106 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in slram_unpoint()
111 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read()
121 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, in slram_write()
Dmtdram.c35 static int check_offs_len(struct mtd_info *mtd, loff_t ofs, uint64_t len) in check_offs_len()
64 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, in ram_point()
72 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in ram_unpoint()
90 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, in ram_read()
98 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, in ram_write()
/linux-4.4.14/drivers/infiniband/ulp/ipoib/
Dipoib_fs.c58 static void *ipoib_mcg_seq_start(struct seq_file *file, loff_t *pos) in ipoib_mcg_seq_start()
61 loff_t n = *pos; in ipoib_mcg_seq_start()
78 loff_t *pos) in ipoib_mcg_seq_next()
157 static void *ipoib_path_seq_start(struct seq_file *file, loff_t *pos) in ipoib_path_seq_start()
160 loff_t n = *pos; in ipoib_path_seq_start()
177 loff_t *pos) in ipoib_path_seq_next()
/linux-4.4.14/drivers/mtd/nand/
Dnand_bbt.c79 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs);
177 loff_t from; in read_bbt()
185 from = ((loff_t)page) << this->page_shift; in read_bbt()
223 (loff_t)(offs + act) << in read_bbt()
235 (loff_t)(offs + act) << in read_bbt()
290 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data()
314 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob()
344 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read()
354 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt()
395 scan_read(mtd, buf, (loff_t)td->pages[0] << this->page_shift, in read_abs_bbts()
[all …]
/linux-4.4.14/drivers/bluetooth/
Dbtmrvl_debugfs.c35 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write()
61 size_t count, loff_t *ppos) in btmrvl_hscfgcmd_read()
81 size_t count, loff_t *ppos) in btmrvl_pscmd_write()
108 size_t count, loff_t *ppos) in btmrvl_pscmd_read()
127 size_t count, loff_t *ppos) in btmrvl_hscmd_write()
152 size_t count, loff_t *ppos) in btmrvl_hscmd_read()
171 size_t count, loff_t *ppos) in btmrvl_fwdump_write()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c74 size_t count, loff_t *ppos) in iwl_dbgfs_tx_flush_write()
95 size_t count, loff_t *ppos) in iwl_dbgfs_sta_drain_write()
125 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read()
160 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write()
192 size_t count, loff_t *ppos) in iwl_dbgfs_set_nic_temperature_read()
215 loff_t *ppos) in iwl_dbgfs_set_nic_temperature_write()
259 size_t count, loff_t *ppos) in iwl_dbgfs_nic_temp_read()
281 size_t count, loff_t *ppos) in iwl_dbgfs_stations_read()
311 size_t count, loff_t *ppos) in iwl_dbgfs_disable_power_off_read()
327 size_t count, loff_t *ppos) in iwl_dbgfs_disable_power_off_write()
[all …]
Ddebugfs-vif.c132 size_t count, loff_t *ppos) in iwl_dbgfs_pm_params_write()
196 size_t count, loff_t *ppos) in iwl_dbgfs_tx_pwr_lmt_read()
211 size_t count, loff_t *ppos) in iwl_dbgfs_pm_params_read()
227 size_t count, loff_t *ppos) in iwl_dbgfs_mac_params_read()
356 size_t count, loff_t *ppos) in iwl_dbgfs_bf_params_write()
454 size_t count, loff_t *ppos) in iwl_dbgfs_bf_params_read()
510 size_t count, loff_t *ppos) in iwl_dbgfs_tof_enable_write()
569 size_t count, loff_t *ppos) in iwl_dbgfs_tof_enable_read()
599 size_t count, loff_t *ppos) in iwl_dbgfs_tof_responder_params_write()
786 size_t count, loff_t *ppos) in iwl_dbgfs_tof_responder_params_read()
[all …]
/linux-4.4.14/fs/proc/
Dnommu.c62 ((loff_t)region->vm_pgoff) << PAGE_SHIFT, in nommu_region_show()
85 static void *nommu_region_list_start(struct seq_file *m, loff_t *_pos) in nommu_region_list_start()
88 loff_t pos = *_pos; in nommu_region_list_start()
103 static void *nommu_region_list_next(struct seq_file *m, void *v, loff_t *pos) in nommu_region_list_next()
Ddevices.c8 int i = *(loff_t *) v; in devinfo_show()
26 static void *devinfo_start(struct seq_file *f, loff_t *pos) in devinfo_start()
33 static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) in devinfo_next()
Dinode.c179 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek()
182 loff_t rv = -EINVAL; in proc_reg_llseek()
184 loff_t (*llseek)(struct file *, loff_t, int); in proc_reg_llseek()
194 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read()
196 ssize_t (*read)(struct file *, char __user *, size_t, loff_t *); in proc_reg_read()
208 static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in proc_reg_write()
210 ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *); in proc_reg_write()
Dconsoles.c63 static void *c_start(struct seq_file *m, loff_t *pos) in c_start()
66 loff_t off = 0; in c_start()
76 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next()
Dinterrupts.c11 static void *int_seq_start(struct seq_file *f, loff_t *pos) in int_seq_start()
16 static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) in int_seq_next()
/linux-4.4.14/fs/nilfs2/
Dsegment.h149 loff_t sc_dsync_start;
150 loff_t sc_dsync_end;
235 loff_t, loff_t);
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Drouter_proc.c31 #define LNET_LOFFT_BITS (sizeof(loff_t) * 8)
71 (((((loff_t)(cpt)) & LNET_PROC_CPT_MASK) << LNET_PROC_VPOS_BITS) | \
72 ((((loff_t)(ver)) & LNET_PROC_VER_MASK) << LNET_PROC_HPOS_BITS) | \
73 ((((loff_t)(hash)) & LNET_PROC_HASH_MASK) << LNET_PROC_HOFF_BITS) | \
78 static int proc_call_handler(void *data, int write, loff_t *ppos, in proc_call_handler()
81 loff_t pos, void __user *buffer, int len)) in proc_call_handler()
98 loff_t pos, void __user *buffer, int nob) in __proc_lnet_stats()
146 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_stats()
153 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routes()
163 CLASSERT(sizeof(loff_t) >= 4); in proc_lnet_routes()
[all …]
/linux-4.4.14/fs/ceph/
Dfile.c623 ceph_sync_direct_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos, in ceph_sync_direct_write()
739 ceph_sync_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos, in ceph_sync_write()
922 loff_t i_size; in ceph_read_iter()
945 loff_t end = min_t(loff_t, i_size, in ceph_read_iter()
947 end = min_t(loff_t, end, PAGE_CACHE_SIZE); in ceph_read_iter()
1008 loff_t pos; in ceph_write_iter()
1107 loff_t old_size = inode->i_size; in ceph_write_iter()
1160 static loff_t ceph_llseek(struct file *file, loff_t offset, int whence) in ceph_llseek()
1215 struct inode *inode, loff_t offset, unsigned size) in ceph_zero_partial_page()
1229 static void ceph_zero_pagecache_range(struct inode *inode, loff_t offset, in ceph_zero_pagecache_range()
[all …]
/linux-4.4.14/net/x25/
Dx25_proc.c30 static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos) in x25_seq_route_start()
37 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_route_next()
65 static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos) in x25_seq_socket_start()
72 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_socket_next()
118 static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos) in x25_seq_forward_start()
125 static void *x25_seq_forward_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_forward_next()
/linux-4.4.14/drivers/mtd/onenand/
Donenand_base.c273 static unsigned flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block()
292 inline unsigned onenand_block(struct onenand_chip *this, loff_t addr) in onenand_block()
306 static loff_t flexonenand_addr(struct onenand_chip *this, int block) in flexonenand_addr()
308 loff_t ofs = 0; in flexonenand_addr()
318 ofs += (loff_t)block << (this->erase_shift - 1); in flexonenand_addr()
320 ofs += (loff_t)(block - boundary - 1) << (this->erase_shift - 1); in flexonenand_addr()
324 loff_t onenand_addr(struct onenand_chip *this, int block) in onenand_addr()
327 return (loff_t)block << this->erase_shift; in onenand_addr()
349 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region()
370 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) in onenand_command()
[all …]
/linux-4.4.14/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()
Dfuse_i.h715 loff_t pos, size_t count, int opcode);
737 int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
909 loff_t offset, loff_t len);
938 loff_t *ppos, int flags);
946 bool fuse_write_update_size(struct inode *inode, loff_t pos);
/linux-4.4.14/net/ipx/
Dipx_proc.c17 static void *ipx_seq_interface_start(struct seq_file *seq, loff_t *pos) in ipx_seq_interface_start()
23 static void *ipx_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_interface_next()
63 static void *ipx_seq_route_start(struct seq_file *seq, loff_t *pos) in ipx_seq_route_start()
69 static void *ipx_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_route_next()
103 static __inline__ struct sock *ipx_get_socket_idx(loff_t pos) in ipx_get_socket_idx()
127 static void *ipx_seq_socket_start(struct seq_file *seq, loff_t *pos) in ipx_seq_socket_start()
129 loff_t l = *pos; in ipx_seq_socket_start()
135 static void *ipx_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_socket_next()
/linux-4.4.14/drivers/net/wireless/iwlegacy/
Ddebug.c156 size_t count, loff_t *ppos);
161 size_t count, loff_t *ppos);
232 loff_t *ppos) in il_dbgfs_tx_stats_read()
273 loff_t *ppos) in il_dbgfs_clear_traffic_stats_write()
293 loff_t *ppos) in il_dbgfs_rx_stats_read()
337 loff_t *ppos) in il_dbgfs_sram_read()
396 size_t count, loff_t *ppos) in il_dbgfs_sram_write()
421 loff_t *ppos) in il_dbgfs_stations_read()
485 loff_t *ppos) in il_dbgfs_nvm_read()
529 loff_t *ppos) in il_dbgfs_channels_read()
[all …]
/linux-4.4.14/net/sctp/
Dsysctl.c63 loff_t *ppos);
66 loff_t *ppos);
69 loff_t *ppos);
72 loff_t *ppos);
75 loff_t *ppos);
317 loff_t *ppos) in proc_sctp_do_hmac_alg()
363 loff_t *ppos) in proc_sctp_do_rto_min()
392 loff_t *ppos) in proc_sctp_do_rto_max()
421 loff_t *ppos) in proc_sctp_do_alpha_beta()
432 loff_t *ppos) in proc_sctp_do_auth()
Dproc.c180 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) in sctp_eps_seq_start()
199 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next()
215 int hash = *(loff_t *)v; in sctp_eps_seq_show()
285 static void *sctp_assocs_seq_start(struct seq_file *seq, loff_t *pos) in sctp_assocs_seq_start()
308 static void *sctp_assocs_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_assocs_seq_next()
323 int hash = *(loff_t *)v; in sctp_assocs_seq_show()
410 static void *sctp_remaddr_seq_start(struct seq_file *seq, loff_t *pos) in sctp_remaddr_seq_start()
425 static void *sctp_remaddr_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_remaddr_seq_next()
443 int hash = *(loff_t *)v; in sctp_remaddr_seq_show()
Dobjcnt.c83 i = (int)*(loff_t *)v; in sctp_objcnt_seq_show()
91 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) in sctp_objcnt_seq_start()
100 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_objcnt_seq_next()
/linux-4.4.14/fs/jfs/
Djfs_inode.h24 extern int jfs_fsync(struct file *, loff_t, loff_t, int);
33 extern void jfs_truncate_nolock(struct inode *, loff_t);
Dinode.c305 static void jfs_write_failed(struct address_space *mapping, loff_t to) in jfs_write_failed()
316 loff_t pos, unsigned len, unsigned flags, in jfs_write_begin()
335 loff_t offset) in jfs_direct_IO()
350 loff_t isize = i_size_read(inode); in jfs_direct_IO()
351 loff_t end = offset + count; in jfs_direct_IO()
375 void jfs_truncate_nolock(struct inode *ip, loff_t length) in jfs_truncate_nolock()
377 loff_t newsize; in jfs_truncate_nolock()
/linux-4.4.14/drivers/mtd/lpddr/
Dlpddr_cmds.c32 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len,
34 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to,
37 unsigned long count, loff_t to, size_t *retlen);
39 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
40 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
41 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len,
43 static int lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len);
470 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock()
497 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read()
521 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point()
[all …]
/linux-4.4.14/drivers/acpi/
Dec_sys.c32 size_t count, loff_t *off) in acpi_ec_read_io()
38 loff_t init_off = *off; in acpi_ec_read_io()
66 size_t count, loff_t *off) in acpi_ec_write_io()
73 loff_t init_off = *off; in acpi_ec_write_io()
/linux-4.4.14/drivers/remoteproc/
Dremoteproc_debugfs.c48 size_t count, loff_t *ppos) in rproc_trace_read()
76 size_t count, loff_t *ppos) in rproc_state_read()
99 size_t count, loff_t *ppos) in rproc_name_read()
119 size_t count, loff_t *ppos) in rproc_recovery_read()
153 size_t count, loff_t *ppos) in rproc_recovery_write()
/linux-4.4.14/drivers/isdn/capi/
Dkcapi_proc.c38 static void *controller_start(struct seq_file *seq, loff_t *pos) in controller_start()
49 static void *controller_next(struct seq_file *seq, void *v, loff_t *pos) in controller_next()
143 static void *applications_start(struct seq_file *seq, loff_t *pos) in applications_start()
155 applications_next(struct seq_file *seq, void *v, loff_t *pos) in applications_next()
249 static void *capi_driver_start(struct seq_file *seq, loff_t *pos) in capi_driver_start()
256 static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos) in capi_driver_next()
/linux-4.4.14/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,
Dfile.c25 loff_t pos, unsigned len, unsigned copied,
28 loff_t pos, unsigned len, unsigned flags,
32 int jffs2_fsync(struct file *filp, loff_t start, loff_t end, int datasync) in jffs2_fsync()
134 loff_t pos, unsigned len, unsigned flags, in jffs2_write_begin()
238 loff_t pos, unsigned len, unsigned copied, in jffs2_write_end()
/linux-4.4.14/drivers/mtd/
Dmtdpart.c61 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read()
80 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point()
89 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint()
108 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob()
146 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg()
162 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg()
178 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, in part_write()
186 static int part_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in part_panic_write()
194 static int part_write_oob(struct mtd_info *mtd, loff_t to, in part_write_oob()
206 static int part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_write_user_prot_reg()
[all …]
Dmtdcore.c866 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
884 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
912 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
936 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
957 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
973 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1010 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
1033 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
1045 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
1067 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
[all …]
/linux-4.4.14/arch/powerpc/include/asm/
Dnvram.h67 extern loff_t nvram_create_partition(const char *name, int sig,
71 extern int nvram_get_partition_size(loff_t data_index);
72 extern loff_t nvram_find_partition(const char *name, int sig, int *out_size);
/linux-4.4.14/drivers/hid/
Dhid-roccat-common.h44 char *buf, loff_t off, size_t count,
47 void const *buf, loff_t off, size_t count,
53 loff_t off, size_t count) \
62 loff_t off, size_t count) \
Dhid-roccat-lua.c30 char *buf, loff_t off, size_t count, in lua_sysfs_read()
52 void const *buf, loff_t off, size_t count, in lua_sysfs_write()
73 char *buf, loff_t off, size_t count) \
82 char *buf, loff_t off, size_t count) \
/linux-4.4.14/kernel/
Dsysctl.c179 void __user *buffer, size_t *lenp, loff_t *ppos);
181 void __user *buffer, size_t *lenp, loff_t *ppos);
186 void __user *buffer, size_t *lenp, loff_t *ppos);
190 void __user *buffer, size_t *lenp, loff_t *ppos);
193 void __user *buffer, size_t *lenp, loff_t *ppos);
202 loff_t *ppos) in sysrq_sysctl_handler()
1802 size_t *lenp, loff_t *ppos) in _proc_do_string()
1893 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dostring()
2058 size_t *lenp, loff_t *ppos, in __do_proc_dointvec()
2156 void __user *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec()
[all …]
Dkallsyms.c449 loff_t pos;
482 static void reset_iter(struct kallsym_iter *iter, loff_t new_pos) in reset_iter()
490 static int update_iter(struct kallsym_iter *iter, loff_t pos) in update_iter()
508 static void *s_next(struct seq_file *m, void *p, loff_t *pos) in s_next()
517 static void *s_start(struct seq_file *m, loff_t *pos) in s_start()
577 const char *kdb_walk_kallsyms(loff_t *pos) in kdb_walk_kallsyms()
/linux-4.4.14/ipc/
Dipc_sysctl.c31 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec()
42 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax()
53 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans()
66 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_doulongvec_minmax()
77 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni()
/linux-4.4.14/drivers/parisc/
Deisa_eeprom.c34 static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin) in eisa_eeprom_llseek()
40 char __user *buf, size_t count, loff_t *ppos ) in eisa_eeprom_read()
/linux-4.4.14/security/integrity/ima/
Dima_fs.c31 loff_t *ppos, atomic_long_t *val) in ima_show_htable_value()
42 size_t count, loff_t *ppos) in ima_show_htable_violations()
54 size_t count, loff_t *ppos) in ima_show_measurements_count()
66 static void *ima_measurements_start(struct seq_file *m, loff_t *pos) in ima_measurements_start()
68 loff_t l = *pos; in ima_measurements_start()
83 static void *ima_measurements_next(struct seq_file *m, void *v, loff_t *pos) in ima_measurements_next()
260 size_t datalen, loff_t *ppos) in ima_write_policy()
/linux-4.4.14/net/mac80211/
Ddebugfs.c21 loff_t *ppos, char *fmt, ...) in mac80211_format_buffer()
36 size_t count, loff_t *ppos) \
75 size_t count, loff_t *ppos) in reset_write()
135 size_t count, loff_t *ppos) in hwflags_read()
164 size_t count, loff_t *ppos) in queues_read()
188 size_t count, loff_t *ppos, in format_devstat_counter()
213 size_t count, loff_t *ppos) \
Ddebugfs_key.c22 size_t count, loff_t *ppos) \
74 size_t count, loff_t *ppos) in key_algorithm_read()
87 size_t count, loff_t *ppos) in key_tx_spec_write()
122 size_t count, loff_t *ppos) in key_tx_spec_read()
160 size_t count, loff_t *ppos) in key_rx_spec_read()
228 size_t count, loff_t *ppos) in key_replays_read()
261 size_t count, loff_t *ppos) in key_icverrors_read()
286 size_t count, loff_t *ppos) in key_mic_failures_read()
302 size_t count, loff_t *ppos) in key_key_read()
Ddebugfs_sta.c25 size_t count, loff_t *ppos) \
55 size_t count, loff_t *ppos) in sta_flags_read()
84 size_t count, loff_t *ppos) in sta_num_ps_buf_frames_read()
99 size_t count, loff_t *ppos) in sta_last_seq_ctrl_read()
113 size_t count, loff_t *ppos) in sta_agg_status_read()
152 size_t count, loff_t *ppos) in sta_agg_status_write()
211 size_t count, loff_t *ppos) in sta_ht_capa_read()
293 size_t count, loff_t *ppos) in sta_vht_capa_read()
/linux-4.4.14/arch/arm/kernel/
Dsys_arm.c36 loff_t offset, loff_t len) in sys_arm_fadvise64_64()
/linux-4.4.14/fs/9p/
Dvfs_addr.c164 loff_t size = i_size_read(inode); in v9fs_vfs_writepage_locked()
248 v9fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t pos) in v9fs_direct_IO()
257 loff_t i_size = i_size_read(inode); in v9fs_direct_IO()
268 loff_t pos, unsigned len, unsigned flags, in v9fs_write_begin()
304 loff_t pos, unsigned len, unsigned copied, in v9fs_write_end()
307 loff_t last_pos = pos + copied; in v9fs_write_end()
/linux-4.4.14/drivers/misc/
Dlkdtm.c622 const char __user *user_buf, size_t count, loff_t *off) in do_register_entry()
658 size_t count, loff_t *off) in lkdtm_debugfs_read()
686 size_t count, loff_t *off) in int_hardware_entry()
692 size_t count, loff_t *off) in int_hw_irq_en()
698 size_t count, loff_t *off) in int_tasklet_entry()
704 size_t count, loff_t *off) in fs_devrw_entry()
710 size_t count, loff_t *off) in mem_swapout_entry()
716 size_t count, loff_t *off) in timeradd_entry()
722 const char __user *buf, size_t count, loff_t *off) in scsi_dispatch_cmd_entry()
728 size_t count, loff_t *off) in ide_core_cp_entry()
[all …]
/linux-4.4.14/fs/ocfs2/
Daops.c226 loff_t size; in ocfs2_read_inline_data()
285 loff_t start = (loff_t)page->index << PAGE_CACHE_SHIFT; in ocfs2_readpage()
360 loff_t start; in ocfs2_readpages()
388 start = (loff_t)last->index << PAGE_CACHE_SHIFT; in ocfs2_readpages()
624 loff_t offset, in ocfs2_dio_end_io()
657 struct inode *inode, loff_t offset) in ocfs2_is_overwrite()
680 struct inode *inode, loff_t offset, in ocfs2_direct_IO_zero_extend()
714 struct inode *inode, loff_t offset) in ocfs2_direct_IO_extend_no_holes()
792 loff_t offset) in ocfs2_direct_IO_write()
806 loff_t final_size = offset + count; in ocfs2_direct_IO_write()
[all …]
Dquota.h28 loff_t dq_local_off; /* Offset in the local quota file */
94 size_t len, loff_t off);
96 const char *data, size_t len, loff_t off);
/linux-4.4.14/arch/blackfin/kernel/
Dcplbinfo.c30 loff_t pos;
51 loff_t pos; in cplbinfo_show()
82 static void *cplbinfo_start(struct seq_file *m, loff_t *pos) in cplbinfo_start()
98 static void *cplbinfo_next(struct seq_file *m, void *p, loff_t *pos) in cplbinfo_next()
/linux-4.4.14/include/media/
Dvideobuf2-v4l2.h71 loff_t *ppos, int nonblock);
73 loff_t *ppos, int nonblock);
135 size_t count, loff_t *ppos);
137 size_t count, loff_t *ppos);
/linux-4.4.14/fs/cifs/
Dcifsfs.h99 extern int cifs_fsync(struct file *, loff_t, loff_t, int);
100 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int);
/linux-4.4.14/drivers/staging/wilc1000/
Dwilc_debugfs.c37 static ssize_t wilc_debug_level_read(struct file *file, char __user *userbuf, size_t count, loff_t in wilc_debug_level_read()
52 size_t count, loff_t *ppos) in wilc_debug_level_write()
76 static ssize_t wilc_debug_region_read(struct file *file, char __user *userbuf, size_t count, loff_t in wilc_debug_region_read()
90 static ssize_t wilc_debug_region_write(struct file *filp, const char *buf, size_t count, loff_t *pp… in wilc_debug_region_write()
/linux-4.4.14/drivers/vfio/pci/
Dvfio_pci_rdwr.c31 loff_t off, size_t count, size_t x_start, in do_io_rw()
117 size_t count, loff_t *ppos, bool iswrite) in vfio_pci_bar_rw()
120 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; in vfio_pci_bar_rw()
181 size_t count, loff_t *ppos, bool iswrite) in vfio_pci_vga_rw()
184 loff_t off, pos = *ppos & VFIO_PCI_OFFSET_MASK; in vfio_pci_vga_rw()
Dvfio_pci_private.h81 loff_t *ppos, bool iswrite);
84 size_t count, loff_t *ppos, bool iswrite);
87 size_t count, loff_t *ppos, bool iswrite);
/linux-4.4.14/fs/coda/
Dcoda_int.h14 int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync);
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dfile.c83 size_t len, loff_t *ppos) in spufs_attr_read()
116 size_t len, loff_t *ppos) in spufs_attr_write()
189 size_t size, loff_t *pos) in __spufs_mem_read()
198 size_t size, loff_t *pos) in spufs_mem_read()
214 size_t size, loff_t *ppos) in spufs_mem_write()
218 loff_t pos = *ppos; in spufs_mem_write()
476 size_t size, loff_t *pos) in __spufs_regs_read()
485 size_t size, loff_t *pos) in spufs_regs_read()
505 size_t size, loff_t *pos) in spufs_regs_write()
534 size_t size, loff_t * pos) in __spufs_fpcr_read()
[all …]
/linux-4.4.14/drivers/pnp/isapnp/
Dproc.c30 static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence) in isapnp_proc_bus_lseek()
36 size_t nbytes, loff_t * ppos) in isapnp_proc_bus_read()
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlproc_lov.c57 size_t count, loff_t *off) in lov_stripesize_seq_write()
90 size_t count, loff_t *off) in lov_stripeoffset_seq_write()
122 size_t count, loff_t *off) in lov_stripetype_seq_write()
154 size_t count, loff_t *off) in lov_stripecount_seq_write()
210 static void *lov_tgt_seq_start(struct seq_file *p, loff_t *pos) in lov_tgt_seq_start()
227 static void *lov_tgt_seq_next(struct seq_file *p, void *v, loff_t *pos) in lov_tgt_seq_next()
/linux-4.4.14/fs/reiserfs/
Ddir.c17 static int reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end,
31 static int reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end, in reiserfs_dir_fsync()
73 loff_t next_pos; in reiserfs_readdir_inode()
144 loff_t cur_pos = deh_offset(deh); in reiserfs_readdir_inode()
Dxattr.h53 static inline loff_t reiserfs_xattr_nblocks(struct inode *inode, loff_t size) in reiserfs_xattr_nblocks()
55 loff_t ret = 0; in reiserfs_xattr_nblocks()
/linux-4.4.14/kernel/trace/
Dtrace_printk.c116 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format()
173 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format()
247 static const char **find_next(void *v, loff_t *pos) in find_next()
281 t_start(struct seq_file *m, loff_t *pos) in t_start()
287 static void *t_next(struct seq_file *m, void * v, loff_t *pos) in t_next()
Dtrace_stack.c232 size_t count, loff_t *ppos) in stack_max_size_read()
246 size_t count, loff_t *ppos) in stack_max_size_write()
285 __next(struct seq_file *m, loff_t *pos) in __next()
297 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next()
303 static void *t_start(struct seq_file *m, loff_t *pos) in t_start()
423 loff_t *ppos) in stack_trace_sysctl()
/linux-4.4.14/net/8021q/
Dvlanproc.c40 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos);
41 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos);
202 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos) in vlan_seq_start()
207 loff_t i = 1; in vlan_seq_start()
224 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vlan_seq_next()
/linux-4.4.14/arch/x86/kernel/
Dmsr.c48 static loff_t msr_seek(struct file *file, loff_t offset, int orig) in msr_seek()
50 loff_t ret; in msr_seek()
71 size_t count, loff_t *ppos) in msr_read()
99 size_t count, loff_t *ppos) in msr_write()
Dcpuid.c61 static loff_t cpuid_seek(struct file *file, loff_t offset, int orig) in cpuid_seek()
63 loff_t ret; in cpuid_seek()
84 size_t count, loff_t *ppos) in cpuid_read()
/linux-4.4.14/arch/frv/kernel/
Dpm.c154 void __user *buffer, size_t *lenp, loff_t *fpos) in sysctl_pm_do_suspend()
201 void __user *buffer, size_t *lenp, loff_t *fpos) in cmode_procctl()
273 void __user *buffer, size_t *lenp, loff_t *fpos) in p0_procctl()
286 void __user *buffer, size_t *lenp, loff_t *fpos) in cm_procctl()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dvvp_dev.c282 static void vvp_pgcache_id_unpack(loff_t pos, struct vvp_pgcache_id *id) in vvp_pgcache_id_unpack()
291 static loff_t vvp_pgcache_id_pack(struct vvp_pgcache_id *id) in vvp_pgcache_id_pack()
344 static loff_t vvp_pgcache_find(const struct lu_env *env, in vvp_pgcache_find()
345 struct lu_device *dev, loff_t pos) in vvp_pgcache_find()
430 loff_t pos; in vvp_pgcache_show()
442 pos = *(loff_t *) v; in vvp_pgcache_show()
471 static void *vvp_pgcache_start(struct seq_file *f, loff_t *pos) in vvp_pgcache_start()
495 static void *vvp_pgcache_next(struct seq_file *f, void *v, loff_t *pos) in vvp_pgcache_next()
/linux-4.4.14/drivers/scsi/fnic/
Dfnic_debugfs.c149 size_t cnt, loff_t *ppos) in fnic_trace_ctrl_read()
187 size_t cnt, loff_t *ppos) in fnic_trace_ctrl_write()
297 static loff_t fnic_trace_debugfs_lseek(struct file *file, in fnic_trace_debugfs_lseek()
298 loff_t offset, in fnic_trace_debugfs_lseek()
325 loff_t *pos) in fnic_trace_debugfs_read()
565 size_t cnt, loff_t *ppos) in fnic_reset_stats_read()
593 size_t cnt, loff_t *ppos) in fnic_reset_stats_write()
721 loff_t *pos) in fnic_stats_debugfs_read()
/linux-4.4.14/net/ipv4/netfilter/
Dnf_conntrack_l3proto_ipv4_compat.c67 static struct hlist_nulls_node *ct_get_idx(struct seq_file *seq, loff_t pos) in ct_get_idx()
77 static void *ct_seq_start(struct seq_file *seq, loff_t *pos) in ct_seq_start()
84 static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos) in ct_seq_next()
252 static struct hlist_node *ct_expect_get_idx(struct seq_file *seq, loff_t pos) in ct_expect_get_idx()
262 static void *exp_seq_start(struct seq_file *seq, loff_t *pos) in exp_seq_start()
269 static void *exp_seq_next(struct seq_file *seq, void *v, loff_t *pos) in exp_seq_next()
329 static void *ct_cpu_seq_start(struct seq_file *seq, loff_t *pos) in ct_cpu_seq_start()
347 static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ct_cpu_seq_next()
/linux-4.4.14/security/selinux/
Dselinuxfs.c132 size_t count, loff_t *ppos) in sel_read_enforce()
143 size_t count, loff_t *ppos) in sel_write_enforce()
203 size_t count, loff_t *ppos) in sel_read_handle_unknown()
233 size_t count, loff_t *ppos) in sel_read_handle_status()
275 size_t count, loff_t *ppos) in sel_write_disable()
329 size_t count, loff_t *ppos) in sel_read_policyvers()
353 size_t count, loff_t *ppos) in sel_read_mls()
436 size_t count, loff_t *ppos) in sel_read_policy()
505 size_t count, loff_t *ppos) in sel_write_load()
602 size_t count, loff_t *ppos) in sel_read_checkreqprot()
[all …]
/linux-4.4.14/net/rxrpc/
Dar-proc.c31 static void *rxrpc_call_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_call_seq_start()
37 static void *rxrpc_call_seq_next(struct seq_file *seq, void *v, loff_t *pos) in rxrpc_call_seq_next()
112 static void *rxrpc_connection_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_connection_seq_start()
119 loff_t *pos) in rxrpc_connection_seq_next()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_debugfs.c45 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_read()
81 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_write()
150 size_t count, loff_t *ppos) in ixgbe_dbg_netdev_ops_read()
186 size_t count, loff_t *ppos) in ixgbe_dbg_netdev_ops_write()
/linux-4.4.14/arch/mips/lasat/
Dsysctl.c43 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatstring()
61 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatrtc()
86 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_ip()
146 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_prid()
/linux-4.4.14/drivers/base/
Ddevcoredump.c47 ssize_t (*read)(char *buffer, loff_t offset, size_t count,
90 char *buffer, loff_t offset, size_t count) in devcd_data_read()
100 char *buffer, loff_t offset, size_t count) in devcd_data_write()
176 static ssize_t devcd_readv(char *buffer, loff_t offset, size_t count, in devcd_readv()
232 ssize_t (*read)(char *buffer, loff_t offset, size_t count, in dev_coredumpm()
/linux-4.4.14/net/atm/
Dmpoa_proc.c51 size_t nbytes, loff_t *ppos);
107 static void *mpc_start(struct seq_file *m, loff_t *pos) in mpc_start()
109 loff_t l = *pos; in mpc_start()
120 static void *mpc_next(struct seq_file *m, void *v, loff_t *pos) in mpc_next()
207 size_t nbytes, loff_t *ppos) in proc_mpc_write()
Dresources.h23 void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos);
25 void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos);
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_fs.c98 size_t count, loff_t *ppos) in atomic_stats_read()
110 size_t count, loff_t *ppos) in atomic_counters_read()
128 size_t count, loff_t *ppos) in flash_read()
132 loff_t pos; in flash_read()
179 size_t count, loff_t *ppos) in flash_write()
183 loff_t pos; in flash_write()
/linux-4.4.14/net/sunrpc/
Ddebugfs.c21 loff_t pos;
47 tasks_start(struct seq_file *f, loff_t *ppos) in tasks_start()
51 loff_t pos = *ppos; in tasks_start()
64 tasks_next(struct seq_file *f, void *v, loff_t *pos) in tasks_next()
292 size_t len, loff_t *offset) in fault_disconnect_read()
303 size_t len, loff_t *offset) in fault_disconnect_write()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Ddebug.c301 size_t count, loff_t *ppos) in read_file_war_stats()
399 size_t count, loff_t *ppos) in ath6kl_fwlog_read()
452 loff_t *ppos) in ath6kl_fwlog_block_read()
526 size_t count, loff_t *ppos) in ath6kl_fwlog_mask_read()
539 size_t count, loff_t *ppos) in ath6kl_fwlog_mask_write()
566 size_t count, loff_t *ppos) in read_file_tgt_stats()
705 size_t count, loff_t *ppos) in read_file_credit_dist_stats()
783 size_t count, loff_t *ppos) in ath6kl_endpoint_stats_read()
838 size_t count, loff_t *ppos) in ath6kl_endpoint_stats_write()
893 size_t count, loff_t *ppos) in ath6kl_regread_read()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Ddebug.c200 size_t count, loff_t *ppos) in ath10k_read_wmi_services()
468 size_t count, loff_t *ppos) in ath10k_fw_stats_read()
486 size_t count, loff_t *ppos) in ath10k_debug_fw_reset_stats_read()
547 size_t count, loff_t *ppos) in ath10k_read_simulate_fw_crash()
568 size_t count, loff_t *ppos) in ath10k_write_simulate_fw_crash()
637 size_t count, loff_t *ppos) in ath10k_read_chip_id()
762 size_t count, loff_t *ppos) in ath10k_fw_crash_dump_read()
789 size_t count, loff_t *ppos) in ath10k_reg_addr_read()
807 size_t count, loff_t *ppos) in ath10k_reg_addr_write()
837 size_t count, loff_t *ppos) in ath10k_reg_value_read()
[all …]
Ddebugfs_sta.c23 size_t count, loff_t *ppos) in ath10k_dbg_sta_read_aggr_mode()
42 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_aggr_mode()
85 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_addba()
136 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_addba_resp()
186 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_delba()
/linux-4.4.14/fs/sysfs/
Dfile.c83 size_t count, loff_t pos) in sysfs_kf_bin_read()
87 loff_t size = file_inode(of->file)->i_size; in sysfs_kf_bin_read()
107 size_t count, loff_t pos) in sysfs_kf_read()
125 size_t count, loff_t pos) in sysfs_kf_write()
138 size_t count, loff_t pos) in sysfs_kf_bin_write()
142 loff_t size = file_inode(of->file)->i_size; in sysfs_kf_bin_write()
247 loff_t size; in sysfs_add_file_mode_ns()
/linux-4.4.14/drivers/pci/
Dproc.c20 static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence) in proc_bus_pci_lseek()
27 size_t nbytes, loff_t *ppos) in proc_bus_pci_read()
111 size_t nbytes, loff_t *ppos) in proc_bus_pci_write()
299 static void *pci_seq_start(struct seq_file *m, loff_t *pos) in pci_seq_start()
302 loff_t n = *pos; in pci_seq_start()
311 static void *pci_seq_next(struct seq_file *m, void *v, loff_t *pos) in pci_seq_next()
/linux-4.4.14/drivers/video/fbdev/mbx/
Dmbxdebugfs.c25 size_t count, loff_t *ppos) in write_file_dummy()
31 size_t count, loff_t *ppos) in sysconf_read_file()
47 size_t count, loff_t *ppos) in gsctl_read_file()
75 size_t count, loff_t *ppos) in display_read_file()
115 size_t count, loff_t *ppos) in clock_read_file()
138 size_t count, loff_t *ppos) in sdram_read_file()
160 size_t count, loff_t *ppos) in misc_read_file()
/linux-4.4.14/drivers/firmware/
Ddmi-sysfs.c153 loff_t pos;
312 loff_t offset);
317 loff_t offset) in read_sel_8bit_indexed_io()
329 loff_t offset) in read_sel_2x8bit_indexed_io()
342 loff_t offset) in read_sel_16bit_indexed_io()
361 char *buf, loff_t pos, size_t count) in dmi_sel_raw_read_io()
378 char *buf, loff_t pos, size_t count) in dmi_sel_raw_read_phys32()
430 char *buf, loff_t pos, size_t count) in dmi_sel_raw_read()
536 char *buf, loff_t pos, size_t count) in dmi_entry_raw_read()
/linux-4.4.14/include/trace/events/
Df2fs.h133 __field(loff_t, size)
282 __field(loff_t, size)
355 __field(loff_t, size)
596 loff_t offset, loff_t len, int ret),
604 __field(loff_t, offset)
605 __field(loff_t, len)
606 __field(loff_t, size)
635 TP_PROTO(struct inode *inode, loff_t offset, unsigned long len, int rw),
642 __field(loff_t, pos)
664 TP_PROTO(struct inode *inode, loff_t offset, unsigned long len,
[all …]
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-fileops.h27 loff_t *pos);
29 loff_t *pos);
/linux-4.4.14/arch/sh/include/asm/
Dsyscalls_32.h16 size_t count, long dummy, loff_t pos);
18 size_t count, long dummy, loff_t pos);
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Ddebugfs.c97 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read()
187 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write()
215 size_t count, loff_t *ppos) in iwl_dbgfs_wowlan_sram_read()
228 size_t count, loff_t *ppos) in iwl_dbgfs_stations_read()
286 loff_t *ppos) in iwl_dbgfs_nvm_read()
323 size_t count, loff_t *ppos) in iwl_dbgfs_channels_read()
389 size_t count, loff_t *ppos) { in iwl_dbgfs_status_read()
423 size_t count, loff_t *ppos) { in iwl_dbgfs_rx_handlers_read()
452 size_t count, loff_t *ppos) in iwl_dbgfs_rx_handlers_write()
474 size_t count, loff_t *ppos) in iwl_dbgfs_qos_read()
[all …]
/linux-4.4.14/net/wireless/
Dwext-proc.c90 static void *wireless_dev_seq_start(struct seq_file *seq, loff_t *pos) in wireless_dev_seq_start()
93 loff_t off; in wireless_dev_seq_start()
107 static void *wireless_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in wireless_dev_seq_next()
/linux-4.4.14/fs/ramfs/
Dfile-nommu.c136 static int ramfs_nommu_resize(struct inode *inode, loff_t newsize, loff_t size) in ramfs_nommu_resize()
178 loff_t size = inode->i_size; in ramfs_nommu_setattr()
212 loff_t isize; in ramfs_nommu_get_unmapped_area()
/linux-4.4.14/include/sound/
Dinfo.h58 size_t count, loff_t pos);
61 size_t count, loff_t pos);
62 loff_t (*llseek)(struct snd_info_entry *entry,
64 loff_t offset, int orig);
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_debugfs.c32 static void *fm10k_dbg_desc_seq_start(struct seq_file *s, loff_t *pos) in fm10k_dbg_desc_seq_start()
41 loff_t *pos) in fm10k_dbg_desc_seq_next()
65 int i = *(loff_t *)v; in fm10k_dbg_tx_desc_seq_show()
92 int i = *(loff_t *)v; in fm10k_dbg_rx_desc_seq_show()
/linux-4.4.14/fs/logfs/
Dfile.c13 loff_t pos, unsigned len, unsigned flags, in logfs_write_begin()
39 loff_t pos, unsigned len, unsigned copied, struct page *page, in logfs_write_end()
120 loff_t i_size = i_size_read(inode); in logfs_writepage()
223 int logfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) in logfs_fsync()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-fileops.h27 loff_t * pos);
29 loff_t * pos);
/linux-4.4.14/fs/overlayfs/
Dreaddir.c144 loff_t offset, u64 ino, unsigned int d_type) in ovl_fill_lower()
189 int namelen, loff_t offset, u64 ino, in ovl_fill_merge()
317 static void ovl_seek_cursor(struct ovl_dir_file *od, loff_t pos) in ovl_seek_cursor()
320 loff_t off = 0; in ovl_seek_cursor()
397 static loff_t ovl_dir_llseek(struct file *file, loff_t offset, int origin) in ovl_dir_llseek()
399 loff_t res; in ovl_dir_llseek()
437 static int ovl_dir_fsync(struct file *file, loff_t start, loff_t end, in ovl_dir_fsync()
/linux-4.4.14/drivers/misc/ibmasm/
Dibmasmfs.c264 static ssize_t command_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in command_file_read()
301 static ssize_t command_file_write(struct file *file, const char __user *ubuff, size_t count, loff_t in command_file_write()
373 static ssize_t event_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in event_file_read()
416 static ssize_t event_file_write(struct file *file, const char __user *buf, size_t count, loff_t *of… in event_file_write()
457 static ssize_t r_heartbeat_file_read(struct file *file, char __user *buf, size_t count, loff_t *off… in r_heartbeat_file_read()
485 …e_t r_heartbeat_file_write(struct file *file, const char __user *buf, size_t count, loff_t *offset) in r_heartbeat_file_write()
507 static ssize_t remote_settings_file_read(struct file *file, char __user *buf, size_t count, loff_t in remote_settings_file_read()
541 …mote_settings_file_write(struct file *file, const char __user *ubuff, size_t count, loff_t *offset) in remote_settings_file_write()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c247 loff_t offset, size_t size) in qlcnic_sysfs_validate_crb()
270 loff_t offset, size_t size) in qlcnic_sysfs_read_crb()
287 loff_t offset, size_t size) in qlcnic_sysfs_write_crb()
303 loff_t offset, size_t size) in qlcnic_sysfs_validate_mem()
316 loff_t offset, size_t size) in qlcnic_sysfs_read_mem()
338 loff_t offset, size_t size) in qlcnic_sysfs_write_mem()
402 char *buf, loff_t offset, in qlcnic_sysfs_write_pm_config()
452 char *buf, loff_t offset, in qlcnic_sysfs_read_pm_config()
545 char *buf, loff_t offset, in qlcnic_sysfs_write_esw_config()
629 char *buf, loff_t offset, in qlcnic_sysfs_read_esw_config()
[all …]
/linux-4.4.14/kernel/events/
Duprobes.c73 loff_t offset;
131 static unsigned long offset_to_vaddr(struct vm_area_struct *vma, loff_t offset) in offset_to_vaddr()
133 return vma->vm_start + offset - ((loff_t)vma->vm_pgoff << PAGE_SHIFT); in offset_to_vaddr()
136 static loff_t vaddr_to_offset(struct vm_area_struct *vma, unsigned long vaddr) in vaddr_to_offset()
138 return ((loff_t)vma->vm_pgoff << PAGE_SHIFT) + (vaddr - vma->vm_start); in vaddr_to_offset()
390 static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset) in __find_uprobe()
415 static struct uprobe *find_uprobe(struct inode *inode, loff_t offset) in find_uprobe()
475 static struct uprobe *alloc_uprobe(struct inode *inode, loff_t offset) in alloc_uprobe()
532 void *insn, int nbytes, loff_t offset) in __copy_insn()
556 loff_t offs = uprobe->offset; in copy_insn()
[all …]

123456789