Lines Matching refs:hdr
23 static void dump_hdr(struct acpi_table_header *hdr) in dump_hdr() argument
25 bool has_hdr = memcmp(hdr->signature, "FACS", ACPI_NAME_LEN); in dump_hdr()
27 printf("%.*s %08lx %06x", ACPI_NAME_LEN, hdr->signature, in dump_hdr()
28 (ulong)map_to_sysmem(hdr), hdr->length); in dump_hdr()
30 printf(" (v%02d %.6s %.8s %x %.4s %x)\n", hdr->revision, in dump_hdr()
31 hdr->oem_id, hdr->oem_table_id, hdr->oem_revision, in dump_hdr()
32 hdr->aslc_id, hdr->aslc_revision); in dump_hdr()
57 struct acpi_table_header *hdr; in find_table() local
59 hdr = map_sysmem(rsdt->entry[i], 0); in find_table()
60 if (!memcmp(hdr->signature, sig, ACPI_NAME_LEN)) in find_table()
61 return hdr; in find_table()
62 if (!memcmp(hdr->signature, "FACP", ACPI_NAME_LEN)) { in find_table()
63 struct acpi_fadt *fadt = (struct acpi_fadt *)hdr; in find_table()
78 struct acpi_table_header *hdr; in dump_table_name() local
80 hdr = find_table(sig); in dump_table_name()
81 if (!hdr) in dump_table_name()
83 printf("%.*s @ %08lx\n", ACPI_NAME_LEN, hdr->signature, in dump_table_name()
84 (ulong)map_to_sysmem(hdr)); in dump_table_name()
85 print_buffer(0, hdr, 1, hdr->length, 0); in dump_table_name()
108 struct acpi_table_header *hdr; in list_rsdt() local
112 hdr = map_sysmem(rsdt->entry[i], 0); in list_rsdt()
113 dump_hdr(hdr); in list_rsdt()
114 if (!memcmp(hdr->signature, "FACP", ACPI_NAME_LEN)) in list_rsdt()
115 list_fadt((struct acpi_fadt *)hdr); in list_rsdt()