Home
last modified time | relevance | path

Searched refs:CalculateSum8 (Results 1 – 21 of 21) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/
DFfs.c137 HeaderChecksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER2)); in VerifyHeaderChecksum()
139 HeaderChecksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER)); in VerifyHeaderChecksum()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/
DFfs.c243 HeaderChecksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER2)); in VerifyHeaderChecksum()
245 HeaderChecksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER)); in VerifyHeaderChecksum()
281 …FileChecksum = CalculateSum8 ((UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER2), FFS_FILE2_SIZE … in VerifyFileChecksum()
283 …FileChecksum = CalculateSum8 ((UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER), FFS_FILE_SIZE (F… in VerifyFileChecksum()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/
DCheckSum.c40 CalculateSum8 ( in CalculateSum8() function
87 CheckSum = CalculateSum8 (Buffer, Length); in CalculateCheckSum8()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/
DCheckSum.c38 CalculateSum8 ( in CalculateSum8() function
84 CheckSum = CalculateSum8 (Buffer, Length); in CalculateCheckSum8()
/device/linaro/bootloader/edk2/OvmfPkg/AcpiPlatformDxe/
DXen.c85 Sum = CalculateSum8 ( in GetXenAcpiRsdp()
97 Sum = CalculateSum8 ( in GetXenAcpiRsdp()
DQemuFwCfgAcpi.c484 CalculateSum8 ((CONST UINT8 *)Header, Header->Length) == 0) { in Process2ndPassCmdAddPointer()
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/
DDebugAgent.c354 …Mailbox->ToBeCheckSum = Mailbox->CheckSum + CalculateSum8 ((UINT8 *)&Mailbox->DebugFlag.Uint64, si… in UpdateMailboxContent()
355 - CalculateSum8 ((UINT8 *)&Value, sizeof(UINT64)); in UpdateMailboxContent()
359 …Mailbox->ToBeCheckSum = Mailbox->CheckSum + CalculateSum8 ((UINT8 *)&Mailbox->DebugPortHandle, siz… in UpdateMailboxContent()
360 - CalculateSum8 ((UINT8 *)&Value, sizeof(UINTN)); in UpdateMailboxContent()
364 …Mailbox->ToBeCheckSum = Mailbox->CheckSum + CalculateSum8 ((UINT8 *)&Mailbox->ExceptionBufferPoint… in UpdateMailboxContent()
365 - CalculateSum8 ((UINT8 *)&Value, sizeof(UINTN)); in UpdateMailboxContent()
369 …Mailbox->ToBeCheckSum = Mailbox->CheckSum + CalculateSum8 ((UINT8 *)&Mailbox->LastAck, sizeof(UINT… in UpdateMailboxContent()
370 - CalculateSum8 ((UINT8 *)&Value, sizeof(UINT8)); in UpdateMailboxContent()
374 …Mailbox->ToBeCheckSum = Mailbox->CheckSum + CalculateSum8 ((UINT8 *)&Mailbox->SequenceNo, sizeof(U… in UpdateMailboxContent()
375 - CalculateSum8 ((UINT8 *)&Value, sizeof(UINT8)); in UpdateMailboxContent()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/
DCommonLib.c279 return (UINT8) (0x100 - CalculateSum8 (Buffer, Size)); in CalculateChecksum8()
283 CalculateSum8 ( in CalculateSum8() function
DCommonLib.h77 CalculateSum8 (
DFvLib.c694 Checksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER)); in VerifyFfsFile()
711 Checksum = CalculateSum8 ((UINT8 *) FfsHeader, FileLength - TailSize); in VerifyFfsFile()
714 …Checksum = CalculateSum8 ((UINT8 *) ((UINTN)FfsHeader + sizeof (EFI_FFS_FILE_HEADER)), … in VerifyFfsFile()
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DCommonLib.h112 CalculateSum8 (
DCommonLib.c343 return (UINT8) (0x100 - CalculateSum8 (Buffer, Size)); in CalculateChecksum8()
347 CalculateSum8 ( in CalculateSum8() function
DFvLib.c700 Checksum = CalculateSum8 ((UINT8 *) FfsHeader, FfsHeaderSize); in VerifyFfsFile()
715 …Checksum = CalculateSum8 ((UINT8 *) ((UINT8 *)FfsHeader + FfsHeaderSize), FileLength - … in VerifyFfsFile()
/device/linaro/bootloader/edk2/ArmVirtPkg/XenAcpiPlatformDxe/
DXenAcpiPlatformDxe.c79 Sum = CalculateSum8 ((CONST UINT8 *)RsdpStructurePtr, in GetXenArmAcpiRsdp()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/
DMisc.c465 if (CalculateSum8 ((UINT8 *) RomAddress, RomLength) != 0) { in LaunchBaseCode()
487 if (CalculateSum8 ((UINT8 *) RomIdTableAddress, RomIdTableAddress->StructLength) != 0) { in LaunchBaseCode()
776 if (CalculateSum8 ((UINT8 *) Pxe, Pxe->StructLength) != 0) { in LaunchBaseCode()
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/
DDebugAgentSymbolsBaseLib.c92 Sum = CalculateSum8 ((CONST VOID*)FileHeader,sizeof(EFI_FFS_FILE_HEADER)); in CalculateHeaderChecksum()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/
DVolInfo.c1177 Checksum = CalculateSum8 ((UINT8 *) FileHeader, HeaderSize); in PrintFileInfo()
1199 Checksum = CalculateSum8 ((UINT8 *) FileHeader, HeaderSize); in PrintFileInfo()
1213 Checksum = CalculateSum8 ((UINT8 *)FileHeader + HeaderSize, FileLength - HeaderSize); in PrintFileInfo()
/device/linaro/bootloader/edk2/OptionRomPkg/UndiRuntimeDxe/
DDecode.c1460 PxePtr->Fudge = (UINT8) (PxePtr->Fudge - CalculateSum8 ((VOID *) PxePtr, PxePtr->Len)); in PxeUpdate()
1519 PxePtr->Fudge = (UINT8) (PxePtr->Fudge - CalculateSum8 ((VOID *) PxePtr, PxePtr->Len)); in PxeStructInit()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/FwVol/
DFwVol.c179 return CalculateSum8 ((CONST UINT8 *) &TestFileHeader, sizeof (EFI_FFS_FILE_HEADER2)); in CalculateHeaderChecksum()
188 return CalculateSum8 ((CONST UINT8 *) &TestFileHeader, sizeof (EFI_FFS_FILE_HEADER)); in CalculateHeaderChecksum()
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DBaseLib.h3541 CalculateSum8 (
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGlueBaseLib.h3223 CalculateSum8 (