Lines Matching defs:msg
43 /* temporarily store the SCU msg */
44 u32 *msg;
113 static void imx_scu_rx_callback(struct mbox_client *c, void *msg)
118 u32 *data = msg;
121 if (!sc_ipc->msg) {
128 hdr = msg;
130 sc_ipc->msg[0] = *data++;
133 sc_ipc->msg[i] = *data++;
141 hdr = msg;
143 dev_dbg(sc_ipc->dev, "msg rx size %u\n", sc_ipc->rx_size);
149 sc_ipc->msg[sc_chan->idx] = *data;
152 dev_dbg(sc_ipc->dev, "mu %u msg %u 0x%x\n", sc_chan->idx,
159 static int imx_scu_ipc_write(struct imx_sc_ipc *sc_ipc, void *msg)
161 struct imx_sc_rpc_msg hdr = *(struct imx_sc_rpc_msg *)msg;
163 u32 *data = msg;
204 int imx_scu_call_rpc(struct imx_sc_ipc *sc_ipc, void *msg, bool have_resp)
210 if (WARN_ON(!sc_ipc || !msg))
217 sc_ipc->msg = msg;
218 saved_svc = ((struct imx_sc_rpc_msg *)msg)->svc;
219 saved_func = ((struct imx_sc_rpc_msg *)msg)->func;
222 ret = imx_scu_ipc_write(sc_ipc, msg);
224 dev_err(sc_ipc->dev, "RPC send msg failed: %d\n", ret);
231 dev_err(sc_ipc->dev, "RPC send msg timeout\n");
237 hdr = msg;
252 sc_ipc->msg = NULL;