Lines Matching refs:opipe
1220 struct pipe_inode_info *opipe,
1224 struct pipe_inode_info *opipe,
1230 pipe_lock(opipe);
1231 ret = wait_for_space(opipe, flags);
1233 ret = vfs_splice_read(in, offset, opipe, len, flags);
1234 pipe_unlock(opipe);
1236 wakeup_pipe_readers(opipe);
1247 struct pipe_inode_info *opipe;
1256 opipe = get_pipe_info(out, true);
1258 if (ipipe && opipe) {
1263 if (ipipe == opipe)
1269 ret = splice_pipe_to_pipe(ipipe, opipe, len, flags);
1299 } else if (opipe) {
1313 ret = splice_file_to_pipe(in, opipe, &offset, len, flags);
1341 struct pipe_inode_info *opipe;
1346 opipe = get_pipe_info(out, true);
1353 if (opipe) {
1671 * Splice contents of ipipe to opipe.
1674 struct pipe_inode_info *opipe,
1690 ret = opipe_prep(opipe, flags);
1699 pipe_double_lock(ipipe, opipe);
1703 o_head = opipe->head;
1704 o_mask = opipe->ring_size - 1;
1709 if (!opipe->readers) {
1717 o_tail = opipe->tail;
1727 pipe_full(o_head, o_tail, opipe->max_usage)) {
1743 pipe_unlock(opipe);
1748 obuf = &opipe->bufs[o_head & o_mask];
1752 * Simply move the whole buffer from ipipe to opipe
1761 opipe->head = o_head;
1786 opipe->head = o_head;
1793 pipe_unlock(opipe);
1799 wakeup_pipe_readers(opipe);
1808 * Link contents of ipipe to opipe.
1811 struct pipe_inode_info *opipe,
1825 pipe_double_lock(ipipe, opipe);
1829 o_head = opipe->head;
1830 o_mask = opipe->ring_size - 1;
1833 if (!opipe->readers) {
1841 o_tail = opipe->tail;
1848 pipe_full(o_head, o_tail, opipe->max_usage))
1852 obuf = &opipe->bufs[o_head & o_mask];
1879 opipe->head = o_head;
1884 pipe_unlock(opipe);
1890 wakeup_pipe_readers(opipe);
1904 struct pipe_inode_info *opipe = get_pipe_info(out, true);
1912 * Duplicate the contents of ipipe to opipe without actually
1915 if (ipipe && opipe && ipipe != opipe) {
1920 * Keep going, unless we encounter an error. The ipipe/opipe
1925 ret = opipe_prep(opipe, flags);
1927 ret = link_pipe(ipipe, opipe, len, flags);