Lines Matching refs:flags
70 buf->flags |= PIPE_BUF_FLAG_LRU; in page_cache_pipe_buf_steal()
88 buf->flags &= ~PIPE_BUF_FLAG_LRU; in page_cache_pipe_buf_release()
146 if (!(buf->flags & PIPE_BUF_FLAG_GIFT)) in user_page_pipe_buf_steal()
149 buf->flags |= PIPE_BUF_FLAG_LRU; in user_page_pipe_buf_steal()
204 if (spd->flags & SPLICE_F_GIFT) in splice_to_pipe()
205 buf->flags |= PIPE_BUF_FLAG_GIFT; in splice_to_pipe()
222 if (spd->flags & SPLICE_F_NONBLOCK) { in splice_to_pipe()
272 unsigned int flags) in __generic_file_splice_read() argument
285 .flags = flags, in __generic_file_splice_read()
374 if (flags & SPLICE_F_NONBLOCK) { in __generic_file_splice_read()
493 unsigned int flags) in generic_file_splice_read() argument
506 ret = __generic_file_splice_read(in, ppos, pipe, len, flags); in generic_file_splice_read()
528 more = (sd->flags & SPLICE_F_MORE) || sd->len < sd->total_len; in pipe_to_sendpage()
673 if (sd->flags & SPLICE_F_NONBLOCK) { in __splice_from_pipe()
722 loff_t *ppos, size_t len, unsigned int flags, in splice_from_pipe() argument
729 .flags = flags, in splice_from_pipe()
763 loff_t *ppos, size_t len, unsigned int flags) in generic_file_splice_write_nolock() argument
769 .flags = flags, in generic_file_splice_write_nolock()
821 loff_t *ppos, size_t len, unsigned int flags) in generic_file_splice_write() argument
827 .flags = flags, in generic_file_splice_write()
881 loff_t *ppos, size_t len, unsigned int flags) in generic_splice_sendpage() argument
883 return splice_from_pipe(pipe, out, ppos, len, flags, pipe_to_sendpage); in generic_splice_sendpage()
892 loff_t *ppos, size_t len, unsigned int flags) in do_splice_from() argument
909 return out->f_op->splice_write(pipe, out, ppos, len, flags); in do_splice_from()
917 unsigned int flags) in do_splice_to() argument
931 return in->f_op->splice_read(in, ppos, pipe, len, flags); in do_splice_to()
954 int i, flags; in splice_direct_to_actor() local
991 flags = sd->flags; in splice_direct_to_actor()
996 sd->flags &= ~SPLICE_F_NONBLOCK; in splice_direct_to_actor()
1002 ret = do_splice_to(in, &pos, pipe, len, flags); in splice_direct_to_actor()
1061 return do_splice_from(pipe, file, &sd->pos, sd->total_len, sd->flags); in direct_splice_actor()
1080 size_t len, unsigned int flags) in do_splice_direct() argument
1085 .flags = flags, in do_splice_direct()
1116 size_t len, unsigned int flags) in do_splice() argument
1135 ret = do_splice_from(pipe, out, off, len, flags); in do_splice()
1156 ret = do_splice_to(in, off, pipe, len, flags); in do_splice()
1314 unsigned long nr_segs, unsigned int flags) in vmsplice_to_user() argument
1361 sd.flags = flags; in vmsplice_to_user()
1397 unsigned long nr_segs, unsigned int flags) in vmsplice_to_pipe() argument
1405 .flags = flags, in vmsplice_to_pipe()
1415 flags & SPLICE_F_GIFT); in vmsplice_to_pipe()
1439 unsigned long, nr_segs, unsigned int, flags) in SYSCALL_DEFINE4() argument
1454 error = vmsplice_to_pipe(file, iov, nr_segs, flags); in SYSCALL_DEFINE4()
1456 error = vmsplice_to_user(file, iov, nr_segs, flags); in SYSCALL_DEFINE4()
1466 size_t, len, unsigned int, flags) in SYSCALL_DEFINE6() argument
1484 len, flags); in SYSCALL_DEFINE6()
1499 static int link_ipipe_prep(struct pipe_inode_info *pipe, unsigned int flags) in link_ipipe_prep() argument
1521 if (flags & SPLICE_F_NONBLOCK) { in link_ipipe_prep()
1537 static int link_opipe_prep(struct pipe_inode_info *pipe, unsigned int flags) in link_opipe_prep() argument
1557 if (flags & SPLICE_F_NONBLOCK) { in link_opipe_prep()
1579 size_t len, unsigned int flags) in link_pipe() argument
1622 obuf->flags &= ~PIPE_BUF_FLAG_GIFT; in link_pipe()
1637 if (!ret && ipipe->waiting_writers && (flags & SPLICE_F_NONBLOCK)) in link_pipe()
1662 unsigned int flags) in do_tee() argument
1677 ret = link_ipipe_prep(ipipe, flags); in do_tee()
1679 ret = link_opipe_prep(opipe, flags); in do_tee()
1681 ret = link_pipe(ipipe, opipe, len, flags); in do_tee()
1688 SYSCALL_DEFINE4(tee, int, fdin, int, fdout, size_t, len, unsigned int, flags) in SYSCALL_DEFINE4() argument
1705 error = do_tee(in, out, len, flags); in SYSCALL_DEFINE4()