Lines Matching defs:header
294 static __init int hmat_parse_locality(union acpi_subtable_headers *header,
297 struct acpi_hmat_locality *hmat_loc = (void *)header;
304 if (hmat_loc->header.length < sizeof(*hmat_loc)) {
305 pr_notice("HMAT: Unexpected locality header length: %u\n",
306 hmat_loc->header.length);
316 if (hmat_loc->header.length < total_size) {
317 pr_notice("HMAT: Unexpected locality header length:%u, minimum required:%u\n",
318 hmat_loc->header.length, total_size);
357 static __init int hmat_parse_cache(union acpi_subtable_headers *header,
360 struct acpi_hmat_cache *cache = (void *)header;
365 if (cache->header.length < sizeof(*cache)) {
366 pr_notice("HMAT: Unexpected cache header length: %u\n",
367 cache->header.length);
420 static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *header,
423 struct acpi_hmat_proximity_domain *p = (void *)header;
426 if (p->header.length != sizeof(*p)) {
427 pr_notice("HMAT: Unexpected address range header length: %u\n",
428 p->header.length);
461 static int __init hmat_parse_subtable(union acpi_subtable_headers *header,
464 struct acpi_hmat_structure *hdr = (void *)header;
471 return hmat_parse_proximity_domain(header, end);
473 return hmat_parse_locality(header, end);
475 return hmat_parse_cache(header, end);
481 static __init int srat_parse_mem_affinity(union acpi_subtable_headers *header,
484 struct acpi_srat_mem_affinity *ma = (void *)header;