Lines Matching refs:Index
296 PCI_RESOURCE_TYPE Index;
317 for (Index = TypeIo; Index < TypeMax; Index++) {
318 RootBridgeInstance->ResAllocNode[Index].Type = Index;
319 RootBridgeInstance->ResAllocNode[Index].Base = 0;
320 RootBridgeInstance->ResAllocNode[Index].Length = 0;
321 RootBridgeInstance->ResAllocNode[Index].Status = ResNone;
371 for (Index = TypeIo; Index < TypeBus; Index++) {
372 if (RootBridgeInstance->ResAllocNode[Index].Status != ResNone) {
374 AddrLen = RootBridgeInstance->ResAllocNode[Index].Length;
379 BitsOfAlignment = (UINTN) (HighBitSet64 (RootBridgeInstance->ResAllocNode[Index].Alignment) + 1);
381 switch (Index) {
404 RootBridgeInstance->ResAllocNode[Index].Base = (UINTN)BaseAddress;
405 RootBridgeInstance->ResAllocNode[Index].Status = ResAllocated;
409 RootBridgeInstance->ResAllocNode[Index].Length = 0;
439 RootBridgeInstance->ResAllocNode[Index].Base = (UINTN)BaseAddress;
440 RootBridgeInstance->ResAllocNode[Index].Status = ResAllocated;
447 RootBridgeInstance->ResAllocNode[Index].Length = 0;
481 for (Index = TypeIo; Index < TypeBus; Index++) {
482 if (RootBridgeInstance->ResAllocNode[Index].Status == ResAllocated) {
483 AddrLen = RootBridgeInstance->ResAllocNode[Index].Length;
484 BaseAddress = RootBridgeInstance->ResAllocNode[Index].Base;
485 switch (Index) {
515 RootBridgeInstance->ResAllocNode[Index].Type = Index;
516 RootBridgeInstance->ResAllocNode[Index].Base = 0;
517 RootBridgeInstance->ResAllocNode[Index].Length = 0;
518 RootBridgeInstance->ResAllocNode[Index].Status = ResNone;
1052 UINTN Index;
1073 for (Index = 0; Index < TypeBus; Index ++) {
1074 if (RootBridgeInstance->ResAllocNode[Index].Status != ResNone) {
1097 for (Index = 0; Index < TypeBus; Index ++) {
1098 if (RootBridgeInstance->ResAllocNode[Index].Status != ResNone) {
1100 ResStatus = RootBridgeInstance->ResAllocNode[Index].Status;
1102 switch (Index) {
1113 Ptr->AddrRangeMin = RootBridgeInstance->ResAllocNode[Index].Base;
1117 Ptr->AddrLen = RootBridgeInstance->ResAllocNode[Index].Length;
1130 Ptr->AddrRangeMin = RootBridgeInstance->ResAllocNode[Index].Base;
1134 Ptr->AddrLen = RootBridgeInstance->ResAllocNode[Index].Length;