/fs/ocfs2/dlm/ |
D | dlmfs.c | 185 loff_t *ppos) in dlmfs_file_read() argument 193 inode->i_ino, count, *ppos); in dlmfs_file_read() 195 if (*ppos >= i_size_read(inode)) in dlmfs_file_read() 205 if ((count + *ppos) > i_size_read(inode)) in dlmfs_file_read() 206 readlen = i_size_read(inode) - *ppos; in dlmfs_file_read() 208 readlen = count - *ppos; in dlmfs_file_read() 220 *ppos = *ppos + readlen; in dlmfs_file_read() 229 loff_t *ppos) in dlmfs_file_write() argument 237 inode->i_ino, count, *ppos); in dlmfs_file_write() 239 if (*ppos >= i_size_read(inode)) in dlmfs_file_write() [all …]
|
/fs/ |
D | splice.c | 270 __generic_file_splice_read(struct file *in, loff_t *ppos, in __generic_file_splice_read() argument 290 index = *ppos >> PAGE_CACHE_SHIFT; in __generic_file_splice_read() 291 loff = *ppos & ~PAGE_CACHE_MASK; in __generic_file_splice_read() 347 index = *ppos >> PAGE_CACHE_SHIFT; in __generic_file_splice_read() 491 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read() argument 499 if (unlikely(*ppos >= isize)) in generic_file_splice_read() 502 left = isize - *ppos; in generic_file_splice_read() 506 ret = __generic_file_splice_read(in, ppos, pipe, len, flags); in generic_file_splice_read() 508 *ppos += ret; in generic_file_splice_read() 722 loff_t *ppos, size_t len, unsigned int flags, in splice_from_pipe() argument [all …]
|
D | read_write.c | 215 int rw_verify_area(int read_write, struct file *file, loff_t *ppos, size_t count) in rw_verify_area() argument 224 pos = *ppos; in rw_verify_area() 252 ssize_t do_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in do_sync_read() argument 259 kiocb.ki_pos = *ppos; in do_sync_read() 271 *ppos = kiocb.ki_pos; in do_sync_read() 307 ssize_t do_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in do_sync_write() argument 314 kiocb.ki_pos = *ppos; in do_sync_write() 326 *ppos = kiocb.ki_pos; in do_sync_write() 487 unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn) in do_sync_readv_writev() argument 493 kiocb.ki_pos = *ppos; in do_sync_readv_writev() [all …]
|
D | libfs.c | 179 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir() argument 524 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer() argument 527 loff_t pos = *ppos; in simple_read_from_buffer() 536 *ppos = pos + count; in simple_read_from_buffer() 554 ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, in memory_read_from_buffer() argument 557 loff_t pos = *ppos; in memory_read_from_buffer() 566 *ppos = pos + count; in memory_read_from_buffer() 666 size_t len, loff_t *ppos) in simple_attr_read() argument 681 if (*ppos) { /* continued read */ in simple_attr_read() 693 ret = simple_read_from_buffer(buf, len, ppos, attr->get_buf, size); in simple_attr_read() [all …]
|
D | read_write.h | 12 unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn); 14 unsigned long nr_segs, loff_t *ppos, io_fn_t fn);
|
D | bad_inode.c | 25 size_t size, loff_t *ppos) in bad_file_read() argument 31 size_t siz, loff_t *ppos) in bad_file_write() argument 141 struct file *out, loff_t *ppos, size_t len, in bad_file_splice_write() argument 147 static ssize_t bad_file_splice_read(struct file *in, loff_t *ppos, in bad_file_splice_read() argument
|
D | drop_caches.c | 66 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) in drop_caches_sysctl_handler() argument 68 proc_dointvec_minmax(table, write, file, buffer, length, ppos); in drop_caches_sysctl_handler()
|
D | seq_file.c | 132 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument 144 if (unlikely(*ppos != m->read_pos)) { in seq_read() 145 m->read_pos = *ppos; in seq_read() 146 while ((err = traverse(m, *ppos)) == -EAGAIN) in seq_read() 258 *ppos += copied; in seq_read() 666 struct list_head *seq_list_next(void *v, struct list_head *head, loff_t *ppos) in seq_list_next() argument 671 ++*ppos; in seq_list_next()
|
D | binfmt_misc.c | 533 bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument 544 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read() 551 size_t count, loff_t *ppos) in bm_entry_write() argument 583 size_t count, loff_t *ppos) in bm_register_write() argument 650 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument 654 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read() 658 size_t count, loff_t *ppos) in bm_status_write() argument
|
/fs/proc/ |
D | page.c | 20 size_t count, loff_t *ppos) in kpagecount_read() argument 24 unsigned long src = *ppos; in kpagecount_read() 52 *ppos += (char __user *)out - buf; in kpagecount_read() 86 size_t count, loff_t *ppos) in kpageflags_read() argument 90 unsigned long src = *ppos; in kpageflags_read() 130 *ppos += (char __user *)out - buf; in kpageflags_read()
|
D | base.c | 730 size_t count, loff_t *ppos) in proc_info_read() argument 751 length = simple_read_from_buffer(buf, count, ppos, (char *)page, length); in proc_info_read() 809 size_t count, loff_t *ppos) in mem_read() argument 813 unsigned long src = *ppos; in mem_read() 862 *ppos = src; in mem_read() 879 size_t count, loff_t *ppos) in mem_write() argument 884 unsigned long dst = *ppos; in mem_write() 918 *ppos = dst; in mem_write() 951 size_t count, loff_t *ppos) in environ_read() argument 955 unsigned long src = *ppos; in environ_read() [all …]
|
D | proc_sysctl.c | 130 size_t count, loff_t *ppos, int write) in proc_sys_call_handler() argument 156 error = table->proc_handler(table, write, filp, buf, &res, ppos); in proc_sys_call_handler() 166 size_t count, loff_t *ppos) in proc_sys_read() argument 168 return proc_sys_call_handler(filp, (void __user *)buf, count, ppos, 0); in proc_sys_read() 172 size_t count, loff_t *ppos) in proc_sys_write() argument 174 return proc_sys_call_handler(filp, (void __user *)buf, count, ppos, 1); in proc_sys_write()
|
D | generic.c | 41 loff_t *ppos) in proc_file_read() argument 57 pos = *ppos; in proc_file_read() 119 n = dp->read_proc(page, &start, *ppos, in proc_file_read() 138 n -= *ppos; in proc_file_read() 143 start = page + *ppos; in proc_file_read() 176 *ppos += start < page ? (unsigned long)start : n; in proc_file_read() 187 size_t count, loff_t *ppos) in proc_file_write() argument
|
/fs/debugfs/ |
D | file.c | 23 size_t count, loff_t *ppos) in default_read_file() argument 29 size_t count, loff_t *ppos) in default_write_file() argument 330 size_t count, loff_t *ppos) in read_file_bool() argument 341 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in read_file_bool() 345 size_t count, loff_t *ppos) in write_file_bool() argument 409 size_t count, loff_t *ppos) in read_file_blob() argument 412 return simple_read_from_buffer(user_buf, count, ppos, blob->data, in read_file_blob()
|
/fs/xfs/linux-2.6/ |
D | xfs_lrw.c | 272 loff_t *ppos, in xfs_splice_read() argument 291 error = XFS_SEND_DATA(mp, DM_EVENT_READ, ip, *ppos, count, in xfs_splice_read() 299 pipe, count, *ppos, ioflags); in xfs_splice_read() 300 ret = generic_file_splice_read(infilp, ppos, pipe, count, flags); in xfs_splice_read() 313 loff_t *ppos, in xfs_splice_write() argument 333 error = XFS_SEND_DATA(mp, DM_EVENT_WRITE, ip, *ppos, count, in xfs_splice_write() 341 new_size = *ppos + count; in xfs_splice_write() 349 pipe, count, *ppos, ioflags); in xfs_splice_write() 350 ret = generic_file_splice_write(pipe, outfilp, ppos, count, flags); in xfs_splice_write() 355 if (unlikely(ret < 0 && ret != -EFAULT && *ppos > isize)) in xfs_splice_write() [all …]
|
D | xfs_file.c | 89 loff_t *ppos, in xfs_file_splice_read() argument 100 infilp, ppos, pipe, len, flags, ioflags); in xfs_file_splice_read() 107 loff_t *ppos, in xfs_file_splice_write() argument 117 pipe, outfilp, ppos, len, flags, ioflags); in xfs_file_splice_write()
|
/fs/reiserfs/ |
D | file.c | 255 loff_t * ppos /* pointer to position in file that we start writing at. Should be updated to in reiserfs_file_write() argument 273 *ppos + count > MAX_NON_LFS) { in reiserfs_file_write() 274 if (*ppos >= MAX_NON_LFS) { in reiserfs_file_write() 277 if (count > MAX_NON_LFS - (unsigned long)*ppos) in reiserfs_file_write() 278 count = MAX_NON_LFS - (unsigned long)*ppos; in reiserfs_file_write() 281 return do_sync_write(file, buf, count, ppos); in reiserfs_file_write()
|
/fs/coda/ |
D | file.c | 30 coda_file_read(struct file *coda_file, char __user *buf, size_t count, loff_t *ppos) in coda_file_read() argument 42 return host_file->f_op->read(host_file, buf, count, ppos); in coda_file_read() 46 coda_file_splice_read(struct file *coda_file, loff_t *ppos, in coda_file_splice_read() argument 60 return host_file->f_op->splice_read(host_file, ppos, pipe, count,flags); in coda_file_splice_read() 64 coda_file_write(struct file *coda_file, const char __user *buf, size_t count, loff_t *ppos) in coda_file_write() argument 81 ret = host_file->f_op->write(host_file, buf, count, ppos); in coda_file_write()
|
/fs/ncpfs/ |
D | file.c | 103 ncp_file_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in ncp_file_read() argument 120 pos = *ppos; in ncp_file_read() 172 *ppos = pos; in ncp_file_read() 184 ncp_file_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in ncp_file_write() argument 200 pos = *ppos; in ncp_file_write() 266 *ppos = pos; in ncp_file_write()
|
/fs/hppfs/ |
D | hppfs.c | 191 loff_t *ppos, int is_user) in read_proc() argument 206 if (ppos) in read_proc() 207 *ppos = file->f_pos; in read_proc() 249 loff_t *ppos) in hppfs_read() argument 259 if (*ppos >= hppfs->len) in hppfs_read() 263 off = *ppos; in hppfs_read() 273 *ppos += count - rem; in hppfs_read() 277 err = os_seek_file(hppfs->host_fd, *ppos); in hppfs_read() 285 *ppos += count; in hppfs_read() 287 else count = read_proc(hppfs->proc_file, buf, count, ppos, 1); in hppfs_read() [all …]
|
/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() 198 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in configfs_write_file() argument 208 *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/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()
|
/fs/cifs/ |
D | cifs_debug.c | 230 const char __user *buffer, size_t count, loff_t *ppos) in cifs_stats_proc_write() argument 459 size_t count, loff_t *ppos) in cifsFYI_proc_write() argument 498 const char __user *buffer, size_t count, loff_t *ppos) in cifs_oplock_proc_write() argument 535 const char __user *buffer, size_t count, loff_t *ppos) in cifs_experimental_proc_write() argument 574 const char __user *buffer, size_t count, loff_t *ppos) in cifs_linux_ext_proc_write() argument 611 const char __user *buffer, size_t count, loff_t *ppos) in cifs_lookup_cache_proc_write() argument 648 size_t count, loff_t *ppos) in traceSMB_proc_write() argument 685 const char __user *buffer, size_t count, loff_t *ppos) in cifs_multiuser_mount_proc_write() argument 722 const char __user *buffer, size_t count, loff_t *ppos) in cifs_security_flags_proc_write() argument
|
/fs/sysfs/ |
D | file.c | 135 sysfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) in sysfs_read_file() argument 141 if (buffer->needs_read_fill || *ppos == 0) { in sysfs_read_file() 147 __func__, count, *ppos, buffer->page); in sysfs_read_file() 148 retval = simple_read_from_buffer(buf, count, ppos, buffer->page, in sysfs_read_file() 235 sysfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in sysfs_write_file() argument 245 *ppos += len; in sysfs_write_file()
|