Searched refs:hest_hdr (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/drivers/pci/pcie/aer/
H A Daerdrv_acpi.c32 static inline bool hest_match_type(struct acpi_hest_header *hest_hdr, hest_match_type() argument
35 u16 hest_type = hest_hdr->type; hest_match_type()
53 static int hest_source_is_pcie_aer(struct acpi_hest_header *hest_hdr) hest_source_is_pcie_aer() argument
55 if (hest_hdr->type == ACPI_HEST_TYPE_AER_ROOT_PORT || hest_source_is_pcie_aer()
56 hest_hdr->type == ACPI_HEST_TYPE_AER_ENDPOINT || hest_source_is_pcie_aer()
57 hest_hdr->type == ACPI_HEST_TYPE_AER_BRIDGE) hest_source_is_pcie_aer()
62 static int aer_hest_parse(struct acpi_hest_header *hest_hdr, void *data) aer_hest_parse() argument
68 if (!hest_source_is_pcie_aer(hest_hdr)) aer_hest_parse()
71 p = (struct acpi_hest_aer_common *)(hest_hdr + 1); aer_hest_parse()
85 if (hest_match_type(hest_hdr, info->pci_dev)) aer_hest_parse()
/linux-4.4.14/drivers/acpi/apei/
H A Dhest.c57 static int hest_esrc_len(struct acpi_hest_header *hest_hdr) hest_esrc_len() argument
59 u16 hest_type = hest_hdr->type; hest_esrc_len()
69 cmc = (struct acpi_hest_ia_corrected *)hest_hdr; hest_esrc_len()
74 mc = (struct acpi_hest_ia_machine_check *)hest_hdr; hest_esrc_len()
85 struct acpi_hest_header *hest_hdr; apei_hest_parse() local
91 hest_hdr = (struct acpi_hest_header *)(hest_tab + 1); apei_hest_parse()
93 len = hest_esrc_len(hest_hdr); apei_hest_parse()
98 hest_hdr->type, hest_hdr->source_id); apei_hest_parse()
101 if ((void *)hest_hdr + len > apei_hest_parse()
105 hest_hdr->source_id); apei_hest_parse()
109 rc = func(hest_hdr, data); apei_hest_parse()
113 hest_hdr = (void *)hest_hdr + len; apei_hest_parse()
124 static int __init hest_parse_cmc(struct acpi_hest_header *hest_hdr, void *data) hest_parse_cmc() argument
126 return arch_apei_enable_cmcff(hest_hdr, data); hest_parse_cmc()
134 static int __init hest_parse_ghes_count(struct acpi_hest_header *hest_hdr, void *data) hest_parse_ghes_count() argument
138 if (hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR) hest_parse_ghes_count()
143 static int __init hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data) hest_parse_ghes() argument
149 if (hest_hdr->type != ACPI_HEST_TYPE_GENERIC_ERROR) hest_parse_ghes()
152 if (!((struct acpi_hest_generic *)hest_hdr)->enabled) hest_parse_ghes()
158 if (hdr->source_id == hest_hdr->source_id) { hest_parse_ghes()
164 ghes_dev = platform_device_alloc("GHES", hest_hdr->source_id); hest_parse_ghes()
168 rc = platform_device_add_data(ghes_dev, &hest_hdr, sizeof(void *)); hest_parse_ghes()
H A Dapei-base.c764 int __weak arch_apei_enable_cmcff(struct acpi_hest_header *hest_hdr, arch_apei_enable_cmcff() argument
/linux-4.4.14/include/acpi/
H A Dapei.h33 typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data);
45 int arch_apei_enable_cmcff(struct acpi_hest_header *hest_hdr, void *data);
/linux-4.4.14/arch/x86/kernel/acpi/
H A Dapei.c20 int arch_apei_enable_cmcff(struct acpi_hest_header *hest_hdr, void *data) arch_apei_enable_cmcff() argument
27 if (hest_hdr->type != ACPI_HEST_TYPE_IA32_CORRECTED_CHECK) arch_apei_enable_cmcff()
30 cmc = (struct acpi_hest_ia_corrected *)hest_hdr; arch_apei_enable_cmcff()

Completed in 265 milliseconds