Lines Matching defs:msg
103 * @msg message
105 static void dump_message(const struct imx_mu_msg *msg __maybe_unused)
108 size_t size __maybe_unused = msg->header.size;
109 uint32_t *data __maybe_unused = (uint32_t *)msg;
120 * @msg MU message to hash
122 static uint32_t compute_crc(const struct imx_mu_msg *msg)
126 uint32_t *payload = (uint32_t *)msg;
128 assert(msg);
130 for (i = 0; i < msg->header.size - 1; i++)
136 void update_crc(struct imx_mu_msg *msg)
138 assert(msg);
143 msg->data.u32[msg->header.size - 2] = compute_crc(msg);
188 TEE_Result imx_ele_call(struct imx_mu_msg *msg)
194 assert(msg);
196 if (msg->header.tag != ELE_REQUEST_TAG) {
198 msg->header.tag, ELE_REQUEST_TAG);
208 res = imx_mu_call(va, msg, true);
211 print_msg_header(msg->header);
212 dump_message(msg);
216 rsp = get_response_code(msg->data.u32[0]);
218 if (msg->header.tag != ELE_RESPONSE_TAG) {
220 msg->header.tag, ELE_RESPONSE_TAG);
221 print_msg_header(msg->header);
268 struct imx_mu_msg msg = {
277 memcpy(msg.data.u8, &cmd, sizeof(cmd));
279 res = imx_ele_call(&msg);
283 memcpy(&rsp, msg.data.u8, sizeof(rsp));
302 struct imx_mu_msg msg = {
309 memcpy(msg.data.u8, &cmd, sizeof(cmd));
311 return imx_ele_call(&msg);
323 struct imx_mu_msg msg = {
341 memcpy(msg.data.u8, &cmd, sizeof(cmd));
343 res = imx_ele_call(&msg);
390 struct imx_mu_msg msg = {
420 memcpy(msg.data.u8, &cmd, sizeof(cmd));
421 update_crc(&msg);
423 res = imx_ele_call(&msg);
467 struct imx_mu_msg msg = {
474 res = imx_ele_call(&msg);
478 memcpy(&rsp, msg.data.u8, sizeof(rsp));
505 struct imx_mu_msg msg = {
533 memcpy(msg.data.u8, &cmd, sizeof(cmd));
535 res = imx_ele_call(&msg);