Lines Matching refs:gdata

463 static bool ghes_handle_memory_failure(struct acpi_hest_generic_data *gdata,  in ghes_handle_memory_failure()  argument
467 int sec_sev = ghes_severity(gdata->error_severity); in ghes_handle_memory_failure()
468 struct cper_sec_mem_err *mem_err = acpi_hest_get_payload(gdata); in ghes_handle_memory_failure()
475 (gdata->flags & CPER_SEC_ERROR_THRESHOLD_EXCEEDED)) in ghes_handle_memory_failure()
486 static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, int sev) in ghes_handle_arm_hw_error() argument
488 struct cper_sec_proc_arm *err = acpi_hest_get_payload(gdata); in ghes_handle_arm_hw_error()
495 sec_sev = ghes_severity(gdata->error_severity); in ghes_handle_arm_hw_error()
544 static void ghes_handle_aer(struct acpi_hest_generic_data *gdata) in ghes_handle_aer() argument
547 struct cper_sec_pcie *pcie_err = acpi_hest_get_payload(gdata); in ghes_handle_aer()
556 aer_severity = cper_severity_to_aer(gdata->error_severity); in ghes_handle_aer()
563 if (gdata->flags & CPER_SEC_RESET) in ghes_handle_aer()
592 struct acpi_hest_generic_data *gdata; in ghes_vendor_record_work_func() local
596 gdata = GHES_GDATA_FROM_VENDOR_ENTRY(entry); in ghes_vendor_record_work_func()
599 entry->error_severity, gdata); in ghes_vendor_record_work_func()
601 len = GHES_VENDOR_ENTRY_LEN(acpi_hest_get_record_size(gdata)); in ghes_vendor_record_work_func()
605 static void ghes_defer_non_standard_event(struct acpi_hest_generic_data *gdata, in ghes_defer_non_standard_event() argument
612 len = GHES_VENDOR_ENTRY_LEN(acpi_hest_get_record_size(gdata)); in ghes_defer_non_standard_event()
618 memcpy(copied_gdata, gdata, acpi_hest_get_record_size(gdata)); in ghes_defer_non_standard_event()
629 struct acpi_hest_generic_data *gdata; in ghes_do_proc() local
636 apei_estatus_for_each_section(estatus, gdata) { in ghes_do_proc()
637 sec_type = (guid_t *)gdata->section_type; in ghes_do_proc()
638 sec_sev = ghes_severity(gdata->error_severity); in ghes_do_proc()
639 if (gdata->validation_bits & CPER_SEC_VALID_FRU_ID) in ghes_do_proc()
640 fru_id = (guid_t *)gdata->fru_id; in ghes_do_proc()
642 if (gdata->validation_bits & CPER_SEC_VALID_FRU_TEXT) in ghes_do_proc()
643 fru_text = gdata->fru_text; in ghes_do_proc()
646 struct cper_sec_mem_err *mem_err = acpi_hest_get_payload(gdata); in ghes_do_proc()
651 queued = ghes_handle_memory_failure(gdata, sev); in ghes_do_proc()
654 ghes_handle_aer(gdata); in ghes_do_proc()
657 queued = ghes_handle_arm_hw_error(gdata, sev); in ghes_do_proc()
659 void *err = acpi_hest_get_payload(gdata); in ghes_do_proc()
661 ghes_defer_non_standard_event(gdata, sev); in ghes_do_proc()
664 gdata->error_data_length); in ghes_do_proc()