/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/ |
D | LegacyCmos.c | 71 UINT16 Checksum; in LegacyCalculateWriteStandardCmosChecksum() local 73 for (Checksum = 0, Register = 0x10; Register < 0x2e; Register++) { in LegacyCalculateWriteStandardCmosChecksum() 74 Checksum = (UINT16)(Checksum + LegacyReadStandardCmos (Register)); in LegacyCalculateWriteStandardCmosChecksum() 76 LegacyWriteStandardCmos (CMOS_2E, (UINT8)(Checksum >> 8)); in LegacyCalculateWriteStandardCmosChecksum() 77 LegacyWriteStandardCmos (CMOS_2F, (UINT8)(Checksum & 0xff)); in LegacyCalculateWriteStandardCmosChecksum()
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/ |
D | BootMonFsImages.c | 32 UINT32 Checksum; in BootMonFsChecksum() local 36 Checksum = 0; in BootMonFsChecksum() 43 if (Word > ~Checksum) { in BootMonFsChecksum() 44 Checksum++; in BootMonFsChecksum() 47 Checksum += Word; in BootMonFsChecksum() 50 return ~Checksum; in BootMonFsChecksum() 77 Description->Region[Index].Checksum = 0; in BootMonFsComputeFooterChecksum() 99 UINT32 Checksum; in BootMonFsIsImageValid() local 121 Checksum = Desc->FooterChecksum; in BootMonFsIsImageValid() 127 if (Desc->FooterChecksum != Checksum) { in BootMonFsIsImageValid()
|
/device/linaro/bootloader/edk2/OvmfPkg/SmbiosPlatformDxe/ |
D | X86Xen.c | 41 UINT8 Checksum; in IsEntryPointStructureValid() local 46 Checksum = 0; in IsEntryPointStructureValid() 49 Checksum = Checksum + (UINT8) BytePtr[Index]; in IsEntryPointStructureValid() 52 if (Checksum != 0) { in IsEntryPointStructureValid()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/ |
D | FvLib.c | 582 UINT16 Checksum; in VerifyFv() local 598 Checksum = CalculateSum16 ((UINT16 *) FvHeader, FvHeader->HeaderLength / sizeof (UINT16)); in VerifyFv() 600 if (Checksum != 0) { in VerifyFv() 634 UINT8 Checksum; in VerifyFfsFile() local 692 SavedChecksum = FfsHeader->IntegrityCheck.Checksum.File; in VerifyFfsFile() 693 FfsHeader->IntegrityCheck.Checksum.File = 0; in VerifyFfsFile() 694 Checksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER)); in VerifyFfsFile() 696 FfsHeader->IntegrityCheck.Checksum.File = SavedChecksum; in VerifyFfsFile() 697 if (Checksum != 0) { in VerifyFfsFile() 711 Checksum = CalculateSum8 ((UINT8 *) FfsHeader, FileLength - TailSize); in VerifyFfsFile() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/ |
D | FvbInfo.c | 114 UINT16 Checksum; in GetFvbInfo() local 115 mPlatformFvbMediaInfo[Index].FvbInfo.Checksum = 0; in GetFvbInfo() 116 Checksum = CalculateCheckSum16 ( in GetFvbInfo() 120 mPlatformFvbMediaInfo[Index].FvbInfo.Checksum = Checksum; in GetFvbInfo()
|
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/ |
D | IpSecImpl.c | 1034 UINT16 *Checksum; in IpSecTunnelInboundPacket() local 1040 Checksum = NULL; in IpSecTunnelInboundPacket() 1060 if (((IP4_HEAD *)(IpPayload))->Checksum != 0 ) { in IpSecTunnelInboundPacket() 1061 ((IP4_HEAD *)(IpPayload))->Checksum = 0; in IpSecTunnelInboundPacket() 1062 ((IP4_HEAD *)(IpPayload))->Checksum = (UINT16) (~NetblockChecksum ( in IpSecTunnelInboundPacket() 1076 Checksum = & UdpHeader->Checksum; in IpSecTunnelInboundPacket() 1077 *Checksum = 0; in IpSecTunnelInboundPacket() 1082 Checksum = &TcpHeader->Checksum; in IpSecTunnelInboundPacket() 1083 *Checksum = 0; in IpSecTunnelInboundPacket() 1100 if (Checksum != NULL) { in IpSecTunnelInboundPacket() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | FvLib.c | 595 UINT16 Checksum; in VerifyFv() local 611 Checksum = CalculateSum16 ((UINT16 *) FvHeader, FvHeader->HeaderLength / sizeof (UINT16)); in VerifyFv() 613 if (Checksum != 0) { in VerifyFv() 647 UINT8 Checksum; in VerifyFfsFile() local 698 SavedChecksum = FfsHeader->IntegrityCheck.Checksum.File; in VerifyFfsFile() 699 FfsHeader->IntegrityCheck.Checksum.File = 0; in VerifyFfsFile() 700 Checksum = CalculateSum8 ((UINT8 *) FfsHeader, FfsHeaderSize); in VerifyFfsFile() 702 FfsHeader->IntegrityCheck.Checksum.File = SavedChecksum; in VerifyFfsFile() 703 if (Checksum != 0) { in VerifyFfsFile() 715 …Checksum = CalculateSum8 ((UINT8 *) ((UINT8 *)FfsHeader + FfsHeaderSize), FileLength - … in VerifyFfsFile() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/ |
D | Ffs.c | 108 UINT16 Checksum; in VerifyFvHeaderChecksum() local 110 Checksum = CalculateSum16 ((UINT16 *) FvHeader, FvHeader->HeaderLength); in VerifyFvHeaderChecksum() 112 if (Checksum == 0) { in VerifyFvHeaderChecksum() 141 …HeaderChecksum = (UINT8) (HeaderChecksum - FfsHeader->State - FfsHeader->IntegrityCheck.Checksum.F… in VerifyHeaderChecksum() 224 if (FfsHeader->IntegrityCheck.Checksum.File == DataCheckSum) { in IsValidFfsFile()
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Pei/PlatformInit/ |
D | BootMode.c | 79 UINT16 Checksum; in ValidateFvHeader() local 108 Checksum = 0; in ValidateFvHeader() 110 Checksum = Checksum +*Ptr; in ValidateFvHeader() 115 if (Checksum != 0) { in ValidateFvHeader()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/ |
D | VolInfo.c | 973 UINT8 Checksum; in PrintFileInfo() local 1032 Checksum = CalculateSum8 ((UINT8 *) FileHeader, HeaderSize); in PrintFileInfo() 1033 Checksum = (UINT8) (Checksum - FileHeader->IntegrityCheck.Checksum.File); in PrintFileInfo() 1034 Checksum = (UINT8) (Checksum - FileHeader->State); in PrintFileInfo() 1035 if (Checksum != 0) { in PrintFileInfo() 1054 Checksum = CalculateSum8 ((UINT8 *) FileHeader, HeaderSize); in PrintFileInfo() 1055 Checksum = (UINT8) (Checksum - FileHeader->IntegrityCheck.Checksum.File); in PrintFileInfo() 1056 Checksum = (UINT8) (Checksum - FileHeader->State); in PrintFileInfo() 1057 if (Checksum != 0) { in PrintFileInfo() 1068 Checksum = CalculateSum8 ((UINT8 *)FileHeader + HeaderSize, FileLength - HeaderSize); in PrintFileInfo() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/AcpiTableDxe/ |
D | AcpiTableProtocol.c | 44 IN BOOLEAN Checksum, 430 IN BOOLEAN Checksum, in AddTableToList() argument 674 if (Checksum) { in AddTableToList() 679 Checksum) in AddTableToList() 722 Checksum) in AddTableToList() 761 Checksum) in AddTableToList() 806 Checksum) in AddTableToList() 836 Checksum) in AddTableToList() 843 if (Checksum) { in AddTableToList() 848 Checksum) in AddTableToList() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/ |
D | AcpiSupportAcpiSupportProtocol.c | 44 IN BOOLEAN Checksum, 188 IN BOOLEAN Checksum, in SetAcpiTable() argument 224 Status = AddTableToList (AcpiSupportInstance, Table, Checksum, Version, Handle); in SetAcpiTable() 250 Status = AddTableToList (AcpiSupportInstance, Table, Checksum, Version, Handle); in SetAcpiTable() 600 IN BOOLEAN Checksum, in AddTableToList() argument 850 if (Checksum) { in AddTableToList() 855 Checksum) in AddTableToList() 899 Checksum) in AddTableToList() 937 Checksum) in AddTableToList() 983 Checksum) in AddTableToList() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/ |
D | Ip4Icmp.c | 245 Icmp->Head.Checksum = 0; in Ip4IcmpReplyEcho() 246 Icmp->Head.Checksum = (UINT16) (~NetblockChecksum ((UINT8 *) Icmp, Data->TotalSize)); in Ip4IcmpReplyEcho() 338 UINT16 Checksum; in Ip4IcmpHandle() local 350 Checksum = (UINT16) (~NetbufChecksum (Packet)); in Ip4IcmpHandle() 351 if ((Icmp.Checksum != 0) && (Checksum != 0)) { in Ip4IcmpHandle()
|
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Variable/BlockVariableDxe/ |
D | BlockVariableDxe.c | 233 UINT16 Checksum, TempChecksum; in ValidateFvHeader() local 262 TempChecksum = FwVolHeader->Checksum; in ValidateFvHeader() 263 FwVolHeader->Checksum = 0; in ValidateFvHeader() 264 Checksum = CalculateSum16((UINT16*)FwVolHeader, FwVolHeader->HeaderLength); in ValidateFvHeader() 265 if (Checksum != TempChecksum) { in ValidateFvHeader() 266 DEBUG ((EFI_D_ERROR, "ValidateFvHeader: FV checksum is invalid (Checksum:0x%X)\n",Checksum)); in ValidateFvHeader() 269 FwVolHeader->Checksum = Checksum; in ValidateFvHeader() 330 FirmwareVolumeHeader->Checksum = 0; in InitNonVolatileVariableStore() 331 …FirmwareVolumeHeader->Checksum = CalculateSum16 ((UINT16*)FirmwareVolumeHeader, FirmwareVolumeHead… in InitNonVolatileVariableStore()
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Include/Guid/ |
D | BootMonFsFileInfo.h | 37 UINT32 Checksum; member 43 OFFSET_OF (BOOTMON_FS_FILE_INFO, Region[BOOTMONFS_IMAGE_DESCRIPTION_REGION_MAX - 1].Checksum)
|
/device/linaro/bootloader/edk2/CorebootModulePkg/CbSupportPei/ |
D | CbSupportPei.c | 82 UINT16 Checksum; in IsFvHeaderValid() local 96 Checksum = CalculateCheckSum16 ((UINT16 *) FwVolHeader, FwVolHeader->HeaderLength); in IsFvHeaderValid() 97 if (Checksum != 0) { in IsFvHeaderValid() 100 FwVolHeader->Checksum, in IsFvHeaderValid() 101 (UINT16)( Checksum + FwVolHeader->Checksum ))); in IsFvHeaderValid()
|
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/ |
D | Ip6Output.c | 506 UINT16 *Checksum; in Ip6Output() local 587 Checksum = NULL; in Ip6Output() 594 if (Packet->Udp->Checksum == 0) { in Ip6Output() 595 Checksum = &Packet->Udp->Checksum; in Ip6Output() 602 if (Packet->Tcp->Checksum == 0) { in Ip6Output() 603 Checksum = &Packet->Tcp->Checksum; in Ip6Output() 617 if (IcmpHead->Checksum == 0) { in Ip6Output() 618 Checksum = &IcmpHead->Checksum; in Ip6Output() 626 if (Checksum != NULL) { in Ip6Output() 638 *Checksum = (UINT16) ~NetAddChecksum (PacketChecksum, PseudoChecksum); in Ip6Output()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Include/IndustryStandard/ |
D | AcpiCommon.h | 46 UINT8 Checksum; member 85 UINT8 Checksum; member
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/DxeSmm/SmmPowerManagement/ |
D | Ppm.c | 126 ((EFI_ACPI_SDT_HEADER *)Table)->Checksum = 0; in PpmPatchFadtTable() 127 ((EFI_ACPI_SDT_HEADER *)Table)->Checksum = in PpmPatchFadtTable() 365 ((EFI_ACPI_SDT_HEADER *)CurrentTable)->Checksum = 0; in PpmLoadAndPatchPMTables() 366 ((EFI_ACPI_SDT_HEADER *)CurrentTable)->Checksum = (UINT8) in PpmLoadAndPatchPMTables()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/ |
D | Ffs.c | 215 UINT16 Checksum; in VerifyFvHeaderChecksum() local 217 Checksum = CalculateSum16 ((UINT16 *) FvHeader, FvHeader->HeaderLength); in VerifyFvHeaderChecksum() 219 if (Checksum == 0) { in VerifyFvHeaderChecksum() 247 …HeaderChecksum = (UINT8) (HeaderChecksum - FfsHeader->State - FfsHeader->IntegrityCheck.Checksum.F… in VerifyHeaderChecksum() 285 FileChecksum = (UINT8) (FileChecksum + FfsHeader->IntegrityCheck.Checksum.File); in VerifyFileChecksum() 295 if (FfsHeader->IntegrityCheck.Checksum.File != FFS_FIXED_CHECKSUM) { in VerifyFileChecksum()
|
/device/linaro/bootloader/edk2/NetworkPkg/Udp6Dxe/ |
D | Udp6Main.c | 536 Udp6Header->Checksum = 0; in Udp6Transmit() 575 Udp6Header->Checksum = Udp6Checksum (Packet, HeadSum); in Udp6Transmit() 576 if (Udp6Header->Checksum == 0) { in Udp6Transmit() 580 Udp6Header->Checksum = 0XFFFF; in Udp6Transmit() 587 Udp6Header->Checksum = 0; in Udp6Transmit() 600 Udp6Header->Checksum = Udp6Checksum (Packet, HeadSum); in Udp6Transmit() 601 if (Udp6Header->Checksum == 0) { in Udp6Transmit() 605 Udp6Header->Checksum = 0xffff; in Udp6Transmit()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/IndustryStandard/ |
D | Acpi.h | 38 UINT8 Checksum; member 82 UINT8 Checksum; member
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
D | Tcp4Misc.c | 559 UINT16 Checksum; in TcpChecksum() local 561 Checksum = NetbufChecksum (Nbuf); in TcpChecksum() 562 Checksum = NetAddChecksum (Checksum, HeadSum); in TcpChecksum() 564 Checksum = NetAddChecksum ( in TcpChecksum() 565 Checksum, in TcpChecksum() 569 return (UINT16) ~Checksum; in TcpChecksum() 662 Nhead->Checksum = 0; in TcpResetConnection() 664 Nhead->Checksum = TcpChecksum (Nbuf, Tcb->HeadSum); in TcpResetConnection()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/ |
D | MemoryCallback.c | 323 UINT16 Checksum; 343 Checksum = 0; 345 Checksum = *Ptr++; 349 if (Checksum != 0) {
|
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
D | TcpMisc.c | 641 UINT16 Checksum; in TcpChecksum() local 643 Checksum = NetbufChecksum (Nbuf); in TcpChecksum() 644 Checksum = NetAddChecksum (Checksum, HeadSum); in TcpChecksum() 646 Checksum = NetAddChecksum ( in TcpChecksum() 647 Checksum, in TcpChecksum() 651 return (UINT16) (~Checksum); in TcpChecksum() 937 Nhead->Checksum = 0; in TcpResetConnection() 939 Nhead->Checksum = TcpChecksum (Nbuf, Tcb->HeadSum); in TcpResetConnection()
|