Lines Matching refs:msg
23 void sc_call_rpc(sc_ipc_t ipc, sc_rpc_msg_t *msg, bool no_resp) in sc_call_rpc() argument
27 sc_ipc_write(ipc, msg); in sc_call_rpc()
29 sc_ipc_read(ipc, msg); in sc_call_rpc()
70 sc_rpc_msg_t *msg = (sc_rpc_msg_t *) data; in sc_ipc_read() local
74 if ((base == 0) || (msg == NULL)) in sc_ipc_read()
78 MU_ReceiveMsg(base, 0, (uint32_t *) msg); in sc_ipc_read()
82 if (msg->size > SC_RPC_MAX_MSG) { in sc_ipc_read()
83 *((uint32_t *) msg) = 0; in sc_ipc_read()
88 while (count < msg->size) { in sc_ipc_read()
90 &(msg->DATA.u32[count - 1])); in sc_ipc_read()
97 sc_rpc_msg_t *msg = (sc_rpc_msg_t *) data; in sc_ipc_write() local
102 if ((base == 0) || (msg == NULL)) in sc_ipc_write()
106 if (msg->size > SC_RPC_MAX_MSG) in sc_ipc_write()
110 MU_SendMessage(base, 0, *((uint32_t *) msg)); in sc_ipc_write()
114 while (count < msg->size) { in sc_ipc_write()
116 msg->DATA.u32[count - 1]); in sc_ipc_write()