Lines Matching refs:SmramRanges
960 EFI_SMRAM_DESCRIPTOR *SmramRanges; in FindSmramInfo() local
979 SmramRanges = (EFI_SMRAM_DESCRIPTOR *)AllocatePool (Size); in FindSmramInfo()
980 ASSERT (SmramRanges != NULL); in FindSmramInfo()
982 Status = SmmAccess->GetCapabilities (SmmAccess, &Size, SmramRanges); in FindSmramInfo()
995 …if ((SmramRanges[Index].RegionState & (EFI_ALLOCATED | EFI_NEEDS_TESTING | EFI_NEEDS_ECC_INITIALIZ… in FindSmramInfo()
999 if (SmramRanges[Index].CpuStart >= BASE_1MB) { in FindSmramInfo()
1000 if ((SmramRanges[Index].CpuStart + SmramRanges[Index].PhysicalSize) <= BASE_4GB) { in FindSmramInfo()
1001 if (SmramRanges[Index].PhysicalSize >= MaxSize) { in FindSmramInfo()
1002 MaxSize = SmramRanges[Index].PhysicalSize; in FindSmramInfo()
1003 CurrentSmramRange = &SmramRanges[Index]; in FindSmramInfo()
1017 …if (SmramRanges[Index].CpuStart < *SmrrBase && *SmrrBase == (SmramRanges[Index].CpuStart + SmramRa… in FindSmramInfo()
1018 *SmrrBase = (UINT32)SmramRanges[Index].CpuStart; in FindSmramInfo()
1019 *SmrrSize = (UINT32)(*SmrrSize + SmramRanges[Index].PhysicalSize); in FindSmramInfo()
1021 …} else if ((*SmrrBase + *SmrrSize) == SmramRanges[Index].CpuStart && SmramRanges[Index].PhysicalSi… in FindSmramInfo()
1022 *SmrrSize = (UINT32)(*SmrrSize + SmramRanges[Index].PhysicalSize); in FindSmramInfo()
1028 FreePool (SmramRanges); in FindSmramInfo()