/fs/fuse/ |
D | control.c | 34 size_t count, loff_t *ppos) in fuse_conn_abort_write() argument 45 size_t len, loff_t *ppos) in fuse_conn_waiting_read() argument 50 if (!*ppos) { in fuse_conn_waiting_read() 61 return simple_read_from_buffer(buf, len, ppos, tmp, size); in fuse_conn_waiting_read() 65 size_t len, loff_t *ppos, unsigned val) in fuse_conn_limit_read() argument 70 return simple_read_from_buffer(buf, len, ppos, tmp, size); in fuse_conn_limit_read() 74 size_t count, loff_t *ppos, unsigned *val, in fuse_conn_limit_write() argument 81 if (*ppos) in fuse_conn_limit_write() 101 loff_t *ppos) in fuse_conn_max_background_read() argument 113 return fuse_conn_limit_read(file, buf, len, ppos, val); in fuse_conn_max_background_read() [all …]
|
/fs/ocfs2/dlmfs/ |
D | dlmfs.c | 242 loff_t *ppos) in dlmfs_file_read() argument 250 inode->i_ino, count, *ppos); in dlmfs_file_read() 252 if (*ppos >= i_size_read(inode)) in dlmfs_file_read() 262 if ((count + *ppos) > i_size_read(inode)) in dlmfs_file_read() 263 readlen = i_size_read(inode) - *ppos; in dlmfs_file_read() 281 *ppos = *ppos + readlen; in dlmfs_file_read() 290 loff_t *ppos) in dlmfs_file_write() argument 298 inode->i_ino, count, *ppos); in dlmfs_file_write() 300 if (*ppos >= i_size_read(inode)) in dlmfs_file_write() 310 if ((count + *ppos) > i_size_read(inode)) in dlmfs_file_write() [all …]
|
/fs/proc/ |
D | page.c | 29 size_t count, loff_t *ppos) in kpagecount_read() argument 33 unsigned long src = *ppos; in kpagecount_read() 65 *ppos += (char __user *)out - buf; in kpagecount_read() 197 size_t count, loff_t *ppos) in kpageflags_read() argument 201 unsigned long src = *ppos; in kpageflags_read() 228 *ppos += (char __user *)out - buf; in kpageflags_read() 241 size_t count, loff_t *ppos) in kpagecgroup_read() argument 245 unsigned long src = *ppos; in kpagecgroup_read() 278 *ppos += (char __user *)out - buf; in kpagecgroup_read()
|
D | base.c | 866 size_t count, loff_t *ppos, int write) in mem_rw() argument 869 unsigned long addr = *ppos; in mem_rw() 915 *ppos = addr; in mem_rw() 924 size_t count, loff_t *ppos) in mem_read() argument 926 return mem_rw(file, buf, count, ppos, 0); in mem_read() 930 size_t count, loff_t *ppos) in mem_write() argument 932 return mem_rw(file, (char __user*)buf, count, ppos, 1); in mem_write() 973 size_t count, loff_t *ppos) in environ_read() argument 976 unsigned long src = *ppos; in environ_read() 1027 *ppos = src; in environ_read() [all …]
|
D | vmcore.c | 89 u64 *ppos, int userbuf) in read_from_oldmem() argument 98 offset = (unsigned long)(*ppos % PAGE_SIZE); in read_from_oldmem() 99 pfn = (unsigned long)(*ppos / PAGE_SIZE); in read_from_oldmem() 121 *ppos += nr_bytes; in read_from_oldmem() 149 ssize_t __weak elfcorehdr_read(char *buf, size_t count, u64 *ppos) in elfcorehdr_read() argument 151 return read_from_oldmem(buf, count, ppos, 0); in elfcorehdr_read() 157 ssize_t __weak elfcorehdr_read_notes(char *buf, size_t count, u64 *ppos) in elfcorehdr_read_notes() argument 159 return read_from_oldmem(buf, count, ppos, 0); in elfcorehdr_read_notes()
|
D | inode.c | 194 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read() argument 202 rv = read(file, buf, count, ppos); 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() argument 216 rv = write(file, buf, count, ppos); in proc_reg_write()
|
/fs/ |
D | splice.c | 308 __generic_file_splice_read(struct file *in, loff_t *ppos, in __generic_file_splice_read() argument 332 index = *ppos >> PAGE_CACHE_SHIFT; in __generic_file_splice_read() 333 loff = *ppos & ~PAGE_CACHE_MASK; in __generic_file_splice_read() 389 index = *ppos >> PAGE_CACHE_SHIFT; in __generic_file_splice_read() 524 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read() argument 532 return default_file_splice_read(in, ppos, pipe, len, flags); in generic_file_splice_read() 535 if (unlikely(*ppos >= isize)) in generic_file_splice_read() 538 left = isize - *ppos; in generic_file_splice_read() 542 ret = __generic_file_splice_read(in, ppos, pipe, len, flags); in generic_file_splice_read() 544 *ppos += ret; in generic_file_splice_read() [all …]
|
D | read_write.c | 332 ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos) in vfs_iter_read() argument 341 kiocb.ki_pos = *ppos; in vfs_iter_read() 347 *ppos = kiocb.ki_pos; in vfs_iter_read() 352 ssize_t vfs_iter_write(struct file *file, struct iov_iter *iter, loff_t *ppos) in vfs_iter_write() argument 361 kiocb.ki_pos = *ppos; in vfs_iter_write() 367 *ppos = kiocb.ki_pos; in vfs_iter_write() 379 int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) in rw_verify_area() argument 388 pos = *ppos; in rw_verify_area() 413 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read() argument 421 kiocb.ki_pos = *ppos; in new_sync_read() [all …]
|
D | libfs.c | 182 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir() argument 585 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer() argument 588 loff_t pos = *ppos; in simple_read_from_buffer() 601 *ppos = pos + count; 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() argument 623 loff_t pos = *ppos; in simple_write_to_buffer() 636 *ppos = pos + count; in simple_write_to_buffer() 655 ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, in memory_read_from_buffer() argument 658 loff_t pos = *ppos; in memory_read_from_buffer() 667 *ppos = pos + count; in memory_read_from_buffer() [all …]
|
D | seq_file.c | 173 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument 198 if (unlikely(*ppos != m->read_pos)) { in seq_read() 199 while ((err = traverse(m, *ppos)) == -EAGAIN) in seq_read() 209 m->read_pos = *ppos; in seq_read() 303 *ppos += copied; in seq_read() 829 struct list_head *seq_list_next(void *v, struct list_head *head, loff_t *ppos) in seq_list_next() argument 834 ++*ppos; in seq_list_next() 883 loff_t *ppos) in seq_hlist_next() argument 887 ++*ppos; in seq_hlist_next() 954 loff_t *ppos) in seq_hlist_next_rcu() argument [all …]
|
D | binfmt_misc.c | 610 bm_entry_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument 622 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read() 629 size_t count, loff_t *ppos) in bm_entry_write() argument 670 size_t count, loff_t *ppos) in bm_register_write() argument 738 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument 742 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read() 746 size_t count, loff_t *ppos) in bm_status_write() argument
|
D | drop_caches.c | 49 void __user *buffer, size_t *length, loff_t *ppos) in drop_caches_sysctl_handler() argument 53 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in drop_caches_sysctl_handler()
|
D | file_table.c | 80 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nr_files() argument 83 return proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_nr_files() 87 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nr_files() argument
|
/fs/kernfs/ |
D | file.c | 103 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() 186 loff_t *ppos) in kernfs_file_direct_read() argument 213 len = ops->read(of, buf, len, *ppos); in kernfs_file_direct_read() 225 *ppos += len; in kernfs_file_direct_read() 244 size_t count, loff_t *ppos) in kernfs_fop_read() argument [all …]
|
/fs/nfsd/ |
D | fault_inject.c | 28 size_t len, loff_t *ppos) in fault_inject_read() argument 33 loff_t pos = *ppos; in fault_inject_read() 40 return simple_read_from_buffer(buf, len, ppos, read_buf, size); in fault_inject_read() 44 size_t len, loff_t *ppos) in fault_inject_write() argument
|
/fs/debugfs/ |
D | file.c | 27 size_t count, loff_t *ppos) in default_read_file() argument 33 size_t count, loff_t *ppos) in default_write_file() argument 459 size_t count, loff_t *ppos) in debugfs_read_file_bool() argument 470 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in debugfs_read_file_bool() 475 size_t count, loff_t *ppos) in debugfs_write_file_bool() argument 546 size_t count, loff_t *ppos) in read_file_blob() argument 549 return simple_read_from_buffer(user_buf, count, ppos, blob->data, in read_file_blob() 638 loff_t *ppos) in u32_array_read() argument 642 return simple_read_from_buffer(buf, len, ppos, in u32_array_read()
|
/fs/configfs/ |
D | file.c | 107 configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) in configfs_read_file() argument 118 __func__, count, *ppos, buffer->page); in configfs_read_file() 119 retval = simple_read_from_buffer(buf, count, ppos, buffer->page, in configfs_read_file() 197 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in configfs_write_file() argument 207 *ppos += len; in configfs_write_file()
|
/fs/ubifs/ |
D | lprops.c | 73 int ppos = (hpos - 1) / 2; in move_up_lpt_heap() local 75 val2 = get_heap_comp_val(heap->arr[ppos], cat); in move_up_lpt_heap() 79 heap->arr[ppos]->hpos = hpos; in move_up_lpt_heap() 80 heap->arr[hpos] = heap->arr[ppos]; in move_up_lpt_heap() 81 heap->arr[ppos] = lprops; in move_up_lpt_heap() 82 lprops->hpos = ppos; in move_up_lpt_heap() 83 hpos = ppos; in move_up_lpt_heap() 107 int ppos = (hpos - 1) / 2; in adjust_lpt_heap() local 109 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap() 113 heap->arr[ppos]->hpos = hpos; in adjust_lpt_heap() [all …]
|
/fs/pstore/ |
D | ftrace.c | 60 size_t count, loff_t *ppos) in pstore_ftrace_knob_write() argument 94 size_t count, loff_t *ppos) in pstore_ftrace_knob_read() argument 98 return simple_read_from_buffer(buf, count, ppos, val, sizeof(val)); in pstore_ftrace_knob_read()
|
D | inode.c | 137 size_t count, loff_t *ppos) in pstore_file_read() argument 143 return seq_read(file, userbuf, count, ppos); in pstore_file_read() 144 return simple_read_from_buffer(userbuf, count, ppos, ps->data, ps->size); in pstore_file_read()
|
/fs/xfs/ |
D | xfs_sysctl.c | 33 loff_t *ppos) in xfs_stats_clear_proc_handler() argument 37 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler() 53 loff_t *ppos) in xfs_panic_mask_proc_handler() argument 57 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler()
|
/fs/efivarfs/ |
D | file.c | 18 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write() argument 68 size_t count, loff_t *ppos) in efivarfs_file_read() argument 99 size = simple_read_from_buffer(userbuf, count, ppos, in efivarfs_file_read()
|
/fs/cifs/ |
D | cifs_debug.c | 273 const char __user *buffer, size_t count, loff_t *ppos) in cifs_stats_proc_write() argument 460 size_t count, loff_t *ppos) in cifsFYI_proc_write() argument 498 const char __user *buffer, size_t count, loff_t *ppos) in cifs_linux_ext_proc_write() argument 530 const char __user *buffer, size_t count, loff_t *ppos) in cifs_lookup_cache_proc_write() argument 562 size_t count, loff_t *ppos) in traceSMB_proc_write() argument 622 const char __user *buffer, size_t count, loff_t *ppos) in cifs_security_flags_proc_write() argument
|
/fs/fscache/ |
D | main.c | 58 size_t *lenp, loff_t *ppos) in fscache_max_active_sysctl() argument 64 ret = proc_dointvec(table, write, buffer, lenp, ppos); in fscache_max_active_sysctl()
|
/fs/sdcardfs/ |
D | file.c | 27 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()
|