Lines Matching refs:Index
508 @param StartIndex Start index into the Gcd Memory Space Map.
509 @param EndIndex End index into the Gcd Memory Space Map.
525 UINTN Index;
529 for (Index = 0; Index < NumberOfDescriptors; Index++) {
530 if (BaseAddress >= MemorySpaceMap[Index].BaseAddress &&
531 BaseAddress < MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length) {
532 *StartIndex = Index;
534 if (BaseAddress + Length - 1 >= MemorySpaceMap[Index].BaseAddress &&
535 BaseAddress + Length - 1 < MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length) {
536 *EndIndex = Index;
569 UINTN Index;
593 for (Index = StartIndex; Index <= EndIndex; Index++) {
594 if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
600 if (BaseAddress >= MemorySpaceMap[Index].BaseAddress) {
603 RegionStart = MemorySpaceMap[Index].BaseAddress;
605 if (BaseAddress + Length - 1 < MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length) {
608 RegionLength = MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length - RegionStart;
616 (MemorySpaceMap[Index].Attributes & ~EFI_MEMORY_CACHETYPE_MASK) | (MemorySpaceMap[Index].Capabilities & Attributes)
636 UINTN Index;
691 for (Index = 0; Index < NumberOfDescriptors; Index++) {
692 if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
696 MemorySpaceMap[Index].BaseAddress,
697 MemorySpaceMap[Index].Length,
698 (MemorySpaceMap[Index].Attributes & ~EFI_MEMORY_CACHETYPE_MASK) |
699 (MemorySpaceMap[Index].Capabilities & DefaultAttributes)
706 for (Index = 0; Index < FirmwareVariableMtrrCount; Index++) {
707 if (VariableMtrr[Index].Valid &&
708 VariableMtrr[Index].Type == MTRR_CACHE_WRITE_BACK) {
712 VariableMtrr[Index].BaseAddress,
713 VariableMtrr[Index].Length,
722 for (Index = 0; Index < FirmwareVariableMtrrCount; Index++) {
723 if (VariableMtrr[Index].Valid &&
724 VariableMtrr[Index].Type != MTRR_CACHE_WRITE_BACK &&
725 VariableMtrr[Index].Type != MTRR_CACHE_UNCACHEABLE) {
726 Attributes = GetMemorySpaceAttributeFromMtrrType ((UINT8) VariableMtrr[Index].Type);
730 VariableMtrr[Index].BaseAddress,
731 VariableMtrr[Index].Length,
740 for (Index = 0; Index < FirmwareVariableMtrrCount; Index++) {
741 if (VariableMtrr[Index].Valid &&
742 VariableMtrr[Index].Type == MTRR_CACHE_UNCACHEABLE) {
746 VariableMtrr[Index].BaseAddress,
747 VariableMtrr[Index].Length,
760 for (Index = 0; Index < MTRR_NUMBER_OF_FIXED_MTRR; Index++) {
761 RegValue = MtrrFixedSettings.Mtrr[Index];
785 BaseAddress = mFixedMtrrTable[Index].BaseAddress + mFixedMtrrTable[Index].Length * SubIndex;
790 Length += mFixedMtrrTable[Index].Length;