Home
last modified time | relevance | path

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

123

/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/
Dread_write.c365 int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) in rw_verify_area() argument
378 if (ppos) { in rw_verify_area()
379 loff_t pos = *ppos; in rw_verify_area()
403 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read() argument
411 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read()
416 if (ppos) in new_sync_read()
417 *ppos = kiocb.ki_pos; in new_sync_read()
474 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in new_sync_write() argument
482 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_write()
487 if (ret > 0 && ppos) in new_sync_write()
[all …]
Dsplice.c295 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read() argument
306 kiocb.ki_pos = *ppos; in generic_file_splice_read()
309 *ppos = kiocb.ki_pos; in generic_file_splice_read()
365 static ssize_t default_file_splice_read(struct file *in, loff_t *ppos, in default_file_splice_read() argument
384 offset = *ppos & ~PAGE_MASK; in default_file_splice_read()
414 res = kernel_readv(in, vec, nr_pages, *ppos); in default_file_splice_read()
417 *ppos += res; in default_file_splice_read()
647 loff_t *ppos, size_t len, unsigned int flags, in splice_from_pipe() argument
654 .pos = *ppos, in splice_from_pipe()
681 loff_t *ppos, size_t len, unsigned int flags) in iter_file_splice_write() argument
[all …]
Dseq_file.c153 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument
180 if (*ppos == 0) { in seq_read()
187 if (unlikely(*ppos != m->read_pos)) { in seq_read()
188 while ((err = traverse(m, *ppos)) == -EAGAIN) in seq_read()
198 m->read_pos = *ppos; in seq_read()
287 *ppos += copied; in seq_read()
917 struct list_head *seq_list_next(void *v, struct list_head *head, loff_t *ppos) in seq_list_next() argument
922 ++*ppos; in seq_list_next()
971 loff_t *ppos) in seq_hlist_next() argument
975 ++*ppos; in seq_hlist_next()
[all …]
Dlibfs.c221 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir() argument
645 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer() argument
648 loff_t pos = *ppos; in simple_read_from_buffer()
661 *ppos = pos + count; in simple_read_from_buffer()
680 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer() argument
683 loff_t pos = *ppos; in simple_write_to_buffer()
696 *ppos = pos + count; in simple_write_to_buffer()
715 ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, in memory_read_from_buffer() argument
718 loff_t pos = *ppos; in memory_read_from_buffer()
727 *ppos = pos + count; in memory_read_from_buffer()
[all …]
Dbinfmt_misc.c632 bm_entry_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument
644 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read()
651 size_t count, loff_t *ppos) in bm_entry_write() argument
692 size_t count, loff_t *ppos) in bm_register_write() argument
773 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument
777 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read()
781 size_t count, loff_t *ppos) in bm_status_write() argument
Ddrop_caches.c50 void __user *buffer, size_t *length, loff_t *ppos) in drop_caches_sysctl_handler() argument
54 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in drop_caches_sysctl_handler()
Dfile_table.c83 void __user *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 __user *buffer, size_t *lenp, loff_t *ppos) in proc_nr_files() argument
/fs/ocfs2/dlmfs/
Ddlmfs.c227 loff_t *ppos) in dlmfs_file_read() argument
235 inode->i_ino, count, *ppos); in dlmfs_file_read()
237 if (*ppos >= i_size_read(inode)) in dlmfs_file_read()
247 if ((count + *ppos) > i_size_read(inode)) in dlmfs_file_read()
248 readlen = i_size_read(inode) - *ppos; in dlmfs_file_read()
266 *ppos = *ppos + readlen; in dlmfs_file_read()
275 loff_t *ppos) in dlmfs_file_write() argument
283 inode->i_ino, count, *ppos); in dlmfs_file_write()
285 if (*ppos >= i_size_read(inode)) in dlmfs_file_write()
295 if ((count + *ppos) > i_size_read(inode)) in dlmfs_file_write()
[all …]
/fs/configfs/
Dfile.c102 configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) in configfs_read_file() argument
114 __func__, count, *ppos, buffer->page); in configfs_read_file()
115 retval = simple_read_from_buffer(buf, count, ppos, buffer->page, in configfs_read_file()
144 size_t count, loff_t *ppos) in configfs_read_bin_file() argument
205 retval = simple_read_from_buffer(buf, count, ppos, buffer->bin_buffer, in configfs_read_bin_file()
275 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in configfs_write_file() argument
285 *ppos += len; in configfs_write_file()
305 size_t count, loff_t *ppos) in configfs_write_bin_file() argument
321 if (*ppos + count > buffer->bin_buffer_size) { in configfs_write_bin_file()
324 *ppos + count > buffer->cb_max_size) { in configfs_write_bin_file()
[all …]
/fs/proc/
Dpage.c30 size_t count, loff_t *ppos) in kpagecount_read() argument
34 unsigned long src = *ppos; in kpagecount_read()
68 *ppos += (char __user *)out - buf; in kpagecount_read()
207 size_t count, loff_t *ppos) in kpageflags_read() argument
211 unsigned long src = *ppos; in kpageflags_read()
239 *ppos += (char __user *)out - buf; in kpageflags_read()
252 size_t count, loff_t *ppos) in kpagecgroup_read() argument
256 unsigned long src = *ppos; in kpagecgroup_read()
290 *ppos += (char __user *)out - buf; in kpagecgroup_read()
Dbase.c255 size_t count, loff_t *ppos) in get_mm_cmdline() argument
285 pos = *ppos; in get_mm_cmdline()
818 size_t count, loff_t *ppos, int write) in mem_rw() argument
821 unsigned long addr = *ppos; in mem_rw()
864 *ppos = addr; in mem_rw()
873 size_t count, loff_t *ppos) in mem_read() argument
875 return mem_rw(file, buf, count, ppos, 0); in mem_read()
879 size_t count, loff_t *ppos) in mem_write() argument
881 return mem_rw(file, (char __user*)buf, count, ppos, 1); in mem_write()
922 size_t count, loff_t *ppos) in environ_read() argument
[all …]
Dinode.c214 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read() argument
223 rv = read(file, buf, count, ppos); in proc_reg_read()
229 static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in proc_reg_write() argument
238 rv = write(file, buf, count, ppos); in proc_reg_write()
Dvmcore.c108 u64 *ppos, int userbuf, in read_from_oldmem() argument
118 offset = (unsigned long)(*ppos % PAGE_SIZE); in read_from_oldmem()
119 pfn = (unsigned long)(*ppos / PAGE_SIZE); in read_from_oldmem()
143 *ppos += nr_bytes; in read_from_oldmem()
171 ssize_t __weak elfcorehdr_read(char *buf, size_t count, u64 *ppos) in elfcorehdr_read() argument
173 return read_from_oldmem(buf, count, ppos, 0, false); in elfcorehdr_read()
179 ssize_t __weak elfcorehdr_read_notes(char *buf, size_t count, u64 *ppos) in elfcorehdr_read_notes() argument
181 return read_from_oldmem(buf, count, ppos, 0, mem_encrypt_active()); in elfcorehdr_read_notes()
/fs/debugfs/
Dfile.c29 size_t count, loff_t *ppos) in default_read_file() argument
35 size_t count, loff_t *ppos) in default_write_file() argument
225 loff_t *ppos),
226 ARGS(filp, buf, size, ppos));
230 loff_t *ppos),
231 ARGS(filp, buf, size, ppos));
352 size_t len, loff_t *ppos) in debugfs_attr_read() argument
360 ret = simple_attr_read(file, buf, len, ppos); in debugfs_attr_read()
367 size_t len, loff_t *ppos) in debugfs_attr_write() argument
375 ret = simple_attr_write(file, buf, len, ppos); in debugfs_attr_write()
[all …]
/fs/kernfs/
Dfile.c102 static void *kernfs_seq_start(struct seq_file *sf, loff_t *ppos) in kernfs_seq_start() argument
117 void *next = ops->seq_start(sf, ppos); in kernfs_seq_start()
127 return NULL + !*ppos; in kernfs_seq_start()
131 static void *kernfs_seq_next(struct seq_file *sf, void *v, loff_t *ppos) in kernfs_seq_next() argument
137 void *next = ops->seq_next(sf, v, ppos); in kernfs_seq_next()
147 ++*ppos; in kernfs_seq_next()
185 loff_t *ppos) in kernfs_file_direct_read() argument
213 len = ops->read(of, buf, len, *ppos); in kernfs_file_direct_read()
228 *ppos += len; in kernfs_file_direct_read()
246 size_t count, loff_t *ppos) in kernfs_fop_read() argument
[all …]
/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/pstore/
Dftrace.c61 size_t count, loff_t *ppos) in pstore_ftrace_knob_write() argument
98 size_t count, loff_t *ppos) in pstore_ftrace_knob_read() argument
102 return simple_read_from_buffer(buf, count, ppos, val, sizeof(val)); in pstore_ftrace_knob_read()
/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()
/fs/efivarfs/
Dfile.c16 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write() argument
66 size_t count, loff_t *ppos) in efivarfs_file_read() argument
102 size = simple_read_from_buffer(userbuf, count, ppos, in efivarfs_file_read()
/fs/sdcardfs/
Dfile.c27 size_t count, loff_t *ppos) in sdcardfs_read() argument
50 err = vfs_read(lower_file, buf, count, ppos); in sdcardfs_read()
60 size_t count, loff_t *ppos) in sdcardfs_write() argument
74 err = vfs_write(lower_file, buf, count, ppos); in sdcardfs_write()
/fs/fscache/
Dmain.c55 size_t *lenp, loff_t *ppos) in fscache_max_active_sysctl() argument
61 ret = proc_dointvec(table, write, buffer, lenp, ppos); in fscache_max_active_sysctl()
/fs/cifs/
Dcifs_debug.c432 const char __user *buffer, size_t count, loff_t *ppos) in cifs_stats_proc_write() argument
593 size_t count, loff_t *ppos) \
726 size_t count, loff_t *ppos) in cifsFYI_proc_write() argument
765 const char __user *buffer, size_t count, loff_t *ppos) in cifs_linux_ext_proc_write() argument
796 const char __user *buffer, size_t count, loff_t *ppos) in cifs_lookup_cache_proc_write() argument
827 size_t count, loff_t *ppos) in traceSMB_proc_write() argument
886 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()

123