Lines Matching defs:msg
42 /* temporarily store the SCU msg */
43 u32 *msg;
112 static void imx_scu_rx_callback(struct mbox_client *c, void *msg)
117 u32 *data = msg;
120 if (!sc_ipc->msg) {
127 hdr = msg;
129 sc_ipc->msg[0] = *data++;
132 sc_ipc->msg[i] = *data++;
140 hdr = msg;
142 dev_dbg(sc_ipc->dev, "msg rx size %u\n", sc_ipc->rx_size);
148 sc_ipc->msg[sc_chan->idx] = *data;
151 dev_dbg(sc_ipc->dev, "mu %u msg %u 0x%x\n", sc_chan->idx,
158 static int imx_scu_ipc_write(struct imx_sc_ipc *sc_ipc, void *msg)
160 struct imx_sc_rpc_msg hdr = *(struct imx_sc_rpc_msg *)msg;
162 u32 *data = msg;
203 int imx_scu_call_rpc(struct imx_sc_ipc *sc_ipc, void *msg, bool have_resp)
209 if (WARN_ON(!sc_ipc || !msg))
216 sc_ipc->msg = msg;
217 saved_svc = ((struct imx_sc_rpc_msg *)msg)->svc;
218 saved_func = ((struct imx_sc_rpc_msg *)msg)->func;
221 ret = imx_scu_ipc_write(sc_ipc, msg);
223 dev_err(sc_ipc->dev, "RPC send msg failed: %d\n", ret);
230 dev_err(sc_ipc->dev, "RPC send msg timeout\n");
236 hdr = msg;
251 sc_ipc->msg = NULL;