Lines Matching refs:LockBox
137 SMM_LOCK_BOX_DATA *LockBox; in InternalFindLockBoxByGuidFromSmram() local
142 LockBox = BASE_CR ( in InternalFindLockBoxByGuidFromSmram()
147 if (CompareGuid (&LockBox->Guid, Guid)) { in InternalFindLockBoxByGuidFromSmram()
148 return LockBox; in InternalFindLockBoxByGuidFromSmram()
257 SMM_LOCK_BOX_DATA *LockBox; in InternalRestoreLockBoxFromSmram() local
292 LockBox = InternalFindLockBoxByGuidFromSmram (LockBoxQueue, Guid); in InternalRestoreLockBoxFromSmram()
293 if (LockBox == NULL) { in InternalRestoreLockBoxFromSmram()
312 if ((LockBox->Attributes & LOCK_BOX_ATTRIBUTE_RESTORE_IN_PLACE) == 0) { in InternalRestoreLockBoxFromSmram()
315 RestoreBuffer = (VOID *)(UINTN)LockBox->Buffer; in InternalRestoreLockBoxFromSmram()
322 if (*Length < (UINTN)LockBox->Length) { in InternalRestoreLockBoxFromSmram()
326 *Length = (UINTN)LockBox->Length; in InternalRestoreLockBoxFromSmram()
329 *Length = (UINTN)LockBox->Length; in InternalRestoreLockBoxFromSmram()
335 CopyMem (RestoreBuffer, (VOID *)(UINTN)LockBox->SmramBuffer, (UINTN)LockBox->Length); in InternalRestoreLockBoxFromSmram()
358 SMM_LOCK_BOX_DATA *LockBox; in InternalRestoreAllLockBoxInPlaceFromSmram() local
392 LockBox = BASE_CR ( in InternalRestoreAllLockBoxInPlaceFromSmram()
397 if ((LockBox->Attributes & LOCK_BOX_ATTRIBUTE_RESTORE_IN_PLACE) != 0) { in InternalRestoreAllLockBoxInPlaceFromSmram()
401 …CopyMem ((VOID *)(UINTN)LockBox->Buffer, (VOID *)(UINTN)LockBox->SmramBuffer, (UINTN)LockBox->Leng… in InternalRestoreAllLockBoxInPlaceFromSmram()