Lines Matching refs:hmi_evt

26 	struct OpalHMIEvent hmi_evt;  member
39 struct OpalHMIEvent *hmi_evt) in print_core_checkstop_reason() argument
74 if (!hmi_evt->u.xstop_error.xstop_reason) { in print_core_checkstop_reason()
80 be32_to_cpu(hmi_evt->u.xstop_error.u.pir)); in print_core_checkstop_reason()
82 if (be32_to_cpu(hmi_evt->u.xstop_error.xstop_reason) & in print_core_checkstop_reason()
90 struct OpalHMIEvent *hmi_evt) in print_nx_checkstop_reason() argument
125 if (!hmi_evt->u.xstop_error.xstop_reason) { in print_nx_checkstop_reason()
131 be32_to_cpu(hmi_evt->u.xstop_error.u.chip_id)); in print_nx_checkstop_reason()
133 if (be32_to_cpu(hmi_evt->u.xstop_error.xstop_reason) & in print_nx_checkstop_reason()
141 struct OpalHMIEvent *hmi_evt) in print_npu_checkstop_reason() argument
149 if (!hmi_evt->u.xstop_error.xstop_reason) { in print_npu_checkstop_reason()
151 be32_to_cpu(hmi_evt->u.xstop_error.u.chip_id)); in print_npu_checkstop_reason()
165 reason_count = sizeof(hmi_evt->u.xstop_error.xstop_reason) / in print_npu_checkstop_reason()
168 reason = (hmi_evt->u.xstop_error.xstop_reason >> (8 * i)) & 0xFF; in print_npu_checkstop_reason()
172 be32_to_cpu(hmi_evt->u.xstop_error.u.chip_id), in print_npu_checkstop_reason()
178 struct OpalHMIEvent *hmi_evt) in print_checkstop_reason() argument
180 uint8_t type = hmi_evt->u.xstop_error.xstop_type; in print_checkstop_reason()
183 print_core_checkstop_reason(level, hmi_evt); in print_checkstop_reason()
186 print_nx_checkstop_reason(level, hmi_evt); in print_checkstop_reason()
189 print_npu_checkstop_reason(level, hmi_evt); in print_checkstop_reason()
198 static void print_hmi_event_info(struct OpalHMIEvent *hmi_evt) in print_hmi_event_info() argument
220 if (hmi_evt->version < OpalHMIEvt_V1) { in print_hmi_event_info()
222 hmi_evt->version); in print_hmi_event_info()
225 switch (hmi_evt->severity) { in print_hmi_event_info()
245 if (hmi_evt->severity != OpalHMI_SEV_NO_ERROR || __ratelimit(&rs)) { in print_hmi_event_info()
248 hmi_evt->disposition == OpalHMI_DISPOSITION_RECOVERED ? in print_hmi_event_info()
250 error_info = hmi_evt->type < ARRAY_SIZE(hmi_error_types) ? in print_hmi_event_info()
251 hmi_error_types[hmi_evt->type] in print_hmi_event_info()
255 be64_to_cpu(hmi_evt->hmer)); in print_hmi_event_info()
256 if ((hmi_evt->type == OpalHMI_ERROR_TFAC) || in print_hmi_event_info()
257 (hmi_evt->type == OpalHMI_ERROR_TFMR_PARITY)) in print_hmi_event_info()
259 be64_to_cpu(hmi_evt->tfmr)); in print_hmi_event_info()
262 if (hmi_evt->version < OpalHMIEvt_V2) in print_hmi_event_info()
266 if (hmi_evt->type == OpalHMI_ERROR_MALFUNC_ALERT) in print_hmi_event_info()
267 print_checkstop_reason(level, hmi_evt); in print_hmi_event_info()
273 struct OpalHMIEvent *hmi_evt; in hmi_event_handler() local
286 hmi_evt = (struct OpalHMIEvent *) &msg_node->hmi_evt; in hmi_event_handler()
287 print_hmi_event_info(hmi_evt); in hmi_event_handler()
288 disposition = hmi_evt->disposition; in hmi_event_handler()
316 hmi_evt = (struct OpalHMIEvent *)&msg.params[0]; in hmi_event_handler()
317 print_hmi_event_info(hmi_evt); in hmi_event_handler()
333 struct OpalHMIEvent *hmi_evt; in opal_handle_hmi_event() local
342 hmi_evt = (struct OpalHMIEvent *)&hmi_msg->params[0]; in opal_handle_hmi_event()
350 memcpy(&msg_node->hmi_evt, hmi_evt, sizeof(*hmi_evt)); in opal_handle_hmi_event()