Lines Matching refs:rsdp
117 const struct acpi_rsdp *rsdp = (const struct acpi_rsdp *)base; in scan_for_rsdp() local
119 if (memcmp(rsdp->magic, "RSD PTR ", 8)) in scan_for_rsdp()
122 if (checksum_range(rsdp, 20)) in scan_for_rsdp()
125 if (rsdp->rev > 0) { in scan_for_rsdp()
126 if (base + rsdp->len >= end || in scan_for_rsdp()
127 checksum_range(rsdp, rsdp->len)) in scan_for_rsdp()
131 return rsdp; in scan_for_rsdp()
140 const struct acpi_rsdp *rsdp; in find_rsdp() local
144 rsdp = scan_for_rsdp(ebda, ebda+1024); in find_rsdp()
146 if (rsdp) in find_rsdp()
147 return rsdp; in find_rsdp()
173 static void dump_rsdt(struct upload_backend *be, const struct acpi_rsdp *rsdp) in dump_rsdt() argument
178 rsdt = (const struct acpi_rsdt *)rsdp->rsdt_addr; in dump_rsdt()
198 static void dump_xsdt(struct upload_backend *be, const struct acpi_rsdp *rsdp) in dump_xsdt() argument
201 uint32_t rsdp_len = rsdp->rev > 0 ? rsdp->len : 20; in dump_xsdt()
207 if (!addr_ok(rsdp->xsdt_addr)) in dump_xsdt()
210 xsdt = (const struct acpi_xsdt *)(size_t)rsdp->xsdt_addr; in dump_xsdt()
235 const struct acpi_rsdp *rsdp; in dump_acpi() local
238 rsdp = find_rsdp(); in dump_acpi()
242 if (!rsdp) in dump_acpi()
247 rsdp_len = rsdp->rev > 0 ? rsdp->len : 20; in dump_acpi()
249 dump_table(be, "RSDP", rsdp, rsdp_len); in dump_acpi()
251 dump_rsdt(be, rsdp); in dump_acpi()
252 dump_xsdt(be, rsdp); in dump_acpi()