Lines Matching defs:sc_chan
107 struct imx_sc_chan *sc_chan = container_of(cl, struct imx_sc_chan, cl);
109 complete(&sc_chan->tx_done);
114 struct imx_sc_chan *sc_chan = container_of(c, struct imx_sc_chan, cl);
115 struct imx_sc_ipc *sc_ipc = sc_chan->sc_ipc;
122 sc_chan->idx, *data);
139 if (sc_chan->idx == 0) {
148 sc_ipc->msg[sc_chan->idx] = *data;
151 dev_dbg(sc_ipc->dev, "mu %u msg %u 0x%x\n", sc_chan->idx,
161 struct imx_sc_chan *sc_chan;
176 sc_chan = &sc_ipc->chans[i % 4];
188 wait_for_completion(&sc_chan->tx_done);
189 reinit_completion(&sc_chan->tx_done);
192 ret = mbox_send_message(sc_chan->ch, &data[i]);
264 struct imx_sc_chan *sc_chan;
294 sc_chan = &sc_ipc->chans[i];
295 cl = &sc_chan->cl;
304 init_completion(&sc_chan->tx_done);
305 complete(&sc_chan->tx_done);
308 sc_chan->sc_ipc = sc_ipc;
309 sc_chan->idx = i % (num_channel / 2);
310 sc_chan->ch = mbox_request_channel_byname(cl, chan_name);
311 if (IS_ERR(sc_chan->ch)) {
312 ret = PTR_ERR(sc_chan->ch);