Lines Matching refs:hest_hdr
61 static int hest_esrc_len(struct acpi_hest_header *hest_hdr) in hest_esrc_len() argument
63 u16 hest_type = hest_hdr->type; in hest_esrc_len()
73 cmc = (struct acpi_hest_ia_corrected *)hest_hdr; in hest_esrc_len()
78 mc = (struct acpi_hest_ia_machine_check *)hest_hdr; in hest_esrc_len()
89 struct acpi_hest_header *hest_hdr; in apei_hest_parse() local
95 hest_hdr = (struct acpi_hest_header *)(hest_tab + 1); in apei_hest_parse()
97 len = hest_esrc_len(hest_hdr); in apei_hest_parse()
102 hest_hdr->type, hest_hdr->source_id); in apei_hest_parse()
105 if ((void *)hest_hdr + len > in apei_hest_parse()
109 hest_hdr->source_id); in apei_hest_parse()
113 rc = func(hest_hdr, data); in apei_hest_parse()
117 hest_hdr = (void *)hest_hdr + len; in apei_hest_parse()
129 static int __init hest_parse_ghes_count(struct acpi_hest_header *hest_hdr, void *data) in hest_parse_ghes_count() argument
133 if (hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR) in hest_parse_ghes_count()
138 static int __init hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data) in hest_parse_ghes() argument
144 if (hest_hdr->type != ACPI_HEST_TYPE_GENERIC_ERROR) in hest_parse_ghes()
147 if (!((struct acpi_hest_generic *)hest_hdr)->enabled) in hest_parse_ghes()
153 if (hdr->source_id == hest_hdr->source_id) { in hest_parse_ghes()
159 ghes_dev = platform_device_alloc("GHES", hest_hdr->source_id); in hest_parse_ghes()
163 rc = platform_device_add_data(ghes_dev, &hest_hdr, sizeof(void *)); in hest_parse_ghes()