Lines Matching refs:flags
76 buf->flags |= PIPE_BUF_FLAG_LRU; in page_cache_pipe_buf_try_steal()
94 buf->flags &= ~PIPE_BUF_FLAG_LRU; in page_cache_pipe_buf_release()
149 if (!(buf->flags & PIPE_BUF_FLAG_GIFT)) in user_page_pipe_buf_try_steal()
152 buf->flags |= PIPE_BUF_FLAG_LRU; in user_page_pipe_buf_try_steal()
207 buf->flags = 0; in splice_to_pipe()
299 unsigned int flags) in generic_file_splice_read() argument
354 more = (sd->flags & SPLICE_F_MORE) ? MSG_MORE : 0; in pipe_to_sendpage()
484 if (sd->flags & SPLICE_F_NONBLOCK) in splice_from_pipe_next()
581 loff_t *ppos, size_t len, unsigned int flags, in splice_from_pipe() argument
587 .flags = flags, in splice_from_pipe()
615 loff_t *ppos, size_t len, unsigned int flags) in iter_file_splice_write() argument
619 .flags = flags, in iter_file_splice_write()
740 loff_t *ppos, size_t len, unsigned int flags) in generic_splice_sendpage() argument
742 return splice_from_pipe(pipe, out, ppos, len, flags, pipe_to_sendpage); in generic_splice_sendpage()
759 loff_t *ppos, size_t len, unsigned int flags) in do_splice_from() argument
763 return out->f_op->splice_write(pipe, out, ppos, len, flags); in do_splice_from()
771 unsigned int flags) in do_splice_to() argument
792 return in->f_op->splice_read(in, ppos, pipe, len, flags); in do_splice_to()
814 int i, flags, more; in splice_direct_to_actor() local
850 flags = sd->flags; in splice_direct_to_actor()
855 sd->flags &= ~SPLICE_F_NONBLOCK; in splice_direct_to_actor()
856 more = sd->flags & SPLICE_F_MORE; in splice_direct_to_actor()
864 ret = do_splice_to(in, &pos, pipe, len, flags); in splice_direct_to_actor()
877 sd->flags |= SPLICE_F_MORE; in splice_direct_to_actor()
879 sd->flags &= ~SPLICE_F_MORE; in splice_direct_to_actor()
931 sd->flags); in direct_splice_actor()
951 loff_t *opos, size_t len, unsigned int flags) in do_splice_direct() argument
956 .flags = flags, in do_splice_direct()
981 static int wait_for_space(struct pipe_inode_info *pipe, unsigned flags) in wait_for_space() argument
990 if (flags & SPLICE_F_NONBLOCK) in wait_for_space()
1000 size_t len, unsigned int flags);
1005 size_t len, unsigned int flags) in splice_file_to_pipe() argument
1010 ret = wait_for_space(opipe, flags); in splice_file_to_pipe()
1012 ret = do_splice_to(in, offset, opipe, len, flags); in splice_file_to_pipe()
1023 loff_t *off_out, size_t len, unsigned int flags) in do_splice() argument
1046 flags |= SPLICE_F_NONBLOCK; in do_splice()
1048 return splice_pipe_to_pipe(ipipe, opipe, len, flags); in do_splice()
1070 flags |= SPLICE_F_NONBLOCK; in do_splice()
1073 ret = do_splice_from(ipipe, out, &offset, len, flags); in do_splice()
1096 flags |= SPLICE_F_NONBLOCK; in do_splice()
1098 ret = splice_file_to_pipe(in, opipe, &offset, len, flags); in do_splice()
1112 size_t len, unsigned int flags) in __do_splice() argument
1138 ret = do_splice(in, __off_in, out, __off_out, len, flags); in __do_splice()
1152 unsigned flags) in iter_to_pipe() argument
1156 .flags = flags in iter_to_pipe()
1209 unsigned int flags) in vmsplice_to_user() argument
1214 .flags = flags, in vmsplice_to_user()
1237 unsigned int flags) in vmsplice_to_pipe() argument
1243 if (flags & SPLICE_F_GIFT) in vmsplice_to_pipe()
1251 ret = wait_for_space(pipe, flags); in vmsplice_to_pipe()
1292 unsigned long, nr_segs, unsigned int, flags) in SYSCALL_DEFINE4() argument
1301 if (unlikely(flags & ~SPLICE_F_ALL)) in SYSCALL_DEFINE4()
1317 error = vmsplice_to_pipe(f.file, &iter, flags); in SYSCALL_DEFINE4()
1319 error = vmsplice_to_user(f.file, &iter, flags); in SYSCALL_DEFINE4()
1329 size_t, len, unsigned int, flags) in SYSCALL_DEFINE6() argument
1337 if (unlikely(flags & ~SPLICE_F_ALL)) in SYSCALL_DEFINE6()
1346 len, flags); in SYSCALL_DEFINE6()
1358 static int ipipe_prep(struct pipe_inode_info *pipe, unsigned int flags) in ipipe_prep() argument
1379 if (flags & SPLICE_F_NONBLOCK) { in ipipe_prep()
1394 static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags) in opipe_prep() argument
1414 if (flags & SPLICE_F_NONBLOCK) { in opipe_prep()
1434 size_t len, unsigned int flags) in splice_pipe_to_pipe() argument
1445 ret = ipipe_prep(ipipe, flags); in splice_pipe_to_pipe()
1449 ret = opipe_prep(opipe, flags); in splice_pipe_to_pipe()
1491 if (flags & SPLICE_F_NONBLOCK) { in splice_pipe_to_pipe()
1537 obuf->flags &= ~PIPE_BUF_FLAG_GIFT; in splice_pipe_to_pipe()
1538 obuf->flags &= ~PIPE_BUF_FLAG_CAN_MERGE; in splice_pipe_to_pipe()
1571 size_t len, unsigned int flags) in link_pipe() argument
1629 obuf->flags &= ~PIPE_BUF_FLAG_GIFT; in link_pipe()
1630 obuf->flags &= ~PIPE_BUF_FLAG_CAN_MERGE; in link_pipe()
1660 long do_tee(struct file *in, struct file *out, size_t len, unsigned int flags) in do_tee() argument
1676 flags |= SPLICE_F_NONBLOCK; in do_tee()
1682 ret = ipipe_prep(ipipe, flags); in do_tee()
1684 ret = opipe_prep(opipe, flags); in do_tee()
1686 ret = link_pipe(ipipe, opipe, len, flags); in do_tee()
1693 SYSCALL_DEFINE4(tee, int, fdin, int, fdout, size_t, len, unsigned int, flags) in SYSCALL_DEFINE4() argument
1698 if (unlikely(flags & ~SPLICE_F_ALL)) in SYSCALL_DEFINE4()
1709 error = do_tee(in.file, out.file, len, flags); in SYSCALL_DEFINE4()