Lines Matching refs:Index
137 UINTN Index;
141 for (Index = mMaxNumberOfCpus; Index-- > 0;) {
142 if (Index != BspIndex && mSmmMpSyncData->CpuData[Index].Present) {
143 ReleaseSemaphore (&mSmmMpSyncData->CpuData[Index].Run);
162 UINTN Index;
174 for (Index = mMaxNumberOfCpus; Index-- > 0;) {
175 if (!CpuData[Index].Present && ProcessorInfo[Index].ProcessorId != INVALID_APIC_ID) {
176 if (((Exceptions & ARRIVAL_EXCEPTION_DELAYED) != 0) && SmmCpuFeaturesGetSmmRegister (Index, SmmRegSmmDelayed) != 0) {
179 if (((Exceptions & ARRIVAL_EXCEPTION_BLOCKED) != 0) && SmmCpuFeaturesGetSmmRegister (Index, SmmRegSmmBlocked) != 0) {
182 if (((Exceptions & ARRIVAL_EXCEPTION_SMI_DISABLED) != 0) && SmmCpuFeaturesGetSmmRegister (Index, SmmRegSmmEnable) != 0) {
205 UINTN Index;
250 for (Index = mMaxNumberOfCpus; Index-- > 0;) {
251 if (!mSmmMpSyncData->CpuData[Index].Present && gSmmCpuPrivate->ProcessorInfo[Index].ProcessorId != INVALID_APIC_ID) {
252 SendSmiIpi ((UINT32)gSmmCpuPrivate->ProcessorInfo[Index].ProcessorId);
274 @param CpuIndex Processor Index
301 @param CpuIndex BSP processor Index
311 UINTN Index;
344 // Set running processor index
427 for (Index = mMaxNumberOfCpus; Index-- > 0;) {
428 if (Index != CpuIndex && mSmmMpSyncData->CpuData[Index].Present) {
429 AcquireSpinLock (&mSmmMpSyncData->CpuData[Index].Busy);
430 ReleaseSpinLock (&mSmmMpSyncData->CpuData[Index].Busy);;
456 for (Index = mMaxNumberOfCpus; Index-- > 0;) {
457 if (mSmmMpSyncData->CpuData[Index].Present) {
540 @param CpuIndex AP processor Index.
572 // BSP Index is known
601 // Don't know BSP index. Give up without sending IPI to BSP.
746 UINTN Index;
789 for (Index = 0; Index < 4; Index++) {
790 Pte[Index] = (UINTN)PageTable + EFI_PAGE_SIZE * (Index + 1) + (Is32BitPageTable ? IA32_PAE_PDPTE_ATTRIBUTE_BITS : PAGE_ATTRIBUTE_BITS);
797 for (Index = 0; Index < EFI_PAGE_SIZE * 4 / sizeof (*Pte); Index++) {
798 Pte[Index] = (Index << 21) | IA32_PG_PS | PAGE_ATTRIBUTE_BITS;
813 for (Index = 0; Index < EFI_PAGE_SIZE / sizeof (*Pte); Index++) {
818 Pte[Index] = PageAddress;
824 Pte[Index] = PageAddress | PAGE_ATTRIBUTE_BITS;
853 UINTN Index;
882 for (Index = 0; Index < 0x200; Index++) {
883 NewPageTable[Index] = PageTable[PTIndex];
884 if ((NewPageTable[Index] & IA32_PG_PAT_2M) != 0) {
885 NewPageTable[Index] &= ~((UINT64)IA32_PG_PAT_2M);
886 NewPageTable[Index] |= (UINT64)IA32_PG_PAT_4K;
888 NewPageTable[Index] |= (UINT64)(Index << EFI_PAGE_SHIFT);
908 @param CpuIndex Target CPU Index
952 @param CpuIndex CPU Index
981 @param CpuIndex CPU Index
1007 @param CpuIndex CPU Index
1020 UINTN Index;
1142 for (Index = 0; Index < mMaxNumberOfCpus; Index++) {
1143 mSmmMpSyncData->CandidateBsp[Index] = FALSE;
1218 UINTN Index;
1228 AsmCpuid (0x80000008, (UINT32*)&Index, NULL, NULL, NULL);
1229 gPhyMask = LShiftU64 (1, (UINT8)Index) - 1;
1242 for (Index = 0; Index < mMaxNumberOfCpus; Index++) {
1243 Psd = (PROCESSOR_SMM_DESCRIPTOR *)(VOID *)(UINTN)(mCpuHotPlugData.SmBase[Index] + SMM_PSD_OFFSET);
1245 Psd->SmmGdtPtr = (UINT64)(UINTN)(GdtTssTables + GdtTableStepSize * Index);
1252 Index,
1253 (UINT32)mCpuHotPlugData.SmBase[Index],
1254 (VOID*)((UINTN)Stacks + (StackSize * Index)),