Lines Matching refs:opipe
1002 struct pipe_inode_info *opipe,
1012 struct pipe_inode_info *opipe; in do_splice() local
1021 opipe = get_pipe_info(out, true); in do_splice()
1023 if (ipipe && opipe) { in do_splice()
1028 if (ipipe == opipe) in do_splice()
1034 return splice_pipe_to_pipe(ipipe, opipe, len, flags); in do_splice()
1070 if (opipe) { in do_splice()
1084 pipe_lock(opipe); in do_splice()
1085 ret = wait_for_space(opipe, flags); in do_splice()
1090 p_space = opipe->max_usage - pipe_occupancy(opipe->head, opipe->tail); in do_splice()
1093 ret = do_splice_to(in, &offset, opipe, len, flags); in do_splice()
1095 pipe_unlock(opipe); in do_splice()
1097 wakeup_pipe_readers(opipe); in do_splice()
1114 struct pipe_inode_info *opipe; in __do_splice() local
1119 opipe = get_pipe_info(out, true); in __do_splice()
1123 if (opipe && off_out) in __do_splice()
1431 struct pipe_inode_info *opipe, in splice_pipe_to_pipe() argument
1447 ret = opipe_prep(opipe, flags); in splice_pipe_to_pipe()
1456 pipe_double_lock(ipipe, opipe); in splice_pipe_to_pipe()
1460 o_head = opipe->head; in splice_pipe_to_pipe()
1461 o_mask = opipe->ring_size - 1; in splice_pipe_to_pipe()
1466 if (!opipe->readers) { in splice_pipe_to_pipe()
1474 o_tail = opipe->tail; in splice_pipe_to_pipe()
1484 pipe_full(o_head, o_tail, opipe->max_usage)) { in splice_pipe_to_pipe()
1500 pipe_unlock(opipe); in splice_pipe_to_pipe()
1505 obuf = &opipe->bufs[o_head & o_mask]; in splice_pipe_to_pipe()
1518 opipe->head = o_head; in splice_pipe_to_pipe()
1543 opipe->head = o_head; in splice_pipe_to_pipe()
1550 pipe_unlock(opipe); in splice_pipe_to_pipe()
1556 wakeup_pipe_readers(opipe); in splice_pipe_to_pipe()
1568 struct pipe_inode_info *opipe, in link_pipe() argument
1582 pipe_double_lock(ipipe, opipe); in link_pipe()
1586 o_head = opipe->head; in link_pipe()
1587 o_mask = opipe->ring_size - 1; in link_pipe()
1590 if (!opipe->readers) { in link_pipe()
1598 o_tail = opipe->tail; in link_pipe()
1605 pipe_full(o_head, o_tail, opipe->max_usage)) in link_pipe()
1609 obuf = &opipe->bufs[o_head & o_mask]; in link_pipe()
1636 opipe->head = o_head; in link_pipe()
1641 pipe_unlock(opipe); in link_pipe()
1647 wakeup_pipe_readers(opipe); in link_pipe()
1661 struct pipe_inode_info *opipe = get_pipe_info(out, true); in do_tee() local
1672 if (ipipe && opipe && ipipe != opipe) { in do_tee()
1682 ret = opipe_prep(opipe, flags); in do_tee()
1684 ret = link_pipe(ipipe, opipe, len, flags); in do_tee()