Home
last modified time | relevance | path

Searched refs:NvStorageSize (Results 1 – 3 of 3) sorted by relevance

/device/linaro/bootloader/OpenPlatformPkg/Drivers/Variable/BlockVariableDxe/
DBlockVariableDxe.c357 UINTN NvStorageSize; in BlockVariableDxeInitialize() local
375 NvStorageSize = Count * Instance->Media.BlockSize; in BlockVariableDxeInitialize()
378 if (NvStorageSize < HeadersLength) { in BlockVariableDxeInitialize()
436 if (NvStorageSize > ((EFI_FIRMWARE_VOLUME_HEADER*)Headers)->FvLength) { in BlockVariableDxeInitialize()
437 NvStorageSize = ((EFI_FIRMWARE_VOLUME_HEADER*)Headers)->FvLength; in BlockVariableDxeInitialize()
438NvStorageSize = ((NvStorageSize + Instance->Media.BlockSize - 1) / Instance->Media.BlockSize) * In… in BlockVariableDxeInitialize()
440 Status = FvbRead (&Instance->FvbProtocol, 0, 0, &NvStorageSize, NvStorageData); in BlockVariableDxeInitialize()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/Pei/
DVariable.c516 UINT32 NvStorageSize; in GetVariableStore() local
545 NvStorageSize = PcdGet32 (PcdFlashNvStorageVariableSize); in GetVariableStore()
568 …tAddress > NvStorageBase) && (FtwLastWriteData->TargetAddress < (NvStorageBase + NvStorageSize))) { in GetVariableStore()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DVariable.c3623 UINT32 NvStorageSize; in InitNonVolatileVariableStore() local
3639 NvStorageSize = PcdGet32 (PcdFlashNvStorageVariableSize); in InitNonVolatileVariableStore()
3640 NvStorageData = AllocateRuntimeZeroPool (NvStorageSize); in InitNonVolatileVariableStore()
3652 CopyMem (NvStorageData, (UINT8 *) (UINTN) NvStorageBase, NvStorageSize); in InitNonVolatileVariableStore()
3670 CopyMem (NvStorageData, (UINT8 *) (UINTN) (FtwLastWriteData->SpareAddress), NvStorageSize); in InitNonVolatileVariableStore()
3672 (FtwLastWriteData->TargetAddress < (NvStorageBase + NvStorageSize))) { in InitNonVolatileVariableStore()
3677 BackUpSize = NvStorageSize - BackUpOffset; in InitNonVolatileVariableStore()
3699 VariableStoreLength = (UINT64) (NvStorageSize - FvHeader->HeaderLength); in InitNonVolatileVariableStore()