Lines Matching refs:retval
108 loff_t retval; in default_llseek() local
117 retval = file->f_pos; in default_llseek()
122 retval = -EINVAL; in default_llseek()
128 retval = offset; in default_llseek()
132 return retval; in default_llseek()
152 off_t retval; in SYSCALL_DEFINE3() local
156 retval = -EBADF; in SYSCALL_DEFINE3()
161 retval = -EINVAL; in SYSCALL_DEFINE3()
164 retval = res; in SYSCALL_DEFINE3()
165 if (res != (loff_t)retval) in SYSCALL_DEFINE3()
166 retval = -EOVERFLOW; /* LFS: should only happen on 32 bit platforms */ in SYSCALL_DEFINE3()
170 return retval; in SYSCALL_DEFINE3()
178 int retval; in SYSCALL_DEFINE5() local
183 retval = -EBADF; in SYSCALL_DEFINE5()
188 retval = -EINVAL; in SYSCALL_DEFINE5()
195 retval = (int)offset; in SYSCALL_DEFINE5()
197 retval = -EFAULT; in SYSCALL_DEFINE5()
199 retval = 0; in SYSCALL_DEFINE5()
204 return retval; in SYSCALL_DEFINE5()
219 int retval = -EINVAL; in rw_verify_area() local
223 return retval; in rw_verify_area()
226 return retval; in rw_verify_area()
229 retval = locks_mandatory_area( in rw_verify_area()
232 if (retval < 0) in rw_verify_area()
233 return retval; in rw_verify_area()
235 retval = security_file_permission(file, in rw_verify_area()
237 if (retval) in rw_verify_area()
238 return retval; in rw_verify_area()
740 ssize_t retval; in do_sendfile() local
746 retval = -EBADF; in do_sendfile()
752 retval = -EINVAL; in do_sendfile()
758 retval = -ESPIPE; in do_sendfile()
764 retval = rw_verify_area(READ, in_file, ppos, count); in do_sendfile()
765 if (retval < 0) in do_sendfile()
767 count = retval; in do_sendfile()
772 retval = -EBADF; in do_sendfile()
778 retval = -EINVAL; in do_sendfile()
782 retval = rw_verify_area(WRITE, out_file, &out_file->f_pos, count); in do_sendfile()
783 if (retval < 0) in do_sendfile()
785 count = retval; in do_sendfile()
791 retval = -EINVAL; in do_sendfile()
795 retval = -EOVERFLOW; in do_sendfile()
812 retval = do_splice_direct(in_file, ppos, out_file, count, fl); in do_sendfile()
814 if (retval > 0) { in do_sendfile()
815 add_rchar(current, retval); in do_sendfile()
816 add_wchar(current, retval); in do_sendfile()
822 retval = -EOVERFLOW; in do_sendfile()
829 return retval; in do_sendfile()