Lines Matching refs:header
296 struct acpi_dmar_hardware_unit, header); in dmar_pci_bus_add_dev()
298 ((void *)drhd) + drhd->header.length, in dmar_pci_bus_add_dev()
374 static int dmar_parse_one_drhd(struct acpi_dmar_header *header, void *arg) in dmar_parse_one_drhd() argument
380 drhd = (struct acpi_dmar_hardware_unit *)header; in dmar_parse_one_drhd()
385 dmaru = kzalloc(sizeof(*dmaru) + header->length, GFP_KERNEL); in dmar_parse_one_drhd()
394 memcpy(dmaru->hdr, header, header->length); in dmar_parse_one_drhd()
399 ((void *)drhd) + drhd->header.length, in dmar_parse_one_drhd()
431 static int __init dmar_parse_one_andd(struct acpi_dmar_header *header, in dmar_parse_one_andd() argument
434 struct acpi_dmar_andd *andd = (void *)header; in dmar_parse_one_andd()
437 if (strnlen(andd->device_name, header->length - 8) == header->length - 8) { in dmar_parse_one_andd()
453 static int dmar_parse_one_rhsa(struct acpi_dmar_header *header, void *arg) in dmar_parse_one_rhsa() argument
458 rhsa = (struct acpi_dmar_rhsa *)header; in dmar_parse_one_rhsa()
485 dmar_table_print_dmar_entry(struct acpi_dmar_header *header) in dmar_table_print_dmar_entry() argument
492 switch (header->type) { in dmar_table_print_dmar_entry()
494 drhd = container_of(header, struct acpi_dmar_hardware_unit, in dmar_table_print_dmar_entry()
495 header); in dmar_table_print_dmar_entry()
500 rmrr = container_of(header, struct acpi_dmar_reserved_memory, in dmar_table_print_dmar_entry()
501 header); in dmar_table_print_dmar_entry()
507 atsr = container_of(header, struct acpi_dmar_atsr, header); in dmar_table_print_dmar_entry()
511 rhsa = container_of(header, struct acpi_dmar_rhsa, header); in dmar_table_print_dmar_entry()
586 dmar->header.length - sizeof(*dmar), cb); in dmar_walk_dmar_table()
668 header); in dmar_find_matched_drhd_unit()
698 header); in dmar_acpi_insert_dev_scope()
701 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length; in dmar_acpi_insert_dev_scope()
737 andd = ((void *)andd) + andd->header.length) { in dmar_acpi_dev_scope_init()
738 if (andd->header.type == ACPI_DMAR_TYPE_NAMESPACE) { in dmar_acpi_dev_scope_init()
1820 static int dmar_hp_add_drhd(struct acpi_dmar_header *header, void *arg) in dmar_hp_add_drhd() argument
1825 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header); in dmar_hp_add_drhd()
1836 static int dmar_hp_remove_drhd(struct acpi_dmar_header *header, void *arg) in dmar_hp_remove_drhd() argument
1842 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header); in dmar_hp_remove_drhd()
1861 static int dmar_hp_release_drhd(struct acpi_dmar_header *header, void *arg) in dmar_hp_release_drhd() argument
1865 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header); in dmar_hp_release_drhd()