Lines Matching refs:Index
28 @param StartIndex Start index into the Gcd Memory Space Map.
29 @param EndIndex End index into the Gcd Memory Space Map.
45 UINTN Index;
49 for (Index = 0; Index < NumberOfDescriptors; Index++) {
50 if ((BaseAddress >= MemorySpaceMap[Index].BaseAddress) &&
51 (BaseAddress < (MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length))) {
52 *StartIndex = Index;
54 if (((BaseAddress + Length - 1) >= MemorySpaceMap[Index].BaseAddress) &&
55 ((BaseAddress + Length - 1) < (MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length))) {
56 *EndIndex = Index;
90 UINTN Index;
124 for (Index = StartIndex; Index <= EndIndex; Index++) {
125 if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
131 if (BaseAddress >= MemorySpaceMap[Index].BaseAddress) {
134 RegionStart = MemorySpaceMap[Index].BaseAddress;
136 if ((BaseAddress + Length - 1) < (MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length)) {
139 RegionLength = MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length - RegionStart;
147 (MemorySpaceMap[Index].Attributes & ~EFI_MEMORY_CACHETYPE_MASK) | (MemorySpaceMap[Index].Capabilities & Attributes)