Lines Matching refs:header

244 		 * normal PCI header.  NTB devices are identified by class
304 struct acpi_dmar_hardware_unit, header);
306 ((void *)drhd) + drhd->header.length,
408 static int dmar_parse_one_drhd(struct acpi_dmar_header *header, void *arg)
414 drhd = (struct acpi_dmar_hardware_unit *)header;
419 dmaru = kzalloc(sizeof(*dmaru) + header->length, GFP_KERNEL);
424 * If header is allocated from slab by ACPI _DSM method, we need to
428 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)
530 switch (header->type) {
532 drhd = container_of(header, struct acpi_dmar_hardware_unit,
533 header);
538 rmrr = container_of(header, struct acpi_dmar_reserved_memory,
539 header);
545 atsr = container_of(header, struct acpi_dmar_atsr, header);
549 rhsa = container_of(header, struct acpi_dmar_rhsa, header);
559 satc = container_of(header, struct acpi_dmar_satc, header);
628 dmar->header.length - sizeof(*dmar), cb);
711 header);
741 header);
744 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length;
780 andd = ((void *)andd) + andd->header.length) {
781 if (andd->header.type == ACPI_DMAR_TYPE_NAMESPACE) {
2283 static int dmar_hp_add_drhd(struct acpi_dmar_header *header, void *arg)
2288 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);
2299 static int dmar_hp_remove_drhd(struct acpi_dmar_header *header, void *arg)
2305 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);
2325 static int dmar_hp_release_drhd(struct acpi_dmar_header *header, void *arg)
2329 dmaru = dmar_find_dmaru((struct acpi_dmar_hardware_unit *)header);