Lines Matching defs:header

243 		 * normal PCI header.  NTB devices are identified by class
303 struct acpi_dmar_hardware_unit, header);
305 ((void *)drhd) + drhd->header.length,
407 static int dmar_parse_one_drhd(struct acpi_dmar_header *header, void *arg)
413 drhd = (struct acpi_dmar_hardware_unit *)header;
418 dmaru = kzalloc(sizeof(*dmaru) + header->length, GFP_KERNEL);
423 * If header is allocated from slab by ACPI _DSM method, we need to
427 memcpy(dmaru->hdr, header, header->length);
434 ((void *)drhd) + drhd->header.length,
466 static int __init dmar_parse_one_andd(struct acpi_dmar_header *header,
469 struct acpi_dmar_andd *andd = (void *)header;
472 if (strnlen(andd->device_name, header->length - 8) == header->length - 8) {
489 static int dmar_parse_one_rhsa(struct acpi_dmar_header *header, void *arg)
494 rhsa = (struct acpi_dmar_rhsa *)header;
521 dmar_table_print_dmar_entry(struct acpi_dmar_header *header)
529 switch (header->type) {
531 drhd = container_of(header, struct acpi_dmar_hardware_unit,
532 header);
537 rmrr = container_of(header, struct acpi_dmar_reserved_memory,
538 header);
544 atsr = container_of(header, struct acpi_dmar_atsr, header);
548 rhsa = container_of(header, struct acpi_dmar_rhsa, header);
558 satc = container_of(header, struct acpi_dmar_satc, header);
627 dmar->header.length - sizeof(*dmar), cb);
710 header);
740 header);
743 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length;
779 andd = ((void *)andd) + andd->header.length) {
780 if (andd->header.type == ACPI_DMAR_TYPE_NAMESPACE) {
2253 static int dmar_hp_add_drhd(struct acpi_dmar_header *header, void *arg)
2258 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);
2269 static int dmar_hp_remove_drhd(struct acpi_dmar_header *header, void *arg)
2275 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);
2295 static int dmar_hp_release_drhd(struct acpi_dmar_header *header, void *arg)
2299 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);