Lines Matching refs:mMsrSpinLocks
64 MP_MSR_LOCK *mMsrSpinLocks = NULL; variable
104 if (MsrIndex == mMsrSpinLocks[Index].MsrIndex) { in GetMsrSpinLockByIndex()
105 return mMsrSpinLocks[Index].SpinLock; in GetMsrSpinLockByIndex()
127 if (mMsrSpinLocks == NULL) { in InitMsrSpinLockByIndex()
129 mMsrSpinLocks = (MP_MSR_LOCK *) AllocatePool (sizeof (MP_MSR_LOCK) * MsrSpinLockCount); in InitMsrSpinLockByIndex()
130 ASSERT (mMsrSpinLocks != NULL); in InitMsrSpinLockByIndex()
132 mMsrSpinLocks[Index].SpinLock = in InitMsrSpinLockByIndex()
134 mMsrSpinLocks[Index].MsrIndex = (UINT32)-1; in InitMsrSpinLockByIndex()
143 mMsrSpinLocks[mMsrCount].MsrIndex = MsrIndex; in InitMsrSpinLockByIndex()
144 InitializeSpinLock (mMsrSpinLocks[mMsrCount].SpinLock); in InitMsrSpinLockByIndex()
155 mMsrSpinLocks = ReallocatePool ( in InitMsrSpinLockByIndex()
158 mMsrSpinLocks in InitMsrSpinLockByIndex()
160 ASSERT (mMsrSpinLocks != NULL); in InitMsrSpinLockByIndex()
163 mMsrSpinLocks[Index].SpinLock = in InitMsrSpinLockByIndex()
166 mMsrSpinLocks[Index].MsrIndex = (UINT32)-1; in InitMsrSpinLockByIndex()