Lines Matching refs:VariableStore
266 @param[in] VariableStore Pointer to the start of the variable store
272 IN VARIABLE_STORE_HEADER *VariableStore,
279 VarHeader = (VARIABLE_HEADER*) ((UINT8*)VariableStore + *LastVariableOffset);
284 *LastVariableOffset = (UINTN) VarHeader - (UINTN) VariableStore;
1652 VARIABLE_STORE_HEADER *VariableStore;
1683 VariableStore = (VARIABLE_STORE_HEADER *) AllocateRuntimePool (PcdGet32 (PcdVariableStoreSize));
1690 VariableStore =
1694 (VariableStore->Size == PcdGet32 (PcdVariableStoreSize)) &&
1695 (VariableStore->Format == VARIABLE_STORE_FORMATTED) &&
1696 (VariableStore->State == VARIABLE_STORE_HEALTHY)
1701 VariableStore
1707 if (NULL == VariableStore) {
1712 SetMem (VariableStore, PcdGet32 (PcdVariableStoreSize), 0xff);
1718 *VariableBase = (EFI_PHYSICAL_ADDRESS) (UINTN) VariableStore;
1719 InitializeLocationForLastVariableOffset (VariableStore, LastVariableOffset);
1721 CopyGuid (&VariableStore->Signature, &gEfiVariableGuid);
1722 VariableStore->Size = PcdGet32 (PcdVariableStoreSize);
1723 VariableStore->Format = VARIABLE_STORE_FORMATTED;
1724 VariableStore->State = VARIABLE_STORE_HEALTHY;
1725 VariableStore->Reserved = 0;
1726 VariableStore->Reserved1 = 0;