/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/Common/ |
H A D | FvLib.h | 50 IN EFI_FFS_FILE_HEADER *CurrentFile, 51 OUT EFI_FFS_FILE_HEADER **NextFile 58 OUT EFI_FFS_FILE_HEADER **File 66 OUT EFI_FFS_FILE_HEADER **File 72 IN EFI_FFS_FILE_HEADER *File, 89 IN EFI_FFS_FILE_HEADER *FfsHeader 157 IN EFI_FFS_FILE_HEADER *FfsHeader
|
H A D | FvLib.c | 119 IN EFI_FFS_FILE_HEADER *CurrentFile, 120 OUT EFI_FFS_FILE_HEADER **NextFile 168 CurrentFile = (EFI_FFS_FILE_HEADER *) ((UINTN) mFvHeader + mFvHeader->HeaderLength); 204 *NextFile = (EFI_FFS_FILE_HEADER *) ((((UINTN) CurrentFile - (UINTN) mFvHeader + GetLength (CurrentFile->Size) + 0x07) & (-1 << 3)) + (UINT8 *) mFvHeader); 209 if (((UINTN) *NextFile + sizeof (EFI_FFS_FILE_HEADER) >= (UINTN) mFvHeader + mFvLength) || 233 OUT EFI_FFS_FILE_HEADER **File 254 EFI_FFS_FILE_HEADER *CurrentFile; 315 OUT EFI_FFS_FILE_HEADER **File 339 EFI_FFS_FILE_HEADER *CurrentFile; 486 IN EFI_FFS_FILE_HEADER *Fil [all...] |
H A D | FirmwareVolumeBuffer.c | 83 EFI_FFS_FILE_HEADER* FileToRm; 133 EFI_FFS_FILE_HEADER *NextFile; 217 EFI_FFS_FILE_HEADER* File = (EFI_FFS_FILE_HEADER*)FfsFile; 234 sizeof (EFI_FFS_FILE_HEADER) 240 FileSize - sizeof (EFI_FFS_FILE_HEADER) 555 EFI_FFS_FILE_HEADER *fhdr = NULL; 571 newSize = FvBufExpand3ByteSize (((EFI_FFS_FILE_HEADER*)File)->Size); 579 fhdr = (EFI_FFS_FILE_HEADER*) ((UINT8*)hdr + offset); 656 EFI_FFS_FILE_HEADER* NewFil [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/ |
H A D | Ffs.c | 31 IN EFI_FFS_FILE_HEADER *FfsHeader 53 IN EFI_FFS_FILE_HEADER *FfsHeader 237 IN EFI_FFS_FILE_HEADER *FfsHeader 245 HeaderChecksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER)); 267 IN EFI_FFS_FILE_HEADER *FfsHeader 283 FileChecksum = CalculateSum8 ((UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER), FFS_FILE_SIZE (FfsHeader) - sizeof (EFI_FFS_FILE_HEADER)); 317 IN EFI_FFS_FILE_HEADER *FfsHeader 328 sizeof (EFI_FFS_FILE_HEADER) 386 IN EFI_FFS_FILE_HEADER *FfsHeade [all...] |
H A D | FwPadFile.c | 27 IN EFI_FFS_FILE_HEADER *PadFileHeader 44 CalculateCheckSum8 ((UINT8 *) PadFileHeader + sizeof (EFI_FFS_FILE_HEADER), FFS_FILE_SIZE (PadFileHeader) - sizeof (EFI_FFS_FILE_HEADER)); 78 EFI_FFS_FILE_HEADER *PadFileHeader; 87 HeaderSize = sizeof (EFI_FFS_FILE_HEADER); 115 PadFileHeader = (EFI_FFS_FILE_HEADER *) StartPos; 229 IN EFI_FFS_FILE_HEADER *PadFileHeader, 282 OUT EFI_FFS_FILE_HEADER *FileHeader, 292 EFI_FFS_FILE_HEADER *TmpFileHeader; 301 TmpFileHeader = (EFI_FFS_FILE_HEADER *) FfsFileBuffe [all...] |
H A D | FwVolRead.c | 121 EFI_FFS_FILE_HEADER *FfsFileHeader; 161 FfsFileHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; 193 FfsFileHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; 235 *Size = FFS_FILE_SIZE (FfsFileHeader) - sizeof (EFI_FFS_FILE_HEADER); 248 SrcPtr = ((UINT8 *) FfsFileHeader) + sizeof (EFI_FFS_FILE_HEADER); 327 EFI_FFS_FILE_HEADER *FfsHeader; 355 FfsHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; 388 FfsHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; 397 FileSize = FFS_FILE_SIZE (FfsHeader) - sizeof (EFI_FFS_FILE_HEADER); 421 SrcPtr = ((UINT8 *) FfsHeader) + sizeof (EFI_FFS_FILE_HEADER); [all...] |
H A D | FwVolDriver.h | 423 IN EFI_FFS_FILE_HEADER *FfsHeader 453 IN EFI_FFS_FILE_HEADER *FfsHeader 470 IN EFI_FFS_FILE_HEADER *FfsHeader 541 IN EFI_FFS_FILE_HEADER *FfsHeader 623 IN EFI_FFS_FILE_HEADER *FfsHeader 635 IN EFI_FFS_FILE_HEADER *FfsHeader, 741 IN EFI_FFS_FILE_HEADER *FfsHeader,
|
H A D | FwVol.c | 371 if (TestLength > sizeof (EFI_FFS_FILE_HEADER)) { 372 TestLength = sizeof (EFI_FFS_FILE_HEADER); 385 if (TestLength > sizeof (EFI_FFS_FILE_HEADER)) { 386 TestLength = sizeof (EFI_FFS_FILE_HEADER); 413 if (TestLength < sizeof (EFI_FFS_FILE_HEADER)) { 419 (EFI_FFS_FILE_HEADER *) Ptr 423 (EFI_FFS_FILE_HEADER *) Ptr 428 DEBUG ((EFI_D_ERROR, "Found a FFS3 formatted file: %g in a non-FFS3 formatted FV.\n", &((EFI_FFS_FILE_HEADER *) Ptr)->Name)); 432 Ptr = Ptr + sizeof (EFI_FFS_FILE_HEADER); 449 DEBUG ((EFI_D_ERROR, "Found a FFS3 formatted file: %g in a non-FFS3 formatted FV.\n", &((EFI_FFS_FILE_HEADER *) Pt [all...] |
H A D | FwVolWrite.c | 27 IN EFI_FFS_FILE_HEADER *FfsHeader 52 sizeof (EFI_FFS_FILE_HEADER) 71 IN EFI_FFS_FILE_HEADER *FfsHeader, 86 (UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER), 87 ActualFileSize - sizeof (EFI_FFS_FILE_HEADER) 158 DataStartPos = (UINTN) StartAddress + sizeof (EFI_FFS_FILE_HEADER); 172 if ((PadSize == 0) || (PadSize >= sizeof (EFI_FFS_FILE_HEADER))) { 179 RelativePos = DataStartPos - (UINTN) FvDevice->CachedFv + sizeof (EFI_FFS_FILE_HEADER); 180 PadSize = sizeof (EFI_FFS_FILE_HEADER); 376 EFI_FFS_FILE_HEADER *FileHeade [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Dxe/FwVol/ |
H A D | Ffs.c | 32 IN EFI_FFS_FILE_HEADER *FfsHeader 131 IN EFI_FFS_FILE_HEADER *FfsHeader 139 HeaderChecksum = CalculateSum8 ((UINT8 *) FfsHeader, sizeof (EFI_FFS_FILE_HEADER)); 166 IN EFI_FFS_FILE_HEADER *FfsHeader, 204 IN EFI_FFS_FILE_HEADER *FfsHeader 221 DataCheckSum = CalculateCheckSum8 ((CONST UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER), FFS_FILE_SIZE (FfsHeader) - sizeof(EFI_FFS_FILE_HEADER));
|
H A D | FwVol.c | 301 EFI_FFS_FILE_HEADER *FfsHeader; 427 FfsHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolExtHeader + FwVolExtHeader->ExtHeaderSize); 428 FfsHeader = (EFI_FFS_FILE_HEADER *) ALIGN_POINTER (FfsHeader, 8); 430 FfsHeader = (EFI_FFS_FILE_HEADER *) (FvDevice->CachedFv); 436 if (TestLength > sizeof (EFI_FFS_FILE_HEADER)) { 437 TestLength = sizeof (EFI_FFS_FILE_HEADER); 454 FfsHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER2)); 456 FfsHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FfsHeader + sizeof (EFI_FFS_FILE_HEADER)); 480 FfsHeader = (EFI_FFS_FILE_HEADER *) ((UINT [all...] |
H A D | FwVolDriver.h | 27 EFI_FFS_FILE_HEADER *FfsHeader; 350 IN EFI_FFS_FILE_HEADER *FfsHeader 366 IN EFI_FFS_FILE_HEADER *FfsHeader 383 IN EFI_FFS_FILE_HEADER *FfsHeader, 402 IN EFI_FFS_FILE_HEADER *FfsHeader
|
H A D | FwVolRead.c | 120 EFI_FFS_FILE_HEADER *FfsFileHeader; 168 FfsFileHeader = (EFI_FFS_FILE_HEADER *)FfsFileEntry->FfsHeader; 214 *Size = FFS_FILE_SIZE (FfsFileHeader) - sizeof (EFI_FFS_FILE_HEADER); 281 EFI_FFS_FILE_HEADER *FfsHeader; 345 SrcPtr = ((UINT8 *) FfsHeader) + sizeof (EFI_FFS_FILE_HEADER);
|
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Include/Ppi/ |
H A D | FvLoadFile.h | 47 IN EFI_FFS_FILE_HEADER *FfsHeader,
|
H A D | Security.h | 55 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkPkg/Include/Framework/ |
H A 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,
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Pei/FwVol/ |
H A D | FwVol.c | 116 IN EFI_FFS_FILE_HEADER *FfsHeader 150 IN EFI_FFS_FILE_HEADER *FileHeader 165 CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER)); 172 return CalculateSum8 ((CONST UINT8 *) &TestFileHeader, sizeof (EFI_FFS_FILE_HEADER)); 234 EFI_FFS_FILE_HEADER **FileHeader; 235 EFI_FFS_FILE_HEADER *FfsFileHeader; 249 FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle; 271 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolExtHeader + FwVolExtHeader->ExtHeaderSize); 272 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ALIGN_POINTER (FfsFileHeader, 8); 274 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Pi/ |
H A D | PiFirmwareFile.h | 133 } EFI_FFS_FILE_HEADER; typedef in typeref:struct:__anon11961 160 /// The length of the file data is either (Size - sizeof(EFI_FFS_FILE_HEADER)). This calculation means a 161 /// zero-length file has a Size of 24 bytes, which is sizeof(EFI_FFS_FILE_HEADER). 174 /// If FFS_ATTRIB_LARGE_FILE is not set then EFI_FFS_FILE_HEADER is used. 180 (((((EFI_FFS_FILE_HEADER *) (UINTN) FfsFileHeaderPtr)->Attributes) & FFS_ATTRIB_LARGE_FILE) == FFS_ATTRIB_LARGE_FILE) 183 ((UINT32) (*((UINT32 *) ((EFI_FFS_FILE_HEADER *) (UINTN) FfsFileHeaderPtr)->Size) & 0x00ffffff))
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenFv/ |
H A D | GenFvInternalLib.c | 383 IN EFI_FFS_FILE_HEADER *FfsFile, 412 IN EFI_FFS_FILE_HEADER *FfsFile, 538 EFI_FFS_FILE_HEADER *PadFile; 551 if ((ExtHeader == NULL) && (((UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage + sizeof (EFI_FFS_FILE_HEADER)) % DataAlignment == 0)) { 562 PadFileSize = (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage + (sizeof (EFI_FFS_FILE_HEADER) * 2); 573 PadFileSize -= sizeof (EFI_FFS_FILE_HEADER); 597 PadFile = (EFI_FFS_FILE_HEADER *) FvImage->CurrentFilePointer; 618 PadFile->IntegrityCheck.Checksum.Header = CalculateChecksum8 ((UINT8 *) PadFile, sizeof (EFI_FFS_FILE_HEADER)); 623 (EFI_FFS_FILE_HEADER *) PadFile, 651 IN EFI_FFS_FILE_HEADER *FileBuffe [all...] |
H A D | GenFvInternalLib.h | 353 IN OUT EFI_FFS_FILE_HEADER *FfsFile,
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VolInfo/ |
H A D | VolInfo.c | 119 EFI_FFS_FILE_HEADER *FileHeader, 334 EFI_FFS_FILE_HEADER *CurrentFile; 953 EFI_FFS_FILE_HEADER *FileHeader, 978 EFI_FFS_FILE_HEADER BlankHeader; 988 memset (&BlankHeader, -1, sizeof (EFI_FFS_FILE_HEADER)); 990 memset (&BlankHeader, 0, sizeof (EFI_FFS_FILE_HEADER)); 993 if (memcmp (&BlankHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER)) == 0) { 1034 Checksum = CalculateSum8 ((UINT8 *) FileHeader, sizeof (EFI_FFS_FILE_HEADER)); 1056 Checksum = CalculateSum8 ((UINT8 *) FileHeader, sizeof (EFI_FFS_FILE_HEADER)); 1070 Checksum = CalculateSum8 ((UINT8 *) (FileHeader + 1), FileLength - sizeof (EFI_FFS_FILE_HEADER)); [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenFfs/ |
H A D | GenFfs.c | 456 EFI_FFS_FILE_HEADER FfsFileHeader; 819 memset (&FfsFileHeader, 0, sizeof (EFI_FFS_FILE_HEADER)); 838 // Now FileSize includes the EFI_FFS_FILE_HEADER 840 FileSize += sizeof (EFI_FFS_FILE_HEADER); 854 sizeof (EFI_FFS_FILE_HEADER) 863 FileSize - sizeof (EFI_FFS_FILE_HEADER) 887 fwrite (FileBuffer, 1, FileSize - sizeof (EFI_FFS_FILE_HEADER), FfsFile);
|
/vbox/src/VBox/Devices/EFI/Firmware/OvmfPkg/Sec/ |
H A D | SecMain.c | 221 EFI_FFS_FILE_HEADER *File; 243 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress; 449 EFI_FFS_FILE_HEADER *File; 470 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress;
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenVtf/ |
H A D | GenVtf.c | 1654 EFI_FFS_FILE_HEADER *FileHeader; 1663 FileHeader = (EFI_FFS_FILE_HEADER *) RelativeAddress; 1666 FileHeader = (EFI_FFS_FILE_HEADER *) RelativeAddress; 1676 memset (FileHeader, 0, sizeof (EFI_FFS_FILE_HEADER)); 1682 // Now FileSize includes the EFI_FFS_FILE_HEADER 1694 FileHeader->IntegrityCheck.Checksum.Header = CalculateChecksum8 ((UINT8 *) FileHeader, sizeof (EFI_FFS_FILE_HEADER)); 1695 FileHeader->IntegrityCheck.Checksum.File = CalculateChecksum8 ((UINT8 *) (FileHeader + 1), TotalVtfSize - sizeof (EFI_FFS_FILE_HEADER)); 2062 Vtf1TotalSize += sizeof (EFI_FFS_FILE_HEADER); 2063 Vtf1LastStartAddress -= sizeof (EFI_FFS_FILE_HEADER); 2076 Vtf2TotalSize += sizeof (EFI_FFS_FILE_HEADER); [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/Include/Common/ |
H A D | PiFirmwareFile.h | 105 } EFI_FFS_FILE_HEADER; typedef in typeref:struct:__anon10037
|