Lines Matching refs:sc_chan
108 struct imx_sc_chan *sc_chan = container_of(cl, struct imx_sc_chan, cl); in imx_scu_tx_done() local
110 complete(&sc_chan->tx_done); in imx_scu_tx_done()
115 struct imx_sc_chan *sc_chan = container_of(c, struct imx_sc_chan, cl); in imx_scu_rx_callback() local
116 struct imx_sc_ipc *sc_ipc = sc_chan->sc_ipc; in imx_scu_rx_callback()
123 sc_chan->idx, *data); in imx_scu_rx_callback()
140 if (sc_chan->idx == 0) { in imx_scu_rx_callback()
149 sc_ipc->msg[sc_chan->idx] = *data; in imx_scu_rx_callback()
152 dev_dbg(sc_ipc->dev, "mu %u msg %u 0x%x\n", sc_chan->idx, in imx_scu_rx_callback()
162 struct imx_sc_chan *sc_chan; in imx_scu_ipc_write() local
177 sc_chan = &sc_ipc->chans[i % 4]; in imx_scu_ipc_write()
189 wait_for_completion(&sc_chan->tx_done); in imx_scu_ipc_write()
190 reinit_completion(&sc_chan->tx_done); in imx_scu_ipc_write()
193 ret = mbox_send_message(sc_chan->ch, &data[i]); in imx_scu_ipc_write()
265 struct imx_sc_chan *sc_chan; in imx_scu_probe() local
295 sc_chan = &sc_ipc->chans[i]; in imx_scu_probe()
296 cl = &sc_chan->cl; in imx_scu_probe()
305 init_completion(&sc_chan->tx_done); in imx_scu_probe()
306 complete(&sc_chan->tx_done); in imx_scu_probe()
309 sc_chan->sc_ipc = sc_ipc; in imx_scu_probe()
310 sc_chan->idx = i % (num_channel / 2); in imx_scu_probe()
311 sc_chan->ch = mbox_request_channel_byname(cl, chan_name); in imx_scu_probe()
312 if (IS_ERR(sc_chan->ch)) { in imx_scu_probe()
313 ret = PTR_ERR(sc_chan->ch); in imx_scu_probe()