Lines Matching refs:header
36 container_of(entry, struct acpi_madt_local_apic, header); in map_lapic_id()
52 container_of(entry, struct acpi_madt_local_x2apic, header); in map_x2apic_id()
69 container_of(entry, struct acpi_madt_local_sapic, header); in map_lsapic_id()
91 container_of(entry, struct acpi_madt_generic_interrupt, header); in map_gicc_mpidr()
117 container_of(entry, struct acpi_madt_rintc, header); in map_rintc_hartid()
142 container_of(entry, struct acpi_madt_core_pic, header); in map_core_pic_id()
169 madt_end = entry + madt->header.length; in map_madt_entry()
175 struct acpi_subtable_header *header = in map_madt_entry() local
177 if (header->type == ACPI_MADT_TYPE_LOCAL_APIC) { in map_madt_entry()
178 if (!map_lapic_id(header, acpi_id, &phys_id)) in map_madt_entry()
180 } else if (header->type == ACPI_MADT_TYPE_LOCAL_X2APIC) { in map_madt_entry()
181 if (!map_x2apic_id(header, type, acpi_id, &phys_id)) in map_madt_entry()
183 } else if (header->type == ACPI_MADT_TYPE_LOCAL_SAPIC) { in map_madt_entry()
184 if (!map_lsapic_id(header, type, acpi_id, &phys_id)) in map_madt_entry()
186 } else if (header->type == ACPI_MADT_TYPE_GENERIC_INTERRUPT) { in map_madt_entry()
187 if (!map_gicc_mpidr(header, type, acpi_id, &phys_id)) in map_madt_entry()
189 } else if (header->type == ACPI_MADT_TYPE_RINTC) { in map_madt_entry()
190 if (!map_rintc_hartid(header, type, acpi_id, &phys_id)) in map_madt_entry()
192 } else if (header->type == ACPI_MADT_TYPE_CORE_PIC) { in map_madt_entry()
193 if (!map_core_pic_id(header, type, acpi_id, &phys_id)) in map_madt_entry()
196 entry += header->length; in map_madt_entry()
222 struct acpi_subtable_header *header; in map_mat_entry() local
237 header = (struct acpi_subtable_header *)obj->buffer.pointer; in map_mat_entry()
238 if (header->type == ACPI_MADT_TYPE_LOCAL_APIC) in map_mat_entry()
239 map_lapic_id(header, acpi_id, &phys_id); in map_mat_entry()
240 else if (header->type == ACPI_MADT_TYPE_LOCAL_SAPIC) in map_mat_entry()
241 map_lsapic_id(header, type, acpi_id, &phys_id); in map_mat_entry()
242 else if (header->type == ACPI_MADT_TYPE_LOCAL_X2APIC) in map_mat_entry()
243 map_x2apic_id(header, type, acpi_id, &phys_id); in map_mat_entry()
244 else if (header->type == ACPI_MADT_TYPE_GENERIC_INTERRUPT) in map_mat_entry()
245 map_gicc_mpidr(header, type, acpi_id, &phys_id); in map_mat_entry()
246 else if (header->type == ACPI_MADT_TYPE_CORE_PIC) in map_mat_entry()
247 map_core_pic_id(header, type, acpi_id, &phys_id); in map_mat_entry()
348 madt_end = entry + madt->header.length; in parse_madt_ioapic_entry()
368 struct acpi_subtable_header *header; in parse_mat_ioapic_entry() local
383 header = (struct acpi_subtable_header *)obj->buffer.pointer; in parse_mat_ioapic_entry()
384 if (header->type == ACPI_MADT_TYPE_IO_APIC) in parse_mat_ioapic_entry()
385 get_ioapic_id(header, gsi_base, phys_addr, &apic_id); in parse_mat_ioapic_entry()