Lines Matching defs:header
247 * normal PCI header. NTB devices are identified by class
306 struct acpi_dmar_hardware_unit, header);
308 ((void *)drhd) + drhd->header.length,
410 static int dmar_parse_one_drhd(struct acpi_dmar_header *header, void *arg)
416 drhd = (struct acpi_dmar_hardware_unit *)header;
421 dmaru = kzalloc(sizeof(*dmaru) + header->length, GFP_KERNEL);
426 * If header is allocated from slab by ACPI _DSM method, we need to
430 memcpy(dmaru->hdr, header, header->length);
435 ((void *)drhd) + drhd->header.length,
467 static int __init dmar_parse_one_andd(struct acpi_dmar_header *header,
470 struct acpi_dmar_andd *andd = (void *)header;
473 if (strnlen(andd->device_name, header->length - 8) == header->length - 8) {
490 static int dmar_parse_one_rhsa(struct acpi_dmar_header *header, void *arg)
495 rhsa = (struct acpi_dmar_rhsa *)header;
522 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);
623 dmar->header.length - sizeof(*dmar), cb);
705 header);
735 header);
738 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length;
774 andd = ((void *)andd) + andd->header.length) {
775 if (andd->header.type == ACPI_DMAR_TYPE_NAMESPACE) {
2118 static int dmar_hp_add_drhd(struct acpi_dmar_header *header, void *arg)
2123 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);
2134 static int dmar_hp_remove_drhd(struct acpi_dmar_header *header, void *arg)
2140 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);
2160 static int dmar_hp_release_drhd(struct acpi_dmar_header *header, void *arg)
2164 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);