Lines Matching refs:CpuIndex
229 IN UINTN CpuIndex, in SmmReadSaveState() argument
238 if ((CpuIndex >= gSmst->NumberOfCpus) || (Buffer == NULL)) { in SmmReadSaveState()
257 if (*(mSmmMpSyncData->CpuData[CpuIndex].Present)) { in SmmReadSaveState()
258 *(UINT64 *)Buffer = gSmmCpuPrivate->ProcessorInfo[CpuIndex].ProcessorId; in SmmReadSaveState()
265 if (!(*(mSmmMpSyncData->CpuData[CpuIndex].Present))) { in SmmReadSaveState()
269 Status = SmmCpuFeaturesReadSaveStateRegister (CpuIndex, Register, Width, Buffer); in SmmReadSaveState()
271 Status = ReadSaveStateRegister (CpuIndex, Register, Width, Buffer); in SmmReadSaveState()
296 IN UINTN CpuIndex, in SmmWriteSaveState() argument
305 if ((CpuIndex >= gSmst->NumberOfCpus) || (Buffer == NULL)) { in SmmWriteSaveState()
316 if (!mSmmMpSyncData->CpuData[CpuIndex].Present) { in SmmWriteSaveState()
320 Status = SmmCpuFeaturesWriteSaveStateRegister (CpuIndex, Register, Width, Buffer); in SmmWriteSaveState()
322 Status = WriteSaveStateRegister (CpuIndex, Register, Width, Buffer); in SmmWriteSaveState()
1044 UINTN CpuIndex; in ConfigSmmCodeAccessCheckOnCurrentProcessor() local
1051 CpuIndex = *(UINTN *)Buffer; in ConfigSmmCodeAccessCheckOnCurrentProcessor()
1056 SmmFeatureControlMsr = SmmCpuFeaturesGetSmmRegister (CpuIndex, SmmRegFeatureControl); in ConfigSmmCodeAccessCheckOnCurrentProcessor()
1073 SmmCpuFeaturesSetSmmRegister (CpuIndex, SmmRegFeatureControl, NewSmmFeatureControlMsr); in ConfigSmmCodeAccessCheckOnCurrentProcessor()