/device/linaro/bootloader/edk2/EmulatorPkg/Library/SecPeiServicesLib/ |
D | FwVol.c | 25 IN EFI_FFS_FILE_HEADER *FfsHeader in GetFileState() 61 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() 83 for (Index = 0; Index < sizeof (EFI_FFS_FILE_HEADER) - 3; Index += 4) { in CalculateHeaderChecksum() 90 for (; Index < sizeof (EFI_FFS_FILE_HEADER); Index++) { in CalculateHeaderChecksum() 133 EFI_FFS_FILE_HEADER *FfsFileHeader; in SecFfsFindNextFile() 141 EFI_FFS_FILE_HEADER **FileHeader; in SecFfsFindNextFile() 147 FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle; in SecFfsFindNextFile() 160 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolHeader + FwVolHeader->HeaderLength); in SecFfsFindNextFile() 168 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) *FileHeader + FileOccupiedSize); in SecFfsFindNextFile() 173 while (FileOffset < (FvLength - sizeof (EFI_FFS_FILE_HEADER))) { in SecFfsFindNextFile() [all …]
|
/device/linaro/bootloader/edk2/Nt32Pkg/Sec/ |
D | FwVol.c | 29 IN EFI_FFS_FILE_HEADER *FfsHeader in GetFileState() 65 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() 87 for (Index = 0; Index < sizeof (EFI_FFS_FILE_HEADER) - 3; Index += 4) { in CalculateHeaderChecksum() 94 for (; Index < sizeof (EFI_FFS_FILE_HEADER); Index++) { in CalculateHeaderChecksum() 113 IN OUT EFI_FFS_FILE_HEADER **FileHeader in SecFfsFindNextFile() 137 EFI_FFS_FILE_HEADER *FfsFileHeader; in SecFfsFindNextFile() 156 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolHeader + FwVolHeader->HeaderLength); in SecFfsFindNextFile() 164 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) *FileHeader + FileOccupiedSize); in SecFfsFindNextFile() 169 while (FileOffset < (FvLength - sizeof (EFI_FFS_FILE_HEADER))) { in SecFfsFindNextFile() 178 FileOffset += sizeof (EFI_FFS_FILE_HEADER); in SecFfsFindNextFile() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | FvLib.h | 43 IN EFI_FFS_FILE_HEADER *CurrentFile, 44 OUT EFI_FFS_FILE_HEADER **NextFile 51 OUT EFI_FFS_FILE_HEADER **File 59 OUT EFI_FFS_FILE_HEADER **File 65 IN EFI_FFS_FILE_HEADER *File, 82 IN EFI_FFS_FILE_HEADER *FfsHeader 88 EFI_FFS_FILE_HEADER *FfsHeader 100 IN EFI_FFS_FILE_HEADER *FfsHeader 174 IN EFI_FFS_FILE_HEADER *FfsHeader
|
D | FirmwareVolumeBuffer.c | 112 EFI_FFS_FILE_HEADER* FileToRm; in FvBufRemoveFileNew() 162 EFI_FFS_FILE_HEADER *NextFile; in FvBufRemoveFile() 247 EFI_FFS_FILE_HEADER* File = (EFI_FFS_FILE_HEADER*)FfsFile; in FvBufChecksumFile() 588 EFI_FFS_FILE_HEADER *fhdr = NULL; in FvBufAddFile() 604 newSize = FvBufGetFfsFileSize ((EFI_FFS_FILE_HEADER*)File); in FvBufAddFile() 612 fhdr = (EFI_FFS_FILE_HEADER*) ((UINT8*)hdr + offset); in FvBufAddFile() 689 EFI_FFS_FILE_HEADER* NewFile; in FvBufAddFileWithExtend() 691 NewFile = (EFI_FFS_FILE_HEADER*)File; in FvBufAddFileWithExtend() 743 EFI_FFS_FILE_HEADER* NewFile; in FvBufAddVtfFile() 749 EFI_FFS_FILE_HEADER *LastFile; in FvBufAddVtfFile() [all …]
|
D | FvLib.c | 112 IN EFI_FFS_FILE_HEADER *CurrentFile, in GetNextFile() 113 OUT EFI_FFS_FILE_HEADER **NextFile in GetNextFile() 161 CurrentFile = (EFI_FFS_FILE_HEADER *) ((UINTN) mFvHeader + mFvHeader->HeaderLength); in GetNextFile() 197 …*NextFile = (EFI_FFS_FILE_HEADER *) ((((UINTN) CurrentFile - (UINTN) mFvHeader + GetFfsFileLength(… in GetNextFile() 226 OUT EFI_FFS_FILE_HEADER **File in GetFileByName() 247 EFI_FFS_FILE_HEADER *CurrentFile; in GetFileByName() 308 OUT EFI_FFS_FILE_HEADER **File in GetFileByType() 332 EFI_FFS_FILE_HEADER *CurrentFile; in GetFileByType() 490 IN EFI_FFS_FILE_HEADER *File, in GetSectionByType() 623 IN EFI_FFS_FILE_HEADER *FfsHeader in VerifyFfsFile() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/ |
D | FvLib.h | 47 IN EFI_FFS_FILE_HEADER *CurrentFile, 48 OUT EFI_FFS_FILE_HEADER **NextFile 54 OUT EFI_FFS_FILE_HEADER **File 61 OUT EFI_FFS_FILE_HEADER **File 66 IN EFI_FFS_FILE_HEADER *File, 81 IN EFI_FFS_FILE_HEADER *FfsHeader 146 IN EFI_FFS_FILE_HEADER *FfsHeader
|
D | FvLib.c | 118 IN EFI_FFS_FILE_HEADER *CurrentFile, in GetNextFile() 119 OUT EFI_FFS_FILE_HEADER **NextFile in GetNextFile() 167 CurrentFile = (EFI_FFS_FILE_HEADER *) ((UINTN) mFvHeader + mFvHeader->HeaderLength); in GetNextFile() 203 …*NextFile = (EFI_FFS_FILE_HEADER *) (((UINTN) CurrentFile + GetLength (CurrentFile->Size) + 0x07) … in GetNextFile() 208 if (((UINTN) *NextFile + sizeof (EFI_FFS_FILE_HEADER) >= (UINTN) mFvHeader + mFvLength) || in GetNextFile() 232 OUT EFI_FFS_FILE_HEADER **File in GetFileByName() 253 EFI_FFS_FILE_HEADER *CurrentFile; in GetFileByName() 309 OUT EFI_FFS_FILE_HEADER **File in GetFileByType() 333 EFI_FFS_FILE_HEADER *CurrentFile; in GetFileByType() 480 IN EFI_FFS_FILE_HEADER *File, in GetSectionByType() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/ |
D | DebugAgentSymbolsBaseLib.c | 54 IN EFI_FFS_FILE_HEADER *FfsHeader in GetFileState() 86 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() 92 Sum = CalculateSum8 ((CONST VOID*)FileHeader,sizeof(EFI_FFS_FILE_HEADER)); in CalculateHeaderChecksum() 107 OUT EFI_FFS_FILE_HEADER **FileHeader in GetFfsFile() 112 EFI_FFS_FILE_HEADER *FfsFileHeader; in GetFfsFile() 121 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FwVolHeader + FwVolHeader->HeaderLength); in GetFfsFile() 130 while (FileOffset < (FvLength - sizeof (EFI_FFS_FILE_HEADER))) { in GetFfsFile() 137 FileOffset += sizeof(EFI_FFS_FILE_HEADER); in GetFfsFile() 138 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FfsFileHeader + sizeof(EFI_FFS_FILE_HEADER)); in GetFfsFile() 157 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FfsFileHeader + FileOccupiedSize); in GetFfsFile() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/ |
D | EdkIIGluePeimEntryPoint.h | 43 IN EFI_FFS_FILE_HEADER *FfsHeader, 60 IN EFI_FFS_FILE_HEADER *FfsHeader, 75 IN EFI_FFS_FILE_HEADER *FfsHeader, 90 IN EFI_FFS_FILE_HEADER *FfsHeader, 107 IN EFI_FFS_FILE_HEADER *FfsHeader,
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/ |
D | Ffs.c | 31 IN EFI_FFS_FILE_HEADER *FfsHeader in SetFileState() 53 IN EFI_FFS_FILE_HEADER *FfsHeader in GetFileState() 237 IN EFI_FFS_FILE_HEADER *FfsHeader in VerifyHeaderChecksum() 245 HeaderChecksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER)); in VerifyHeaderChecksum() 267 IN EFI_FFS_FILE_HEADER *FfsHeader in VerifyFileChecksum() 283 …teSum8 ((UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER), FFS_FILE_SIZE (FfsHeader) - sizeof (EF… in VerifyFileChecksum() 317 IN EFI_FFS_FILE_HEADER *FfsHeader in IsValidFFSHeader() 328 sizeof (EFI_FFS_FILE_HEADER) in IsValidFFSHeader() 386 IN EFI_FFS_FILE_HEADER *FfsHeader in GetNextPossibleFileHeader() 399 return (EFI_PHYSICAL_ADDRESS) (UINTN) FfsHeader + sizeof (EFI_FFS_FILE_HEADER); in GetNextPossibleFileHeader() [all …]
|
D | FwPadFile.c | 27 IN EFI_FFS_FILE_HEADER *PadFileHeader in SetPadFileChecksum() 44 … ((UINT8 *) PadFileHeader + sizeof (EFI_FFS_FILE_HEADER), FFS_FILE_SIZE (PadFileHeader) - sizeof (… in SetPadFileChecksum() 78 EFI_FFS_FILE_HEADER *PadFileHeader; in FvCreatePadFileInFreeSpace() 87 HeaderSize = sizeof (EFI_FFS_FILE_HEADER); in FvCreatePadFileInFreeSpace() 115 PadFileHeader = (EFI_FFS_FILE_HEADER *) StartPos; in FvCreatePadFileInFreeSpace() 229 IN EFI_FFS_FILE_HEADER *PadFileHeader, in FvFillPadFile() 282 OUT EFI_FFS_FILE_HEADER *FileHeader, in FvFillFfsFile() 292 EFI_FFS_FILE_HEADER *TmpFileHeader; in FvFillFfsFile() 301 TmpFileHeader = (EFI_FFS_FILE_HEADER *) FfsFileBuffer; in FvFillFfsFile() 350 IN EFI_FFS_FILE_HEADER *FileHeader, in FvAdjustFfsFile() [all …]
|
D | FwVolWrite.c | 27 IN EFI_FFS_FILE_HEADER *FfsHeader in SetHeaderChecksum() 52 sizeof (EFI_FFS_FILE_HEADER) in SetHeaderChecksum() 71 IN EFI_FFS_FILE_HEADER *FfsHeader, in SetFileChecksum() 86 (UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER), in SetFileChecksum() 87 ActualFileSize - sizeof (EFI_FFS_FILE_HEADER) in SetFileChecksum() 158 DataStartPos = (UINTN) StartAddress + sizeof (EFI_FFS_FILE_HEADER); in CalculatePadFileSize() 172 if ((PadSize == 0) || (PadSize >= sizeof (EFI_FFS_FILE_HEADER))) { in CalculatePadFileSize() 179 RelativePos = DataStartPos - (UINTN) FvDevice->CachedFv + sizeof (EFI_FFS_FILE_HEADER); in CalculatePadFileSize() 180 PadSize = sizeof (EFI_FFS_FILE_HEADER); in CalculatePadFileSize() 376 EFI_FFS_FILE_HEADER *FileHeader; in FvLocatePadFile() [all …]
|
D | FwVolRead.c | 121 EFI_FFS_FILE_HEADER *FfsFileHeader; in FvGetNextFile() 161 FfsFileHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; in FvGetNextFile() 193 FfsFileHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; in FvGetNextFile() 235 *Size = FFS_FILE_SIZE (FfsFileHeader) - sizeof (EFI_FFS_FILE_HEADER); in FvGetNextFile() 248 SrcPtr = ((UINT8 *) FfsFileHeader) + sizeof (EFI_FFS_FILE_HEADER); in FvGetNextFile() 327 EFI_FFS_FILE_HEADER *FfsHeader; in FvReadFile() 355 FfsHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; in FvReadFile() 388 FfsHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; in FvReadFile() 397 FileSize = FFS_FILE_SIZE (FfsHeader) - sizeof (EFI_FFS_FILE_HEADER); in FvReadFile() 424 SrcPtr = ((UINT8 *) FfsHeader) + sizeof (EFI_FFS_FILE_HEADER); in FvReadFile()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/ |
D | FwVol.c | 41 IN EFI_FFS_FILE_HEADER *FfsHeader in GetFileState() 74 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() 84 for (Index = 0; Index < sizeof(EFI_FFS_FILE_HEADER) - 3; Index += 4) { in CalculateHeaderChecksum() 91 for (; Index < sizeof(EFI_FFS_FILE_HEADER); Index++) { in CalculateHeaderChecksum() 171 EFI_FFS_FILE_HEADER **FileHeader; in FindFileEx() 172 EFI_FFS_FILE_HEADER *FfsFileHeader; in FindFileEx() 182 FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle; in FindFileEx() 197 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FwVolHeader + FwVolHeader->HeaderLength); in FindFileEx() 200 …FfsFileHeader = (EFI_FFS_FILE_HEADER *)(((UINT8 *)FwVolExHeaderInfo) + FwVolExHeaderInfo->ExtHeade… in FindFileEx() 209 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)*FileHeader + FileOccupiedSize); in FindFileEx() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/ |
D | Ffs.c | 32 IN EFI_FFS_FILE_HEADER *FfsHeader in GetFileState() 131 IN EFI_FFS_FILE_HEADER *FfsHeader in VerifyHeaderChecksum() 139 HeaderChecksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER)); in VerifyHeaderChecksum() 166 IN EFI_FFS_FILE_HEADER *FfsHeader, in IsValidFfsHeader() 204 IN EFI_FFS_FILE_HEADER *FfsHeader in IsValidFfsFile() 221 … ((CONST UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER), FFS_FILE_SIZE (FfsHeader) - sizeof(EFI… in IsValidFfsFile()
|
D | FwVol.c | 330 EFI_FFS_FILE_HEADER *FfsHeader; in FvCheck() 343 EFI_FFS_FILE_HEADER *CacheFfsHeader; in FvCheck() 479 FfsHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolExtHeader + FwVolExtHeader->ExtHeaderSize); in FvCheck() 480 FfsHeader = (EFI_FFS_FILE_HEADER *) ALIGN_POINTER (FfsHeader, 8); in FvCheck() 482 FfsHeader = (EFI_FFS_FILE_HEADER *) (FvDevice->CachedFv); in FvCheck() 485 …achedFv) && ((UINTN) FfsHeader <= (UINTN) ((UINTN) TopFvAddress - sizeof (EFI_FFS_FILE_HEADER)))) { in FvCheck() 493 if (TestLength > sizeof (EFI_FFS_FILE_HEADER)) { in FvCheck() 494 TestLength = sizeof (EFI_FFS_FILE_HEADER); in FvCheck() 511 FfsHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER2)); in FvCheck() 513 FfsHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER)); in FvCheck() [all …]
|
D | FwVolDriver.h | 27 EFI_FFS_FILE_HEADER *FfsHeader; 353 IN EFI_FFS_FILE_HEADER *FfsHeader 369 IN EFI_FFS_FILE_HEADER *FfsHeader 386 IN EFI_FFS_FILE_HEADER *FfsHeader, 405 IN EFI_FFS_FILE_HEADER *FfsHeader
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Platform/Generic/MonoStatusCode/Pei/ |
D | MonoStatusCode.h | 68 IN EFI_FFS_FILE_HEADER *FfsHeader, 78 IN EFI_FFS_FILE_HEADER *FfsHeader, 106 IN EFI_FFS_FILE_HEADER *FfsHeader,
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFvImage/ |
D | GenFvImageLib.c | 1107 IN EFI_FFS_FILE_HEADER *FfsFile, in UpdateFfsFileState() 1135 IN EFI_FFS_FILE_HEADER *FfsFile, in ReadFfsAlignment() 1258 EFI_FFS_FILE_HEADER *PadFile; in AddPadFile() 1273 assert (sizeof (EFI_FFS_FILE_HEADER) % 8 == 0); in AddPadFile() 1278 …FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage + sizeof (EFI_FFS_FILE_HEADER)) % DataAli… in AddPadFile() 1284 PadFile = (EFI_FFS_FILE_HEADER *) FvImage->CurrentFilePointer; in AddPadFile() 1289 if ((UINTN) (PadFile + sizeof (EFI_FFS_FILE_HEADER)) >= (UINTN) FvImage->Eof) { in AddPadFile() 1294 memset (PadFile, 0, sizeof (EFI_FFS_FILE_HEADER)); in AddPadFile() 1306 …NTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage + (sizeof (EFI_FFS_FILE_HEADER) * 2); in AddPadFile() 1317 PadFileSize -= sizeof (EFI_FFS_FILE_HEADER); in AddPadFile() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Include/Framework/ |
D | PeiCis.h | 50 IN EFI_FFS_FILE_HEADER *FfsHeader, 101 IN OUT EFI_FFS_FILE_HEADER **FileHeader 122 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/ |
D | EdkIIGluePeimEntryPoint.c | 37 IN EFI_FFS_FILE_HEADER *FfsHeader, in ProcessLibraryConstructorList() 63 IN EFI_FFS_FILE_HEADER *FfsHeader, 79 IN EFI_FFS_FILE_HEADER *FfsHeader, in _ModuleEntryPoint() 114 IN EFI_FFS_FILE_HEADER *FfsHeader, in EfiMain()
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspWrapperSecCore/ |
D | FindPeiCore.c | 39 EFI_FFS_FILE_HEADER *File; in FindImageBase() 61 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; in FindImageBase() 69 if (Size < sizeof (EFI_FFS_FILE_HEADER)) { in FindImageBase() 93 EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER)); in FindImageBase()
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspInitPei/ |
D | FindPeiCore.c | 39 EFI_FFS_FILE_HEADER *File; in FindImageBase() 61 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; in FindImageBase() 69 if (Size < sizeof (EFI_FFS_FILE_HEADER)) { in FindImageBase() 93 EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER)); in FindImageBase()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/SecCore/ |
D | FindPeiCore.c | 39 EFI_FFS_FILE_HEADER *File; in FindImageBase() 61 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; in FindImageBase() 69 if (Size < sizeof (EFI_FFS_FILE_HEADER)) { in FindImageBase() 93 EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER)); in FindImageBase()
|
/device/linaro/bootloader/edk2/CorebootModulePkg/SecCore/ |
D | FindPeiCore.c | 39 EFI_FFS_FILE_HEADER *File; in FindImageBase() 61 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; in FindImageBase() 69 if (Size < sizeof (EFI_FFS_FILE_HEADER)) { in FindImageBase() 93 EndOfSection = (EFI_PHYSICAL_ADDRESS) (UINTN) ((UINT8 *) File + sizeof (EFI_FFS_FILE_HEADER)); in FindImageBase()
|