Home
last modified time | relevance | path

Searched refs:HEADER_ALIGN (Results 1 – 11 of 11) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckPcdLib/
DVarCheckPcdLibNullClass.c201 PcdVariable = (VAR_CHECK_PCD_VARIABLE_HEADER *) HEADER_ALIGN (mVarCheckPcdBin); in SetVariableCheckHandlerPcd()
223 …PcdValidData = (VAR_CHECK_PCD_VALID_DATA_HEADER *) HEADER_ALIGN (((UINTN) PcdVariable + PcdVariabl… in SetVariableCheckHandlerPcd()
233 …PcdValidData = (VAR_CHECK_PCD_VALID_DATA_HEADER *) HEADER_ALIGN (((UINTN) PcdValidData + PcdValidD… in SetVariableCheckHandlerPcd()
242 …PcdVariable = (VAR_CHECK_PCD_VARIABLE_HEADER *) HEADER_ALIGN (((UINTN) PcdVariable + PcdVariable->… in SetVariableCheckHandlerPcd()
364 …PcdValidData = (VAR_CHECK_PCD_VALID_DATA_HEADER *) HEADER_ALIGN (((UINTN) PcdVariable + PcdVariabl… in DumpPcdVariable()
373 …PcdValidData = (VAR_CHECK_PCD_VALID_DATA_HEADER *) HEADER_ALIGN (((UINTN) PcdValidData + PcdValidD… in DumpPcdVariable()
397 PcdVariable = (VAR_CHECK_PCD_VARIABLE_HEADER *) HEADER_ALIGN (VarCheckPcdBin); in DumpVarCheckPcd()
403 …PcdVariable = (VAR_CHECK_PCD_VARIABLE_HEADER *) HEADER_ALIGN (((UINTN) PcdVariable + PcdVariable->… in DumpVarCheckPcd()
DVarCheckPcdStructure.h22 #define HEADER_ALIGN(Header) (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)… macro
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/
DVarCheckHiiLibNullClass.c247 HiiVariable = (VAR_CHECK_HII_VARIABLE_HEADER *) HEADER_ALIGN (mVarCheckHiiBin); in SetVariableCheckHandlerHii()
274 …HiiQuestion = (VAR_CHECK_HII_QUESTION_HEADER *) HEADER_ALIGN (((UINTN) HiiVariable + HiiVariable->… in SetVariableCheckHandlerHii()
282 …HiiQuestion = (VAR_CHECK_HII_QUESTION_HEADER *) HEADER_ALIGN (((UINTN) HiiQuestion + HiiQuestion->… in SetVariableCheckHandlerHii()
291 …HiiVariable = (VAR_CHECK_HII_VARIABLE_HEADER *) HEADER_ALIGN (((UINTN) HiiVariable + HiiVariable->… in SetVariableCheckHandlerHii()
473 …HiiQuestion = (VAR_CHECK_HII_QUESTION_HEADER *) HEADER_ALIGN (((UINTN) HiiVariable + HiiVariable->… in DumpHiiVariable()
482 …HiiQuestion = (VAR_CHECK_HII_QUESTION_HEADER *) HEADER_ALIGN (((UINTN) HiiQuestion + HiiQuestion->… in DumpHiiVariable()
506 HiiVariable = (VAR_CHECK_HII_VARIABLE_HEADER *) HEADER_ALIGN (VarCheckHiiBin); in DumpVarCheckHii()
512 …HiiVariable = (VAR_CHECK_HII_VARIABLE_HEADER *) HEADER_ALIGN (((UINTN) HiiVariable + HiiVariable->… in DumpVarCheckHii()
DInternalVarCheckStructure.h22 #define HEADER_ALIGN(Header) (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)… macro
DVarCheckHiiGen.c1387 BinSize = (UINT32) HEADER_ALIGN (BinSize); in BuildVarCheckHiiBin()
1397 HiiVariableLength = (UINT32) HEADER_ALIGN (HiiVariableLength); in BuildVarCheckHiiBin()
1431 Ptr = (UINT8 *) HEADER_ALIGN (Ptr); in BuildVarCheckHiiBin()
1442 Ptr = (UINT8 *) HEADER_ALIGN (Ptr); in BuildVarCheckHiiBin()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/
DEmuVariable.c189 …VarHeader = (VARIABLE_HEADER *) HEADER_ALIGN ((UINTN) GetVariableDataPtr (Variable) + Variable->Da… in GetNextPotentialVariablePtr()
271 return (VARIABLE_HEADER *) HEADER_ALIGN ((UINTN) VolHeader + VolHeader->Size); in GetEndPointer()
993 …&& ((HEADER_ALIGN (VarSize) + mVariableModuleGlobal->HwErrVariableTotalSize) > PcdGet32 (PcdHwErrS… in UpdateVariable()
995 …&& ((HEADER_ALIGN (VarSize) + mVariableModuleGlobal->CommonVariableTotalSize) > NonVolatileVarable… in UpdateVariable()
1002 mVariableModuleGlobal->NonVolatileLastVariableOffset += HEADER_ALIGN (VarSize); in UpdateVariable()
1005 mVariableModuleGlobal->HwErrVariableTotalSize += HEADER_ALIGN (VarSize); in UpdateVariable()
1007 mVariableModuleGlobal->CommonVariableTotalSize += HEADER_ALIGN (VarSize); in UpdateVariable()
1010 if ((UINT32) (HEADER_ALIGN (VarSize) + mVariableModuleGlobal->VolatileLastVariableOffset) > in UpdateVariable()
1019 mVariableModuleGlobal->VolatileLastVariableOffset += HEADER_ALIGN (VarSize); in UpdateVariable()
1106 Variable[0] = (VARIABLE_HEADER *) HEADER_ALIGN (VariableStoreHeader[0] + 1); in FindVariable()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/
DVariable.c623 return HEADER_ALIGN (Address); in GetNextVariablePtr()
642 return HEADER_ALIGN (VarStoreHeaderAddress + sizeof (VARIABLE_STORE_HEADER)); in GetStartPointer()
682 return HEADER_ALIGN (VarStoreHeaderAddress + VariableStoreHeader.Size); in GetEndPointer()
2056 … && ((HEADER_ALIGN (VarSize) + Global->HwErrVariableTotalSize) > PcdGet32(PcdHwErrStorageSize))) in UpdateVariable()
2058 …&& ((HEADER_ALIGN (VarSize) + Global->CommonVariableTotalSize) > VariableStoreHeader.Size - sizeof… in UpdateVariable()
2076 … && ((HEADER_ALIGN (VarSize) + Global->HwErrVariableTotalSize) > PcdGet32(PcdHwErrStorageSize))) in UpdateVariable()
2078 …&& ((HEADER_ALIGN (VarSize) + Global->CommonVariableTotalSize) > VariableStoreHeader.Size - sizeof… in UpdateVariable()
2158 Global->NonVolatileLastVariableOffset += HEADER_ALIGN (VarSize); in UpdateVariable()
2161 Global->HwErrVariableTotalSize += HEADER_ALIGN (VarSize); in UpdateVariable()
2163 Global->CommonVariableTotalSize += HEADER_ALIGN (VarSize); in UpdateVariable()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Guid/
DVariableFormat.h52 #define HEADER_ALIGN(Header) (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)… macro
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DVariable.c678 return (VARIABLE_HEADER *) HEADER_ALIGN (Value); in GetNextVariablePtr()
698 return (VARIABLE_HEADER *) HEADER_ALIGN (VarStoreHeader + 1); in GetStartPointer()
721 return (VARIABLE_HEADER *) HEADER_ALIGN ((UINTN) VarStoreHeader + VarStoreHeader->Size); in GetEndPointer()
1732 … VariableEntry->VariableSize = HEADER_ALIGN (GetVariableHeaderSize () + VarNameSize + VarDataSize); in CheckRemainingSpaceForConsistencyInternal()
2555 HEADER_ALIGN (VarSize) in UpdateVariable()
2653 mVariableModuleGlobal->NonVolatileLastVariableOffset += HEADER_ALIGN (VarSize); in UpdateVariable()
2656 mVariableModuleGlobal->HwErrVariableTotalSize += HEADER_ALIGN (VarSize); in UpdateVariable()
2658 mVariableModuleGlobal->CommonVariableTotalSize += HEADER_ALIGN (VarSize); in UpdateVariable()
2660 mVariableModuleGlobal->CommonUserVariableTotalSize += HEADER_ALIGN (VarSize); in UpdateVariable()
2684 HEADER_ALIGN (VarSize) in UpdateVariable()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/Pei/
DVariable.c71 return (VARIABLE_HEADER *) HEADER_ALIGN (VarStoreHeader + 1); in GetStartPointer()
91 return (VARIABLE_HEADER *) HEADER_ALIGN ((UINTN) VarStoreHeader + VarStoreHeader->Size); in GetEndPointer()
315 Value = HEADER_ALIGN (Value); in GetNextVariablePtr()
/device/linaro/bootloader/edk2/DuetPkg/FSVariable/
DFSVariable.c1872 mGlobal->HwErrVariableTotalSize += HEADER_ALIGN (VariableSize); in VariableServiceInitialize()
1874 mGlobal->CommonVariableTotalSize += HEADER_ALIGN (VariableSize); in VariableServiceInitialize()