Lines Matching refs:ppos
365 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()
488 *ppos = kiocb.ki_pos; in new_sync_write()
585 loff_t pos, *ppos = file_ppos(f.file); in ksys_read() local
586 if (ppos) { in ksys_read()
587 pos = *ppos; in ksys_read()
588 ppos = &pos; in ksys_read()
590 ret = vfs_read(f.file, buf, count, ppos); in ksys_read()
591 if (ret >= 0 && ppos) in ksys_read()
609 loff_t pos, *ppos = file_ppos(f.file); in ksys_write() local
610 if (ppos) { in ksys_write()
611 pos = *ppos; in ksys_write()
612 ppos = &pos; in ksys_write()
614 ret = vfs_write(f.file, buf, count, ppos); in ksys_write()
615 if (ret >= 0 && ppos) in ksys_write()
682 loff_t *ppos, int type, rwf_t flags) in do_iter_readv_writev() argument
691 kiocb.ki_pos = (ppos ? *ppos : 0); in do_iter_readv_writev()
698 if (ppos) in do_iter_readv_writev()
699 *ppos = kiocb.ki_pos; in do_iter_readv_writev()
705 loff_t *ppos, int type, rwf_t flags) in do_loop_readv_writev() argument
718 iovec.iov_len, ppos); in do_loop_readv_writev()
721 iovec.iov_len, ppos); in do_loop_readv_writev()
945 ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos, in vfs_iter_read() argument
950 return do_iter_read(file, iter, ppos, flags); in vfs_iter_read()
981 ssize_t vfs_iter_write(struct file *file, struct iov_iter *iter, loff_t *ppos, in vfs_iter_write() argument
986 return do_iter_write(file, iter, ppos, flags); in vfs_iter_write()
1032 loff_t pos, *ppos = file_ppos(f.file); in do_readv() local
1033 if (ppos) { in do_readv()
1034 pos = *ppos; in do_readv()
1035 ppos = &pos; in do_readv()
1037 ret = vfs_readv(f.file, vec, vlen, ppos, flags); in do_readv()
1038 if (ret >= 0 && ppos) in do_readv()
1056 loff_t pos, *ppos = file_ppos(f.file); in do_writev() local
1057 if (ppos) { in do_writev()
1058 pos = *ppos; in do_writev()
1059 ppos = &pos; in do_writev()
1061 ret = vfs_writev(f.file, vec, vlen, ppos, flags); in do_writev()
1062 if (ret >= 0 && ppos) in do_writev()
1396 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument
1416 if (!ppos) { in do_sendfile()
1419 pos = *ppos; in do_sendfile()
1476 if (ppos) in do_sendfile()
1477 *ppos = pos; in do_sendfile()