Lines Matching refs:in
295 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read() argument
305 init_sync_kiocb(&kiocb, in); in generic_file_splice_read()
307 ret = call_read_iter(in, &kiocb, &to); in generic_file_splice_read()
310 file_accessed(in); in generic_file_splice_read()
365 static ssize_t default_file_splice_read(struct file *in, loff_t *ppos, in default_file_splice_read() argument
414 res = kernel_readv(in, vec, nr_pages, *ppos); in default_file_splice_read()
854 static long do_splice_to(struct file *in, loff_t *ppos, in do_splice_to() argument
862 if (unlikely(!(in->f_mode & FMODE_READ))) in do_splice_to()
865 ret = rw_verify_area(READ, in, ppos, len); in do_splice_to()
872 if (in->f_op->splice_read) in do_splice_to()
873 splice_read = in->f_op->splice_read; in do_splice_to()
877 return splice_read(in, ppos, pipe, len, flags); in do_splice_to()
893 ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd, in splice_direct_to_actor() argument
907 i_mode = file_inode(in)->i_mode; in splice_direct_to_actor()
955 ret = do_splice_to(in, &pos, pipe, read_len, flags); in splice_direct_to_actor()
994 file_accessed(in); in splice_direct_to_actor()
1041 long do_splice_direct(struct file *in, loff_t *ppos, struct file *out, in do_splice_direct() argument
1064 ret = splice_direct_to_actor(in, &sd, direct_splice_actor); in do_splice_direct()
1098 static long do_splice(struct file *in, loff_t __user *off_in, in do_splice() argument
1107 ipipe = get_pipe_info(in); in do_splice()
1114 if (!(in->f_mode & FMODE_READ)) in do_splice()
1124 if ((in->f_flags | out->f_flags) & O_NONBLOCK) in do_splice()
1152 if (in->f_flags & O_NONBLOCK) in do_splice()
1171 if (!(in->f_mode & FMODE_PREAD)) in do_splice()
1176 offset = in->f_pos; in do_splice()
1191 ret = do_splice_to(in, &offset, opipe, len, flags); in do_splice()
1197 in->f_pos = offset; in do_splice()
1417 struct fd in, out; in SYSCALL_DEFINE6() local
1427 in = fdget(fd_in); in SYSCALL_DEFINE6()
1428 if (in.file) { in SYSCALL_DEFINE6()
1429 if (in.file->f_mode & FMODE_READ) { in SYSCALL_DEFINE6()
1433 error = do_splice(in.file, off_in, in SYSCALL_DEFINE6()
1439 fdput(in); in SYSCALL_DEFINE6()
1734 static long do_tee(struct file *in, struct file *out, size_t len, in do_tee() argument
1737 struct pipe_inode_info *ipipe = get_pipe_info(in); in do_tee()
1746 if ((in->f_flags | out->f_flags) & O_NONBLOCK) in do_tee()
1766 struct fd in; in SYSCALL_DEFINE4() local
1776 in = fdget(fdin); in SYSCALL_DEFINE4()
1777 if (in.file) { in SYSCALL_DEFINE4()
1778 if (in.file->f_mode & FMODE_READ) { in SYSCALL_DEFINE4()
1782 error = do_tee(in.file, out.file, in SYSCALL_DEFINE4()
1787 fdput(in); in SYSCALL_DEFINE4()