Lines Matching refs:out
212 goto out; in splice_to_pipe()
237 out: in splice_to_pipe()
632 ssize_t splice_from_pipe(struct pipe_inode_info *pipe, struct file *out, in splice_from_pipe() argument
641 .u.file = out, in splice_from_pipe()
666 iter_file_splice_write(struct pipe_inode_info *pipe, struct file *out, in iter_file_splice_write() argument
673 .u.file = out, in iter_file_splice_write()
736 ret = vfs_iter_write(out, &from, &sd.pos, 0); in iter_file_splice_write()
791 ssize_t splice_to_socket(struct pipe_inode_info *pipe, struct file *out, in splice_to_socket() argument
794 struct socket *sock = sock_from_file(out); in splice_to_socket()
818 goto out; in splice_to_socket()
821 goto out; in splice_to_socket()
825 goto out; in splice_to_socket()
829 goto out; in splice_to_socket()
876 if (out->f_flags & O_NONBLOCK) in splice_to_socket()
909 out: in splice_to_socket()
928 static long do_splice_from(struct pipe_inode_info *pipe, struct file *out, in do_splice_from() argument
931 if (unlikely(!out->f_op->splice_write)) in do_splice_from()
932 return warn_unsupported(out, "write"); in do_splice_from()
933 return out->f_op->splice_write(pipe, out, ppos, len, flags); in do_splice_from()
1170 long do_splice_direct(struct file *in, loff_t *ppos, struct file *out, in do_splice_direct() argument
1178 .u.file = out, in do_splice_direct()
1184 if (unlikely(!(out->f_mode & FMODE_WRITE))) in do_splice_direct()
1187 if (unlikely(out->f_flags & O_APPEND)) in do_splice_direct()
1190 ret = rw_verify_area(WRITE, out, opos, len); in do_splice_direct()
1243 long do_splice(struct file *in, loff_t *off_in, struct file *out, in do_splice() argument
1252 !(out->f_mode & FMODE_WRITE))) in do_splice()
1256 opipe = get_pipe_info(out, true); in do_splice()
1266 if ((in->f_flags | out->f_flags) & O_NONBLOCK) in do_splice()
1274 if (!(out->f_mode & FMODE_PWRITE)) in do_splice()
1278 offset = out->f_pos; in do_splice()
1281 if (unlikely(out->f_flags & O_APPEND)) in do_splice()
1284 ret = rw_verify_area(WRITE, out, &offset, len); in do_splice()
1291 file_start_write(out); in do_splice()
1292 ret = do_splice_from(ipipe, out, &offset, len, flags); in do_splice()
1293 file_end_write(out); in do_splice()
1296 out->f_pos = offset; in do_splice()
1310 if (out->f_flags & O_NONBLOCK) in do_splice()
1329 fsnotify_modify(out); in do_splice()
1337 struct file *out, loff_t __user *off_out, in __do_splice() argument
1346 opipe = get_pipe_info(out, true); in __do_splice()
1356 pipe_clear_nowait(out); in __do_splice()
1370 ret = do_splice(in, __off_in, out, __off_out, len, flags); in __do_splice()
1418 goto out; in iter_to_pipe()
1425 out: in iter_to_pipe()
1572 struct fd in, out; in SYSCALL_DEFINE6() local
1584 out = fdget(fd_out); in SYSCALL_DEFINE6()
1585 if (out.file) { in SYSCALL_DEFINE6()
1586 error = __do_splice(in.file, off_in, out.file, off_out, in SYSCALL_DEFINE6()
1588 fdput(out); in SYSCALL_DEFINE6()
1901 long do_tee(struct file *in, struct file *out, size_t len, unsigned int flags) in do_tee() argument
1904 struct pipe_inode_info *opipe = get_pipe_info(out, true); in do_tee()
1908 !(out->f_mode & FMODE_WRITE))) in do_tee()
1916 if ((in->f_flags | out->f_flags) & O_NONBLOCK) in do_tee()
1933 fsnotify_modify(out); in do_tee()
1941 struct fd in, out; in SYSCALL_DEFINE4() local
1953 out = fdget(fdout); in SYSCALL_DEFINE4()
1954 if (out.file) { in SYSCALL_DEFINE4()
1955 error = do_tee(in.file, out.file, len, flags); in SYSCALL_DEFINE4()
1956 fdput(out); in SYSCALL_DEFINE4()