Home
last modified time | relevance | path

Searched refs:ppos (Results 1 – 25 of 62) sorted by relevance

123

/fs/
Dread_write.c366 int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) in rw_verify_area() argument
375 if (ppos) { in rw_verify_area()
376 loff_t pos = *ppos; in rw_verify_area()
393 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read() argument
401 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read()
406 if (ppos) in new_sync_read()
407 *ppos = kiocb.ki_pos; in new_sync_read()
496 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in new_sync_write() argument
504 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_write()
509 if (ret > 0 && ppos) in new_sync_write()
[all …]
Dlibfs.c225 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir() argument
729 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer() argument
732 loff_t pos = *ppos; in simple_read_from_buffer()
745 *ppos = pos + count; in simple_read_from_buffer()
764 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer() argument
767 loff_t pos = *ppos; in simple_write_to_buffer()
780 *ppos = pos + count; in simple_write_to_buffer()
799 ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, in memory_read_from_buffer() argument
802 loff_t pos = *ppos; in memory_read_from_buffer()
811 *ppos = pos + count; in memory_read_from_buffer()
[all …]
Dsplice.c298 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read() argument
310 kiocb.ki_pos = *ppos; in generic_file_splice_read()
313 *ppos = kiocb.ki_pos; in generic_file_splice_read()
585 loff_t *ppos, size_t len, unsigned int flags, in splice_from_pipe() argument
592 .pos = *ppos, in splice_from_pipe()
619 loff_t *ppos, size_t len, unsigned int flags) in iter_file_splice_write() argument
624 .pos = *ppos, in iter_file_splice_write()
695 *ppos = sd.pos; in iter_file_splice_write()
744 loff_t *ppos, size_t len, unsigned int flags) in generic_splice_sendpage() argument
746 return splice_from_pipe(pipe, out, ppos, len, flags, pipe_to_sendpage); in generic_splice_sendpage()
[all …]
Dseq_file.c151 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument
161 kiocb.ki_pos = *ppos; in seq_read()
163 *ppos = kiocb.ki_pos; in seq_read()
940 struct list_head *seq_list_next(void *v, struct list_head *head, loff_t *ppos) in seq_list_next() argument
945 ++*ppos; in seq_list_next()
972 loff_t *ppos) in seq_list_next_rcu() argument
977 ++*ppos; in seq_list_next_rcu()
1026 loff_t *ppos) in seq_hlist_next() argument
1030 ++*ppos; in seq_hlist_next()
1097 loff_t *ppos) in seq_hlist_next_rcu() argument
[all …]
Dbinfmt_misc.c585 bm_entry_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument
597 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read()
604 size_t count, loff_t *ppos) in bm_entry_write() argument
645 size_t count, loff_t *ppos) in bm_register_write() argument
725 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument
729 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read()
733 size_t count, loff_t *ppos) in bm_status_write() argument
Ddrop_caches.c52 void *buffer, size_t *length, loff_t *ppos) in drop_caches_sysctl_handler() argument
56 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in drop_caches_sysctl_handler()
Dfile_table.c83 void *buffer, size_t *lenp, loff_t *ppos) in proc_nr_files() argument
86 return proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_nr_files()
90 void *buffer, size_t *lenp, loff_t *ppos) in proc_nr_files() argument
/fs/fuse/
Dcontrol.c35 size_t count, loff_t *ppos) in fuse_conn_abort_write() argument
48 size_t len, loff_t *ppos) in fuse_conn_waiting_read() argument
53 if (!*ppos) { in fuse_conn_waiting_read()
64 return simple_read_from_buffer(buf, len, ppos, tmp, size); in fuse_conn_waiting_read()
68 size_t len, loff_t *ppos, unsigned val) in fuse_conn_limit_read() argument
73 return simple_read_from_buffer(buf, len, ppos, tmp, size); in fuse_conn_limit_read()
77 size_t count, loff_t *ppos, unsigned *val, in fuse_conn_limit_write() argument
84 if (*ppos) in fuse_conn_limit_write()
104 loff_t *ppos) in fuse_conn_max_background_read() argument
116 return fuse_conn_limit_read(file, buf, len, ppos, val); in fuse_conn_max_background_read()
[all …]
/fs/debugfs/
Dfile.c30 size_t count, loff_t *ppos) in default_read_file() argument
36 size_t count, loff_t *ppos) in default_write_file() argument
241 loff_t *ppos),
242 ARGS(filp, buf, size, ppos));
246 loff_t *ppos),
247 ARGS(filp, buf, size, ppos));
375 size_t len, loff_t *ppos) in debugfs_attr_read() argument
383 ret = simple_attr_read(file, buf, len, ppos); in debugfs_attr_read()
390 size_t len, loff_t *ppos, bool is_signed) in debugfs_attr_write_xsigned() argument
399 ret = simple_attr_write_signed(file, buf, len, ppos); in debugfs_attr_write_xsigned()
[all …]
/fs/proc/
Dpage.c45 size_t count, loff_t *ppos) in kpagecount_read() argument
50 unsigned long src = *ppos; in kpagecount_read()
86 *ppos += (char __user *)out - buf; in kpagecount_read()
228 size_t count, loff_t *ppos) in kpageflags_read() argument
233 unsigned long src = *ppos; in kpageflags_read()
263 *ppos += (char __user *)out - buf; in kpageflags_read()
276 size_t count, loff_t *ppos) in kpagecgroup_read() argument
281 unsigned long src = *ppos; in kpagecgroup_read()
317 *ppos += (char __user *)out - buf; in kpagecgroup_read()
Dbase.c258 size_t count, loff_t *ppos) in get_mm_cmdline() argument
288 pos = *ppos; in get_mm_cmdline()
840 size_t count, loff_t *ppos, int write) in mem_rw() argument
843 unsigned long addr = *ppos; in mem_rw()
886 *ppos = addr; in mem_rw()
895 size_t count, loff_t *ppos) in mem_read() argument
897 return mem_rw(file, buf, count, ppos, 0); in mem_read()
901 size_t count, loff_t *ppos) in mem_write() argument
903 return mem_rw(file, (char __user*)buf, count, ppos, 1); in mem_write()
944 size_t count, loff_t *ppos) in environ_read() argument
[all …]
Dinode.c305 …e_read(struct proc_dir_entry *pde, struct file *file, char __user *buf, size_t count, loff_t *ppos) in pde_read() argument
311 return read(file, buf, count, ppos); in pde_read()
315 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read() argument
321 return pde_read(pde, file, buf, count, ppos); in proc_reg_read()
323 rv = pde_read(pde, file, buf, count, ppos); in proc_reg_read()
329 …(struct proc_dir_entry *pde, struct file *file, const char __user *buf, size_t count, loff_t *ppos) in pde_write() argument
335 return write(file, buf, count, ppos); in pde_write()
339 static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in proc_reg_write() argument
345 return pde_write(pde, file, buf, count, ppos); in proc_reg_write()
347 rv = pde_write(pde, file, buf, count, ppos); in proc_reg_write()
Dvmcore.c107 u64 *ppos, int userbuf, in read_from_oldmem() argument
117 offset = (unsigned long)(*ppos % PAGE_SIZE); in read_from_oldmem()
118 pfn = (unsigned long)(*ppos / PAGE_SIZE); in read_from_oldmem()
146 *ppos += nr_bytes; in read_from_oldmem()
174 ssize_t __weak elfcorehdr_read(char *buf, size_t count, u64 *ppos) in elfcorehdr_read() argument
176 return read_from_oldmem(buf, count, ppos, 0, false); in elfcorehdr_read()
182 ssize_t __weak elfcorehdr_read_notes(char *buf, size_t count, u64 *ppos) in elfcorehdr_read_notes() argument
184 return read_from_oldmem(buf, count, ppos, 0, mem_encrypt_active()); in elfcorehdr_read_notes()
/fs/xfs/
Dxfs_sysctl.c18 loff_t *ppos) in xfs_stats_clear_proc_handler() argument
22 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler()
38 loff_t *ppos) in xfs_panic_mask_proc_handler() argument
42 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler()
59 loff_t *ppos) in xfs_deprecated_dointvec_minmax() argument
66 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_deprecated_dointvec_minmax()
/fs/ocfs2/dlmfs/
Ddlmfs.c226 loff_t *ppos) in dlmfs_file_read() argument
233 return simple_read_from_buffer(buf, count, ppos, lvb, sizeof(lvb)); in dlmfs_file_read()
239 loff_t *ppos) in dlmfs_file_write() argument
246 inode->i_ino, count, *ppos); in dlmfs_file_write()
248 if (*ppos >= DLM_LVB_LEN) in dlmfs_file_write()
252 if (count > DLM_LVB_LEN - *ppos) in dlmfs_file_write()
253 count = DLM_LVB_LEN - *ppos; in dlmfs_file_write()
263 *ppos = *ppos + count; in dlmfs_file_write()
/fs/nfsd/
Dfault_inject.c30 size_t len, loff_t *ppos) in fault_inject_read() argument
35 loff_t pos = *ppos; in fault_inject_read()
42 return simple_read_from_buffer(buf, len, ppos, read_buf, size); in fault_inject_read()
46 size_t len, loff_t *ppos) in fault_inject_write() argument
/fs/ubifs/
Dlprops.c61 int ppos = (hpos - 1) / 2; in move_up_lpt_heap() local
63 val2 = get_heap_comp_val(heap->arr[ppos], cat); in move_up_lpt_heap()
67 heap->arr[ppos]->hpos = hpos; in move_up_lpt_heap()
68 heap->arr[hpos] = heap->arr[ppos]; in move_up_lpt_heap()
69 heap->arr[ppos] = lprops; in move_up_lpt_heap()
70 lprops->hpos = ppos; in move_up_lpt_heap()
71 hpos = ppos; in move_up_lpt_heap()
95 int ppos = (hpos - 1) / 2; in adjust_lpt_heap() local
97 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap()
101 heap->arr[ppos]->hpos = hpos; in adjust_lpt_heap()
[all …]
/fs/efivarfs/
Dfile.c16 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write() argument
67 size_t count, loff_t *ppos) in efivarfs_file_read() argument
101 size = simple_read_from_buffer(userbuf, count, ppos, in efivarfs_file_read()
/fs/pstore/
Dftrace.c68 size_t count, loff_t *ppos) in pstore_ftrace_knob_write() argument
105 size_t count, loff_t *ppos) in pstore_ftrace_knob_read() argument
109 return simple_read_from_buffer(buf, count, ppos, val, sizeof(val)); in pstore_ftrace_knob_read()
Dinode.c129 size_t count, loff_t *ppos) in pstore_file_read() argument
135 return seq_read(file, userbuf, count, ppos); in pstore_file_read()
136 return simple_read_from_buffer(userbuf, count, ppos, in pstore_file_read()
/fs/kernfs/
Dfile.c103 static void *kernfs_seq_start(struct seq_file *sf, loff_t *ppos) in kernfs_seq_start() argument
118 void *next = ops->seq_start(sf, ppos); in kernfs_seq_start()
128 return NULL + !*ppos; in kernfs_seq_start()
132 static void *kernfs_seq_next(struct seq_file *sf, void *v, loff_t *ppos) in kernfs_seq_next() argument
138 void *next = ops->seq_next(sf, v, ppos); in kernfs_seq_next()
148 ++*ppos; in kernfs_seq_next()
/fs/fscache/
Dmain.c54 void *buffer, size_t *lenp, loff_t *ppos) in fscache_max_active_sysctl() argument
60 ret = proc_dointvec(table, write, buffer, lenp, ppos); in fscache_max_active_sysctl()
/fs/cifs/
Dcifs_debug.c490 const char __user *buffer, size_t count, loff_t *ppos) in cifs_stats_proc_write() argument
649 size_t count, loff_t *ppos) \
786 size_t count, loff_t *ppos) in cifsFYI_proc_write() argument
825 const char __user *buffer, size_t count, loff_t *ppos) in cifs_linux_ext_proc_write() argument
856 const char __user *buffer, size_t count, loff_t *ppos) in cifs_lookup_cache_proc_write() argument
887 size_t count, loff_t *ppos) in traceSMB_proc_write() argument
938 const char __user *buffer, size_t count, loff_t *ppos) in cifs_security_flags_proc_write() argument
/fs/coda/
Dfile.c132 loff_t ppos; in coda_file_mmap() local
143 ppos = vma->vm_pgoff * PAGE_SIZE; in coda_file_mmap()
147 count, ppos, CODA_ACCESS_TYPE_MMAP); in coda_file_mmap()
/fs/orangefs/
Dorangefs-debugfs.c344 loff_t *ppos) in orangefs_debug_read() argument
360 read_ret = simple_read_from_buffer(ubuf, count, ppos, buf, sprintf_ret); in orangefs_debug_read()
375 loff_t *ppos) in orangefs_debug_write() argument
479 *ppos += count; in orangefs_debug_write()

123