/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/ |
D | FwVol.c | 43 OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader in GetFwVolHeader() argument 111 *FwVolHeader = AllocatePool (TempFvh.HeaderLength); in GetFwVolHeader() 112 if (*FwVolHeader == NULL) { in GetFwVolHeader() 119 CopyMem (*FwVolHeader, (VOID *) (UINTN) BaseAddress, TempFvh.HeaderLength); in GetFwVolHeader() 130 (UINT8 *) *FwVolHeader in GetFwVolHeader() 136 FreePool (*FwVolHeader); in GetFwVolHeader() 137 *FwVolHeader = NULL; in GetFwVolHeader() 317 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FvCheck() local 347 FwVolHeader = NULL; in FvCheck() 348 Status = GetFwVolHeader (Fvb, &FwVolHeader); in FvCheck() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/ |
D | FwVol.c | 183 OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader in GetFwVolHeader() argument 223 *FwVolHeader = AllocatePool (TempFvh.HeaderLength); in GetFwVolHeader() 224 if (*FwVolHeader == NULL) { in GetFwVolHeader() 231 CopyMem (*FwVolHeader, &TempFvh, sizeof (EFI_FIRMWARE_VOLUME_HEADER)); in GetFwVolHeader() 237 Buffer = (UINT8 *)*FwVolHeader + sizeof (EFI_FIRMWARE_VOLUME_HEADER); in GetFwVolHeader() 243 CoreFreePool (*FwVolHeader); in GetFwVolHeader() 301 CoreFreePool (FvDevice->FwVolHeader); in FreeFvDeviceResource() 325 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FvCheck() local 349 FwVolHeader = FvDevice->FwVolHeader; in FvCheck() 360 Size = (UINTN)(FwVolHeader->FvLength - FwVolHeader->HeaderLength); in FvCheck() [all …]
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Pei/PlatformInit/ |
D | BootMode.c | 81 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in ValidateFvHeader() local 95 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *)(UINTN)PcdGet32(PcdFlashFvMainBase); in ValidateFvHeader() 96 if ((FwVolHeader->Revision != EFI_FVH_REVISION)|| in ValidateFvHeader() 97 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in ValidateFvHeader() 98 (FwVolHeader->FvLength == ((UINT64) -1)) || in ValidateFvHeader() 99 ((FwVolHeader->HeaderLength & 0x01) != 0) in ValidateFvHeader() 106 HeaderLength = (UINT16) (FwVolHeader->HeaderLength / 2); in ValidateFvHeader() 107 Ptr = (UINT16 *) FwVolHeader; in ValidateFvHeader()
|
/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/ |
D | FwBlockService.c | 780 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader in ValidateFvHeader() argument 804 if ((FwVolHeader->Revision != EFI_FVH_REVISION) || in ValidateFvHeader() 805 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in ValidateFvHeader() 806 (FwVolHeader->FvLength == ((UINTN) -1)) || in ValidateFvHeader() 807 ((FwVolHeader->HeaderLength & 0x01) != 0) in ValidateFvHeader() 816 Checksum = CalculateSum16 ((UINT16 *) FwVolHeader, in ValidateFvHeader() 817 FwVolHeader->HeaderLength); in ValidateFvHeader() 822 (UINT16) (((UINTN) FwVolHeader->Checksum + 0x10000 - Checksum) & 0xffff); in ValidateFvHeader() 825 FwVolHeader, FwVolHeader->Checksum, Expected)); in ValidateFvHeader() 876 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in InitializeVariableFvHeader() local [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVolBlock/ |
D | FwVolBlock.c | 211 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FwVolBlockReadBlock() local 252 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *)((UINTN) FvbDevice->BaseAddress); in FwVolBlockReadBlock() 253 LbaOffset = (UINT8 *) FwVolHeader + LbaStart + Offset; in FwVolBlockReadBlock() 369 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FwVolBlockGetBlockSize() local 380 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *)((UINTN)FvbDevice->BaseAddress); in FwVolBlockGetBlockSize() 382 PtrBlockMapEntry = FwVolHeader->BlockMap; in FwVolBlockGetBlockSize() 462 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in ProduceFVBProtocolOnBuffer() local 470 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *)(UINTN) BaseAddress; in ProduceFVBProtocolOnBuffer() 474 if (FwVolHeader->Signature != EFI_FVH_SIGNATURE) { in ProduceFVBProtocolOnBuffer() 483 if ((FwVolHeader->Attributes & EFI_FVB2_WEAK_ALIGNMENT) != EFI_FVB2_WEAK_ALIGNMENT) { in ProduceFVBProtocolOnBuffer() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/ |
D | FwVol.c | 125 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FileHandleToVolume() local 136 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *)(UINTN)(Hob.FirmwareVolume->BaseAddress); in FileHandleToVolume() 137 if (((UINT64) (UINTN) FileHandle > (UINT64) (UINTN) FwVolHeader ) && \ in FileHandleToVolume() 138 … ((UINT64) (UINTN) FileHandle <= ((UINT64) (UINTN) FwVolHeader + FwVolHeader->FvLength - 1))) { in FileHandleToVolume() 139 *VolumeHandle = (EFI_PEI_FV_HANDLE)FwVolHeader; in FileHandleToVolume() 170 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FindFileEx() local 181 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *)FvHandle; in FindFileEx() 184 FvLength = FwVolHeader->FvLength; in FindFileEx() 185 if (FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) { in FindFileEx() 197 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FwVolHeader + FwVolHeader->HeaderLength); in FindFileEx() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/ |
D | Reclaim.c | 44 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in GetFvbHandleByAddress() local 81 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINTN) FvbBaseAddress); in GetFvbHandleByAddress() 82 if ((Address >= FvbBaseAddress) && (Address <= (FvbBaseAddress + FwVolHeader->FvLength))) { in GetFvbHandleByAddress() 121 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in GetLbaAndOffsetByAddress() local 152 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINTN) FvbBaseAddress); in GetLbaAndOffsetByAddress() 157 if ((Address >= FvbBaseAddress) && (Address <= (FvbBaseAddress + FwVolHeader->FvLength))) { in GetLbaAndOffsetByAddress() 158 if ((FwVolHeader->FvLength) > (FwVolHeader->HeaderLength)) { in GetLbaAndOffsetByAddress() 162 FvbMapEntry = &FwVolHeader->BlockMap[0]; in GetLbaAndOffsetByAddress()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/ |
D | FvbService.c | 969 IN CONST EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader in IsFvHeaderValid() 973 … if (CompareMem (&FwVolHeader->FileSystemGuid, &gEfiSystemNvDataFvGuid, sizeof(EFI_GUID)) != 0 ) { in IsFvHeaderValid() 977 …if (CompareMem (&FwVolHeader->FileSystemGuid, &gEfiFirmwareFileSystem2Guid, sizeof(EFI_GUID)) != 0… in IsFvHeaderValid() 981 if ( (FwVolHeader->Revision != EFI_FVH_REVISION) || in IsFvHeaderValid() 982 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in IsFvHeaderValid() 983 (FwVolHeader->FvLength == ((UINTN) -1)) || in IsFvHeaderValid() 984 ((FwVolHeader->HeaderLength & 0x01 ) !=0) ) { in IsFvHeaderValid() 988 if (CalculateCheckSum16 ((UINT16 *) FwVolHeader, FwVolHeader->HeaderLength) != 0) { in IsFvHeaderValid() 1010 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FvbInitialize() 1042 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) BaseAddress; in FvbInitialize() [all …]
|
D | FvbServiceSmm.c | 53 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in InstallFvbProtocol() 64 FwVolHeader = &FwhInstance->VolumeHeader; in InstallFvbProtocol() 69 if (FwVolHeader->ExtHeaderOffset == 0) { in InstallFvbProtocol() 75 …vice->DevicePath)->MemMapDevPath.EndingAddress = FwhInstance->FvBase + FwVolHeader->FvLength - 1; in InstallFvbProtocol() 80 (GUID *)(UINTN)(FwhInstance->FvBase + FwVolHeader->ExtHeaderOffset) in InstallFvbProtocol()
|
D | FvbServiceDxe.c | 88 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in InstallFvbProtocol() 100 FwVolHeader = &FwhInstance->VolumeHeader; in InstallFvbProtocol() 106 if (FwVolHeader->ExtHeaderOffset == 0) { in InstallFvbProtocol() 112 …vice->DevicePath)->MemMapDevPath.EndingAddress = FwhInstance->FvBase + FwVolHeader->FvLength - 1; in InstallFvbProtocol() 117 (GUID *)(UINTN)(FwhInstance->FvBase + FwVolHeader->ExtHeaderOffset) in InstallFvbProtocol()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ |
D | FlashUpdate.c | 606 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in PerformUpdateOnWholeFv() local 617 FwVolHeader = NULL; in PerformUpdateOnWholeFv() 618 …FwVolHeader = AllocatePool (((EFI_FIRMWARE_VOLUME_HEADER *) ((UINTN) (ConfigData->BaseAddress)))->… in PerformUpdateOnWholeFv() 619 if (FwVolHeader == NULL) { in PerformUpdateOnWholeFv() 623 FwVolHeader, in PerformUpdateOnWholeFv() 631 if ((UINT64)ImageSize != FwVolHeader->FvLength) { in PerformUpdateOnWholeFv() 632 FreePool (FwVolHeader); in PerformUpdateOnWholeFv() 641 Print (TmpStr, ConfigData->BaseAddress, (FwVolHeader->FvLength + ConfigData->BaseAddress)); in PerformUpdateOnWholeFv() 646 ConfigData->BaseAddress, (FwVolHeader->FvLength + ConfigData->BaseAddress))); in PerformUpdateOnWholeFv() 651 BlockMap = &(FwVolHeader->BlockMap[0]); in PerformUpdateOnWholeFv() [all …]
|
/device/linaro/bootloader/edk2/Nt32Pkg/Sec/ |
D | FwVol.c | 112 IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader, in SecFfsFindNextFile() argument 145 FvLength = FwVolHeader->FvLength; in SecFfsFindNextFile() 146 if (FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) { in SecFfsFindNextFile() 156 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolHeader + FwVolHeader->HeaderLength); in SecFfsFindNextFile() 167 FileOffset = (UINT32) ((UINT8 *) FfsFileHeader - (UINT8 *) FwVolHeader); in SecFfsFindNextFile() 280 IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader, in SecFfsFindPeiCore() argument 306 Status = SecFfsFindNextFile (SearchType, FwVolHeader, &FileHeader); in SecFfsFindPeiCore()
|
/device/linaro/bootloader/edk2/Nt32Pkg/FvbServicesRuntimeDxe/ |
D | FWBlockService.c | 1087 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader in ValidateFvHeader() argument 1108 if ((FwVolHeader->Revision != EFI_FVH_REVISION) || in ValidateFvHeader() 1109 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in ValidateFvHeader() 1110 (FwVolHeader->FvLength == ((UINTN) -1)) || in ValidateFvHeader() 1111 ((FwVolHeader->HeaderLength & 0x01) != 0) in ValidateFvHeader() 1119 if (CalculateCheckSum16 ((UINT16 *) FwVolHeader, FwVolHeader->HeaderLength) != 0) { in ValidateFvHeader() 1145 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FvbInitialize() local 1196 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) BaseAddress; in FvbInitialize() 1197 Status = ValidateFvHeader (FwVolHeader); in FvbInitialize() 1202 Status = GetFvbInfo (Length, &FwVolHeader); in FvbInitialize() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/ |
D | Reclaim.c | 45 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in GetLbaAndOffsetByAddress() local 69 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINTN) FvbBaseAddress); in GetLbaAndOffsetByAddress() 74 if ((FwVolHeader->FvLength) > (FwVolHeader->HeaderLength)) { in GetLbaAndOffsetByAddress() 78 FvbMapEntry = &FwVolHeader->BlockMap[0]; in GetLbaAndOffsetByAddress()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/SecPeiServicesLib/ |
D | FwVol.c | 140 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in SecFfsFindNextFile() local 146 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) FvHandle; in SecFfsFindNextFile() 149 FvLength = FwVolHeader->FvLength; in SecFfsFindNextFile() 150 if (FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) { in SecFfsFindNextFile() 160 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolHeader + FwVolHeader->HeaderLength); in SecFfsFindNextFile() 171 FileOffset = (UINT32) ((UINT8 *) FfsFileHeader - (UINT8 *) FwVolHeader); in SecFfsFindNextFile()
|
/device/linaro/bootloader/edk2/EmulatorPkg/FvbServicesRuntimeDxe/ |
D | FWBlockService.c | 1047 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader in ValidateFvHeader() argument 1072 if ((FwVolHeader->Revision != EFI_FVH_REVISION) || in ValidateFvHeader() 1073 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in ValidateFvHeader() 1074 (FwVolHeader->FvLength == ((UINTN) -1)) || in ValidateFvHeader() 1075 ((FwVolHeader->HeaderLength & 0x01) != 0) in ValidateFvHeader() 1082 HeaderLength = (UINT16) (FwVolHeader->HeaderLength / 2); in ValidateFvHeader() 1083 Ptr = (UINT16 *) FwVolHeader; in ValidateFvHeader() 1117 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FvbInitialize() local 1174 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) BaseAddress; in FvbInitialize() 1175 Status = ValidateFvHeader (FwVolHeader); in FvbInitialize() [all …]
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/SpiFvbServices/ |
D | FwBlockService.c | 1359 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader in ValidateFvHeader() argument 1385 …if (((FwVolHeader->Revision != EFI_FVH_REVISION) && (FwVolHeader->Revision != EFI_FVH_REVISION)) || in ValidateFvHeader() 1387 if ((FwVolHeader->Revision != EFI_FVH_REVISION) || in ValidateFvHeader() 1389 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in ValidateFvHeader() 1390 (FwVolHeader->FvLength == ((UINTN) -1)) || in ValidateFvHeader() 1391 ((FwVolHeader->HeaderLength & 0x01) != 0) in ValidateFvHeader() 1398 HeaderLength = (UINT16) (FwVolHeader->HeaderLength / 2); in ValidateFvHeader() 1399 Ptr = (UINT16 *) FwVolHeader; in ValidateFvHeader() 1417 OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader, in GetFvbHeader() argument 1427 if (*FwVolHeader == NULL) { in GetFvbHeader() [all …]
|
/device/linaro/bootloader/edk2/CorebootModulePkg/CbSupportPei/ |
D | CbSupportPei.c | 79 IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader in IsFvHeaderValid() argument 85 …if (CompareMem (&FwVolHeader->FileSystemGuid, &gEfiFirmwareFileSystem2Guid, sizeof(EFI_GUID)) != 0… in IsFvHeaderValid() 89 if ( (FwVolHeader->Revision != EFI_FVH_REVISION) || in IsFvHeaderValid() 90 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in IsFvHeaderValid() 91 (FwVolHeader->FvLength == ((UINTN) -1)) || in IsFvHeaderValid() 92 ((FwVolHeader->HeaderLength & 0x01 ) !=0) ) { in IsFvHeaderValid() 96 Checksum = CalculateCheckSum16 ((UINT16 *) FwVolHeader, FwVolHeader->HeaderLength); in IsFvHeaderValid() 100 FwVolHeader->Checksum, in IsFvHeaderValid() 101 (UINT16)( Checksum + FwVolHeader->Checksum ))); in IsFvHeaderValid()
|
/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/ |
D | FWBlockService.c | 1133 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader in ValidateFvHeader() argument 1158 if ((FwVolHeader->Revision != EFI_FVH_REVISION) || in ValidateFvHeader() 1159 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in ValidateFvHeader() 1160 (FwVolHeader->FvLength == ((UINTN) -1)) || in ValidateFvHeader() 1161 ((FwVolHeader->HeaderLength & 0x01) != 0) in ValidateFvHeader() 1168 HeaderLength = (UINT16) (FwVolHeader->HeaderLength / 2); in ValidateFvHeader() 1169 Ptr = (UINT16 *) FwVolHeader; in ValidateFvHeader() 1188 OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader, in GetFvbHeader() argument 1202 *FwVolHeader = NULL; in GetFvbHeader() 1248 *FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) (FlashMapSubEntry->Base); in GetFvbHeader() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/ |
D | DebugAgentSymbolsBaseLib.c | 105 IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader, in GetFfsFile() argument 118 ASSERT (FwVolHeader->Signature == EFI_FVH_SIGNATURE); in GetFfsFile() 120 FvLength = FwVolHeader->FvLength; in GetFfsFile() 121 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FwVolHeader + FwVolHeader->HeaderLength); in GetFfsFile() 122 FileOffset = FwVolHeader->HeaderLength; in GetFfsFile() 124 if (FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) { in GetFfsFile()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/ |
D | MemoryCallback.c | 316 IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader 328 if ((FwVolHeader->Revision != EFI_FVH_REVISION) || 329 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || 330 (FwVolHeader->FvLength == ((UINT64) -1)) || 331 ((FwVolHeader->HeaderLength & 0x01) != 0) 339 HeaderLength = (UINT16) (FwVolHeader->HeaderLength / 2); 340 Ptr = (UINT16 *) FwVolHeader;
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/ |
D | NorFlashFvbDxe.c | 141 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in ValidateFvHeader() local 146 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER*)Instance->RegionBaseAddress; in ValidateFvHeader() 156 if ( (FwVolHeader->Revision != EFI_FVH_REVISION) in ValidateFvHeader() 157 || (FwVolHeader->Signature != EFI_FVH_SIGNATURE) in ValidateFvHeader() 158 || (FwVolHeader->FvLength != FvLength) in ValidateFvHeader() 167 if( CompareGuid (&FwVolHeader->FileSystemGuid, &gEfiSystemNvDataFvGuid) == FALSE ) { in ValidateFvHeader() 174 Checksum = CalculateSum16((UINT16*)FwVolHeader, FwVolHeader->HeaderLength); in ValidateFvHeader() 181 VariableStoreHeader = (VARIABLE_STORE_HEADER*)((UINTN)FwVolHeader + FwVolHeader->HeaderLength); in ValidateFvHeader() 191 VariableStoreLength = PcdGet32 (PcdFlashNvStorageVariableSize) - FwVolHeader->HeaderLength; in ValidateFvHeader()
|
/device/linaro/bootloader/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/ |
D | Fvb.c | 584 IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader in ValidateFvHeader() argument 594 if ((FwVolHeader->Revision != EFI_FVH_REVISION) || in ValidateFvHeader() 595 (FwVolHeader->Signature != EFI_FVH_SIGNATURE) || in ValidateFvHeader() 596 (FwVolHeader->FvLength != EMU_FVB_SIZE) || in ValidateFvHeader() 597 (FwVolHeader->HeaderLength != EMU_FV_HEADER_LENGTH) in ValidateFvHeader() 605 Checksum = CalculateSum16((VOID*) FwVolHeader, FwVolHeader->HeaderLength); in ValidateFvHeader()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/FwVol/ |
D | FwVol.c | 206 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FileHandleToVolume() local 218 FwVolHeader = PrivateData->Fv[Index].FvHeader; in FileHandleToVolume() 219 if (((UINT64) (UINTN) FileHandle > (UINT64) (UINTN) FwVolHeader ) && \ in FileHandleToVolume() 220 … ((UINT64) (UINTN) FileHandle <= ((UINT64) (UINTN) FwVolHeader + FwVolHeader->FvLength - 1))) { in FileHandleToVolume() 224 if ((UINT64) (UINTN) PrivateData->Fv[BestIndex].FvHeader < (UINT64) (UINTN) FwVolHeader) { in FileHandleToVolume() 266 EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader; in FindFileEx() local 282 FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) FvHandle; in FindFileEx() 285 IsFfs3Fv = CompareGuid (&FwVolHeader->FileSystemGuid, &gEfiFirmwareFileSystem3Guid); in FindFileEx() 287 FvLength = FwVolHeader->FvLength; in FindFileEx() 288 if ((FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) != 0) { in FindFileEx() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib/ |
D | PeiServicesLib.c | 235 IN OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader in PeiServicesFfsFindNextVolume() argument 241 return (*PeiServices)->FfsFindNextVolume (PeiServices, Instance, FwVolHeader); in PeiServicesFfsFindNextVolume() 261 IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader, in PeiServicesFfsFindNextFile() argument 268 return (*PeiServices)->FfsFindNextFile (PeiServices, SearchType, FwVolHeader, FileHeader); in PeiServicesFfsFindNextFile()
|