Lines Matching defs:header
293 static __init int hmat_parse_locality(union acpi_subtable_headers *header,
296 struct acpi_hmat_locality *hmat_loc = (void *)header;
303 if (hmat_loc->header.length < sizeof(*hmat_loc)) {
304 pr_notice("Unexpected locality header length: %u\n",
305 hmat_loc->header.length);
315 if (hmat_loc->header.length < total_size) {
316 pr_notice("Unexpected locality header length:%u, minimum required:%u\n",
317 hmat_loc->header.length, total_size);
356 static __init int hmat_parse_cache(union acpi_subtable_headers *header,
359 struct acpi_hmat_cache *cache = (void *)header;
364 if (cache->header.length < sizeof(*cache)) {
365 pr_notice("Unexpected cache header length: %u\n",
366 cache->header.length);
419 static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *header,
422 struct acpi_hmat_proximity_domain *p = (void *)header;
425 if (p->header.length != sizeof(*p)) {
426 pr_notice("Unexpected address range header length: %u\n",
427 p->header.length);
460 static int __init hmat_parse_subtable(union acpi_subtable_headers *header,
463 struct acpi_hmat_structure *hdr = (void *)header;
470 return hmat_parse_proximity_domain(header, end);
472 return hmat_parse_locality(header, end);
474 return hmat_parse_cache(header, end);
480 static __init int srat_parse_mem_affinity(union acpi_subtable_headers *header,
483 struct acpi_srat_mem_affinity *ma = (void *)header;