Lines Matching refs:chained_pipe
597 struct mxc_isi_pipe *chained_pipe = pipe + 1; in mxc_isi_channel_chain() local
609 mutex_lock(&chained_pipe->lock); in mxc_isi_channel_chain()
612 if (WARN_ON(pipe->chained || chained_pipe->chained_res)) { in mxc_isi_channel_chain()
617 if ((chained_pipe->available_res & resources) != resources) { in mxc_isi_channel_chain()
623 chained_pipe->chained_res |= resources; in mxc_isi_channel_chain()
624 chained_pipe->available_res &= ~resources; in mxc_isi_channel_chain()
626 __mxc_isi_channel_get(chained_pipe); in mxc_isi_channel_chain()
629 mutex_unlock(&chained_pipe->lock); in mxc_isi_channel_chain()
636 struct mxc_isi_pipe *chained_pipe = pipe + 1; in mxc_isi_channel_unchain() local
643 mutex_lock(&chained_pipe->lock); in mxc_isi_channel_unchain()
645 chained_pipe->available_res |= chained_pipe->chained_res; in mxc_isi_channel_unchain()
646 chained_pipe->chained_res = 0; in mxc_isi_channel_unchain()
648 __mxc_isi_channel_put(chained_pipe); in mxc_isi_channel_unchain()
650 mutex_unlock(&chained_pipe->lock); in mxc_isi_channel_unchain()