Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/FwVol/
DFwVol.c169 EFI_FFS_FILE_HEADER2 TestFileHeader; in CalculateHeaderChecksum() local
172 CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER2)); in CalculateHeaderChecksum()
176 TestFileHeader.State = 0; in CalculateHeaderChecksum()
177 TestFileHeader.IntegrityCheck.Checksum.File = 0; in CalculateHeaderChecksum()
179 return CalculateSum8 ((CONST UINT8 *) &TestFileHeader, sizeof (EFI_FFS_FILE_HEADER2)); in CalculateHeaderChecksum()
181 CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER)); in CalculateHeaderChecksum()
185 TestFileHeader.State = 0; in CalculateHeaderChecksum()
186 TestFileHeader.IntegrityCheck.Checksum.File = 0; in CalculateHeaderChecksum()
188 return CalculateSum8 ((CONST UINT8 *) &TestFileHeader, sizeof (EFI_FFS_FILE_HEADER)); in CalculateHeaderChecksum()