Lines Matching refs:header

418 static __init int hmat_parse_locality(union acpi_subtable_headers *header,
421 struct acpi_hmat_locality *hmat_loc = (void *)header;
427 if (hmat_loc->header.length < sizeof(*hmat_loc)) {
428 pr_notice("Unexpected locality header length: %u\n",
429 hmat_loc->header.length);
439 if (hmat_loc->header.length < total_size) {
440 pr_notice("Unexpected locality header length:%u, minimum required:%u\n",
441 hmat_loc->header.length, total_size);
473 static __init int hmat_parse_cache(union acpi_subtable_headers *header,
476 struct acpi_hmat_cache *cache = (void *)header;
481 if (cache->header.length < sizeof(*cache)) {
482 pr_notice("Unexpected cache header length: %u\n",
483 cache->header.length);
536 static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *header,
539 struct acpi_hmat_proximity_domain *p = (void *)header;
542 if (p->header.length != sizeof(*p)) {
543 pr_notice("Unexpected address range header length: %u\n",
544 p->header.length);
577 static int __init hmat_parse_subtable(union acpi_subtable_headers *header,
580 struct acpi_hmat_structure *hdr = (void *)header;
587 return hmat_parse_proximity_domain(header, end);
589 return hmat_parse_locality(header, end);
591 return hmat_parse_cache(header, end);
597 static __init int srat_parse_mem_affinity(union acpi_subtable_headers *header,
600 struct acpi_srat_mem_affinity *ma = (void *)header;
610 static __init int srat_parse_genport_affinity(union acpi_subtable_headers *header,
613 struct acpi_srat_generic_affinity *ga = (void *)header;