Lines Matching refs:rsdp
43 struct acpi_table_rsdp *rsdp, *ret = NULL; in found_rsdp() local
48 rsdp = (struct acpi_table_rsdp *)(base + ofs); in found_rsdp()
51 …if ((strncmp(rsdp->signature, ACPI_SIG_RSDP, strnlen_s(ACPI_SIG_RSDP, sizeof(rsdp->signature))) ==… in found_rsdp()
52 && (calculate_sum8(rsdp, ACPI_RSDP_CHECKSUM_LENGTH) == 0U)) { in found_rsdp()
53 ret = rsdp; in found_rsdp()
71 struct acpi_table_rsdp *rsdp = NULL; in init_acpi() local
73 rsdp = (struct acpi_table_rsdp *)(get_acrn_boot_info()->acpi_rsdp_va); in init_acpi()
74 if (rsdp == NULL) { in init_acpi()
80 rsdp = found_rsdp((char *)hpa2hva((uint64_t)(*addr) << 4U), 0x400UL); in init_acpi()
82 if (rsdp == NULL) { in init_acpi()
84 rsdp = found_rsdp((char *)hpa2hva(0xe0000UL), 0x20000UL); in init_acpi()
87 if (rsdp == NULL) { in init_acpi()
95 rsdp = found_rsdp((char *)hpa2hva(entry[i].baseaddr), entry[i].length); in init_acpi()
96 if (rsdp != NULL) { in init_acpi()
103 if (rsdp == NULL) { in init_acpi()
108 acpi_rsdp = rsdp; in init_acpi()
128 struct acpi_table_rsdp *rsdp; in get_acpi_tbl() local
137 rsdp = get_rsdp(); in get_acpi_tbl()
139 if ((rsdp->revision >= 2U) && (rsdp->xsdt_physical_address != 0UL)) { in get_acpi_tbl()
145 xsdt = (struct acpi_table_xsdt *)hpa2hva(rsdp->xsdt_physical_address); in get_acpi_tbl()
156 rsdt = (struct acpi_table_rsdt *)hpa2hva((uint64_t)rsdp->rsdt_physical_address); in get_acpi_tbl()