Lines Matching refs:ProcessorNumber
60 UINTN ProcessorNumber; in IsBSP() local
62 Status = CpuMpServicesWhoAmI (&mMpServicesTemplate, &ProcessorNumber); in IsBSP()
67 return (gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0; in IsBSP()
229 IN UINTN ProcessorNumber, in CpuMpServicesGetProcessorInfo() argument
241 if (ProcessorNumber >= gMPSystem.NumberOfProcessors) { in CpuMpServicesGetProcessorInfo()
245 …CopyMem (ProcessorInfoBuffer, &gMPSystem.ProcessorData[ProcessorNumber], sizeof (EFI_PROCESSOR_INF… in CpuMpServicesGetProcessorInfo()
691 IN UINTN ProcessorNumber, in CpuMpServicesStartupThisAP() argument
708 if (ProcessorNumber >= gMPSystem.NumberOfProcessors) { in CpuMpServicesStartupThisAP()
712 if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0) { in CpuMpServicesStartupThisAP()
716 if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_ENABLED_BIT) == 0) { in CpuMpServicesStartupThisAP()
720 gThread->MutexLock(gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesStartupThisAP()
721 if (gMPSystem.ProcessorData[ProcessorNumber].State != CPU_STATE_IDLE) { in CpuMpServicesStartupThisAP()
722 gThread->MutexUnlock(gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesStartupThisAP()
725 gThread->MutexUnlock(gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesStartupThisAP()
736 SetApProcedure (&gMPSystem.ProcessorData[ProcessorNumber], Procedure, ProcedureArgument); in CpuMpServicesStartupThisAP()
742 gMPSystem.ProcessorData[ProcessorNumber].CheckThisAPEvent, in CpuMpServicesStartupThisAP()
751 gThread->MutexLock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesStartupThisAP()
752 if (gMPSystem.ProcessorData[ProcessorNumber].State == CPU_STATE_FINISHED) { in CpuMpServicesStartupThisAP()
753 gMPSystem.ProcessorData[ProcessorNumber].State = CPU_STATE_IDLE; in CpuMpServicesStartupThisAP()
754 gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesStartupThisAP()
758 gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesStartupThisAP()
811 IN UINTN ProcessorNumber, in CpuMpServicesSwitchBSP() argument
821 if (ProcessorNumber >= gMPSystem.NumberOfProcessors) { in CpuMpServicesSwitchBSP()
825 if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_ENABLED_BIT) == 0) { in CpuMpServicesSwitchBSP()
829 if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0) { in CpuMpServicesSwitchBSP()
840 gThread->MutexLock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesSwitchBSP()
841 if (gMPSystem.ProcessorData[ProcessorNumber].State != CPU_STATE_IDLE) { in CpuMpServicesSwitchBSP()
842 gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesSwitchBSP()
845 gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesSwitchBSP()
898 IN UINTN ProcessorNumber, in CpuMpServicesEnableDisableAP() argument
907 if (ProcessorNumber >= gMPSystem.NumberOfProcessors) { in CpuMpServicesEnableDisableAP()
911 if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0) { in CpuMpServicesEnableDisableAP()
915 gThread->MutexLock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesEnableDisableAP()
916 if (gMPSystem.ProcessorData[ProcessorNumber].State != CPU_STATE_IDLE) { in CpuMpServicesEnableDisableAP()
917 gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesEnableDisableAP()
920 gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); in CpuMpServicesEnableDisableAP()
923 if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_ENABLED_BIT) == 0 ) { in CpuMpServicesEnableDisableAP()
926 gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag |= PROCESSOR_ENABLED_BIT; in CpuMpServicesEnableDisableAP()
928 …if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_ENABLED_BIT) == PROCESSO… in CpuMpServicesEnableDisableAP()
931 gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag &= ~PROCESSOR_ENABLED_BIT; in CpuMpServicesEnableDisableAP()
935 gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag &= ~PROCESSOR_HEALTH_STATUS_BIT; in CpuMpServicesEnableDisableAP()
936 …gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag |= (*HealthFlag & PROCESSOR_HEALTH_STATUS… in CpuMpServicesEnableDisableAP()
971 OUT UINTN *ProcessorNumber in CpuMpServicesWhoAmI() argument
977 if (ProcessorNumber == NULL) { in CpuMpServicesWhoAmI()
988 *ProcessorNumber = Index; in CpuMpServicesWhoAmI()
1019 UINTN ProcessorNumber; in CpuCheckAllAPsStatus() local
1032 for (ProcessorNumber = 0; ProcessorNumber < gMPSystem.NumberOfProcessors; ProcessorNumber++) { in CpuCheckAllAPsStatus()
1033 ProcessorData = &gMPSystem.ProcessorData[ProcessorNumber]; in CpuCheckAllAPsStatus()
1087 for (ProcessorNumber = 0; ProcessorNumber < gMPSystem.NumberOfProcessors; ProcessorNumber++) { in CpuCheckAllAPsStatus()
1088 ProcessorData = &gMPSystem.ProcessorData[ProcessorNumber]; in CpuCheckAllAPsStatus()
1113 if (gMPSystem.FailedList[ProcessorNumber] == Cpu) { in CpuCheckAllAPsStatus()
1205 IN UINTN ProcessorNumber in FillInProcessorInformation() argument
1208 gMPSystem.ProcessorData[ProcessorNumber].Info.ProcessorId = gThread->Self (); in FillInProcessorInformation()
1209 …gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag = PROCESSOR_ENABLED_BIT | PROCESSOR_HEA… in FillInProcessorInformation()
1211 gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag |= PROCESSOR_AS_BSP_BIT; in FillInProcessorInformation()
1214 gMPSystem.ProcessorData[ProcessorNumber].Info.Location.Package = (UINT32) ProcessorNumber; in FillInProcessorInformation()
1215 gMPSystem.ProcessorData[ProcessorNumber].Info.Location.Core = 0; in FillInProcessorInformation()
1216 gMPSystem.ProcessorData[ProcessorNumber].Info.Location.Thread = 0; in FillInProcessorInformation()
1217 gMPSystem.ProcessorData[ProcessorNumber].State = BSP ? CPU_STATE_BUSY : CPU_STATE_IDLE; in FillInProcessorInformation()
1219 gMPSystem.ProcessorData[ProcessorNumber].Procedure = NULL; in FillInProcessorInformation()
1220 gMPSystem.ProcessorData[ProcessorNumber].Parameter = NULL; in FillInProcessorInformation()
1221 gMPSystem.ProcessorData[ProcessorNumber].StateLock = gThread->MutexInit (); in FillInProcessorInformation()
1222 gMPSystem.ProcessorData[ProcessorNumber].ProcedureLock = gThread->MutexInit (); in FillInProcessorInformation()
1235 UINTN ProcessorNumber; in CpuDriverApIdolLoop() local
1238 ProcessorNumber = (UINTN)Context; in CpuDriverApIdolLoop()
1239 ProcessorData = &gMPSystem.ProcessorData[ProcessorNumber]; in CpuDriverApIdolLoop()