Lines Matching refs:hest_hdr

52 static inline bool is_generic_error(struct acpi_hest_header *hest_hdr)
54 return hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR ||
55 hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR_V2;
58 static int hest_esrc_len(struct acpi_hest_header *hest_hdr)
60 u16 hest_type = hest_hdr->type;
70 cmc = (struct acpi_hest_ia_corrected *)hest_hdr;
75 mc = (struct acpi_hest_ia_machine_check *)hest_hdr;
80 mc = (struct acpi_hest_ia_deferred_check *)hest_hdr;
89 typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data);
93 struct acpi_hest_header *hest_hdr;
99 hest_hdr = (struct acpi_hest_header *)(hest_tab + 1);
101 len = hest_esrc_len(hest_hdr);
106 hest_hdr->type, hest_hdr->source_id);
109 if ((void *)hest_hdr + len >
113 hest_hdr->source_id);
117 rc = func(hest_hdr, data);
121 hest_hdr = (void *)hest_hdr + len;
131 static int __init hest_parse_cmc(struct acpi_hest_header *hest_hdr, void *data)
133 if (hest_hdr->type != ACPI_HEST_TYPE_IA32_CORRECTED_CHECK)
137 return !arch_apei_enable_cmcff(hest_hdr, data);
147 static int __init hest_parse_ghes_count(struct acpi_hest_header *hest_hdr, void *data)
151 if (is_generic_error(hest_hdr))
156 static int __init hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data)
162 if (!is_generic_error(hest_hdr))
165 if (!((struct acpi_hest_generic *)hest_hdr)->enabled)
171 if (hdr->source_id == hest_hdr->source_id) {
177 ghes_dev = platform_device_alloc("GHES", hest_hdr->source_id);
181 rc = platform_device_add_data(ghes_dev, &hest_hdr, sizeof(void *));