Lines Matching refs:msg
44 u32 *msg; member
113 static void imx_scu_rx_callback(struct mbox_client *c, void *msg) in imx_scu_rx_callback() argument
118 u32 *data = msg; in imx_scu_rx_callback()
121 if (!sc_ipc->msg) { in imx_scu_rx_callback()
128 hdr = msg; in imx_scu_rx_callback()
130 sc_ipc->msg[0] = *data++; in imx_scu_rx_callback()
133 sc_ipc->msg[i] = *data++; in imx_scu_rx_callback()
141 hdr = msg; in imx_scu_rx_callback()
149 sc_ipc->msg[sc_chan->idx] = *data; in imx_scu_rx_callback()
159 static int imx_scu_ipc_write(struct imx_sc_ipc *sc_ipc, void *msg) in imx_scu_ipc_write() argument
161 struct imx_sc_rpc_msg hdr = *(struct imx_sc_rpc_msg *)msg; in imx_scu_ipc_write()
163 u32 *data = msg; in imx_scu_ipc_write()
204 int imx_scu_call_rpc(struct imx_sc_ipc *sc_ipc, void *msg, bool have_resp) in imx_scu_call_rpc() argument
210 if (WARN_ON(!sc_ipc || !msg)) in imx_scu_call_rpc()
217 sc_ipc->msg = msg; in imx_scu_call_rpc()
218 saved_svc = ((struct imx_sc_rpc_msg *)msg)->svc; in imx_scu_call_rpc()
219 saved_func = ((struct imx_sc_rpc_msg *)msg)->func; in imx_scu_call_rpc()
222 ret = imx_scu_ipc_write(sc_ipc, msg); in imx_scu_call_rpc()
237 hdr = msg; in imx_scu_call_rpc()
252 sc_ipc->msg = NULL; in imx_scu_call_rpc()