/device/linaro/bootloader/edk2/EmulatorPkg/Library/SecPeiServicesLib/ |
D | FwVol.c | 133 EFI_FFS_FILE_HEADER *FfsFileHeader; in SecFfsFindNextFile() local 160 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolHeader + FwVolHeader->HeaderLength); in SecFfsFindNextFile() 168 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) *FileHeader + FileOccupiedSize); in SecFfsFindNextFile() 171 FileOffset = (UINT32) ((UINT8 *) FfsFileHeader - (UINT8 *) FwVolHeader); in SecFfsFindNextFile() 177 FileState = GetFileState (ErasePolarity, FfsFileHeader); in SecFfsFindNextFile() 183 … FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FfsFileHeader + sizeof (EFI_FFS_FILE_HEADER)); in SecFfsFindNextFile() 188 if (CalculateHeaderChecksum (FfsFileHeader) == 0) { in SecFfsFindNextFile() 189 FileLength = *(UINT32 *) (FfsFileHeader->Size) & 0x00FFFFFF; in SecFfsFindNextFile() 192 if ((SearchType == FfsFileHeader->Type) || (SearchType == EFI_FV_FILETYPE_ALL)) { in SecFfsFindNextFile() 194 *FileHeader = FfsFileHeader; in SecFfsFindNextFile() [all …]
|
/device/linaro/bootloader/edk2/Nt32Pkg/Sec/ |
D | FwVol.c | 137 EFI_FFS_FILE_HEADER *FfsFileHeader; in SecFfsFindNextFile() local 156 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolHeader + FwVolHeader->HeaderLength); in SecFfsFindNextFile() 164 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) *FileHeader + FileOccupiedSize); in SecFfsFindNextFile() 167 FileOffset = (UINT32) ((UINT8 *) FfsFileHeader - (UINT8 *) FwVolHeader); in SecFfsFindNextFile() 173 FileState = GetFileState (ErasePolarity, FfsFileHeader); in SecFfsFindNextFile() 179 … FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FfsFileHeader + sizeof (EFI_FFS_FILE_HEADER)); in SecFfsFindNextFile() 184 if (CalculateHeaderChecksum (FfsFileHeader) == 0) { in SecFfsFindNextFile() 185 FileLength = *(UINT32 *) (FfsFileHeader->Size) & 0x00FFFFFF; in SecFfsFindNextFile() 188 if ((SearchType == FfsFileHeader->Type) || (SearchType == EFI_FV_FILETYPE_ALL)) { in SecFfsFindNextFile() 190 *FileHeader = FfsFileHeader; in SecFfsFindNextFile() [all …]
|
D | SecMain.h | 356 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/ |
D | DebugAgentSymbolsBaseLib.c | 112 EFI_FFS_FILE_HEADER *FfsFileHeader; in GetFfsFile() local 121 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FwVolHeader + FwVolHeader->HeaderLength); in GetFfsFile() 132 FileState = GetFileState (ErasePolarity, FfsFileHeader); in GetFfsFile() 138 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FfsFileHeader + sizeof(EFI_FFS_FILE_HEADER)); in GetFfsFile() 143 if (CalculateHeaderChecksum (FfsFileHeader) != 0) { in GetFfsFile() 148 if (FfsFileHeader->Type == FileType) { in GetFfsFile() 149 *FileHeader = FfsFileHeader; in GetFfsFile() 153 FileLength = *(UINT32 *)(FfsFileHeader->Size) & 0x00FFFFFF; in GetFfsFile() 157 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FfsFileHeader + FileOccupiedSize); in GetFfsFile() 161 FileLength = *(UINT32 *)(FfsFileHeader->Size) & 0x00FFFFFF; in GetFfsFile() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/ |
D | FwVol.c | 172 EFI_FFS_FILE_HEADER *FfsFileHeader; in FindFileEx() local 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() 213 FfsFileHeader = ALIGN_POINTER (FfsFileHeader, 8); in FindFileEx() 215 FileOffset = (UINT32) ((UINT8 *)FfsFileHeader - (UINT8 *)FwVolHeader); in FindFileEx() 222 FileState = GetFileState (ErasePolarity, FfsFileHeader); in FindFileEx() 228 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FfsFileHeader + sizeof(EFI_FFS_FILE_HEADER)); in FindFileEx() 233 if (CalculateHeaderChecksum (FfsFileHeader) != 0) { in FindFileEx() 239 FileLength = *(UINT32 *)(FfsFileHeader->Size) & 0x00FFFFFF; in FindFileEx() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/ |
D | FwVolRead.c | 121 EFI_FFS_FILE_HEADER *FfsFileHeader; in FvGetNextFile() local 134 FfsFileHeader = NULL; in FvGetNextFile() 161 FfsFileHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; in FvGetNextFile() 171 if (FfsFileHeader->Type == EFI_FV_FILETYPE_FFS_PAD) { in FvGetNextFile() 179 if (*FileType == FfsFileHeader->Type) { in FvGetNextFile() 193 FfsFileHeader = (EFI_FFS_FILE_HEADER *) FfsFileEntry->FfsHeader; in FvGetNextFile() 203 if (FfsFileHeader->Type == EFI_FV_FILETYPE_FFS_PAD) { in FvGetNextFile() 211 if (*FileType == FfsFileHeader->Type) { in FvGetNextFile() 222 *FileType = FfsFileHeader->Type; in FvGetNextFile() 223 CopyGuid (NameGuid, &FfsFileHeader->Name); in FvGetNextFile() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/FwVol/ |
D | FwVol.c | 269 EFI_FFS_FILE_HEADER *FfsFileHeader; in FindFileEx() local 305 …FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FwVolExtHeader + FwVolExtHeader->ExtHeaderSize); in FindFileEx() 306 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ALIGN_POINTER (FfsFileHeader, 8); in FindFileEx() 308 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *) FwVolHeader + FwVolHeader->HeaderLength); in FindFileEx() 324 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)*FileHeader + FileOccupiedSize); in FindFileEx() 327 FileOffset = (UINT32) ((UINT8 *)FfsFileHeader - (UINT8 *)FwVolHeader); in FindFileEx() 334 FileState = GetFileState (ErasePolarity, FfsFileHeader); in FindFileEx() 339 if (IS_FFS_FILE2 (FfsFileHeader)) { in FindFileEx() 341 …I_D_ERROR, "Found a FFS3 formatted file: %g in a non-FFS3 formatted FV.\n", &FfsFileHeader->Name)); in FindFileEx() 344 …FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FfsFileHeader + sizeof (EFI_FFS_FILE_HEADER2)); in FindFileEx() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/ |
D | FwVolRead.c | 120 EFI_FFS_FILE_HEADER *FfsFileHeader; in FvGetNextFile() local 168 FfsFileHeader = (EFI_FFS_FILE_HEADER *)FfsFileEntry->FfsHeader; in FvGetNextFile() 175 if (FfsFileHeader->Type == EFI_FV_FILETYPE_FFS_PAD) { in FvGetNextFile() 189 if (*FileType == FfsFileHeader->Type) { in FvGetNextFile() 201 *FileType = FfsFileHeader->Type; in FvGetNextFile() 202 CopyGuid (NameGuid, &FfsFileHeader->Name); in FvGetNextFile() 203 *Attributes = FfsAttributes2FvFileAttributes (FfsFileHeader->Attributes); in FvGetNextFile() 211 if (IS_FFS_FILE2 (FfsFileHeader)) { in FvGetNextFile() 212 *Size = FFS_FILE2_SIZE (FfsFileHeader) - sizeof (EFI_FFS_FILE_HEADER2); in FvGetNextFile() 214 *Size = FFS_FILE_SIZE (FfsFileHeader) - sizeof (EFI_FFS_FILE_HEADER); in FvGetNextFile()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFfs/ |
D | GenFfs.c | 486 EFI_FFS_FILE_HEADER2 FfsFileHeader; in main() local 857 memset (&FfsFileHeader, 0, sizeof (EFI_FFS_FILE_HEADER2)); in main() 858 memcpy (&FfsFileHeader.Name, &FileGuid, sizeof (EFI_GUID)); in main() 859 FfsFileHeader.Type = FfsFiletype; in main() 880 FfsFileHeader.ExtendedSize = FileSize; in main() 881 memset(FfsFileHeader.Size, 0, sizeof (UINT8) * 3); in main() 886 FfsFileHeader.Size[0] = (UINT8) (FileSize & 0xFF); in main() 887 FfsFileHeader.Size[1] = (UINT8) ((FileSize & 0xFF00) >> 8); in main() 888 FfsFileHeader.Size[2] = (UINT8) ((FileSize & 0xFF0000) >> 16); in main() 892 FfsFileHeader.Attributes = (EFI_FFS_FILE_ATTRIBUTES) (FfsAttrib | (FfsAlign << 3)); in main() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Ppi/Security/ |
D | Security.h | 38 IN EFI_FFS_FILE_HEADER * FfsFileHeader,
|
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Include/Ppi/ |
D | Security.h | 55 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib/ |
D | PeiServicesLib.c | 287 IN EFI_FFS_FILE_HEADER *FfsFileHeader, in PeiServicesFfsFindSectionData() argument 294 return (*PeiServices)->FfsFindSectionData (PeiServices, SectionType, FfsFileHeader, SectionData); in PeiServicesFfsFindSectionData()
|
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Include/Framework/ |
D | PeiCis.h | 122 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/ |
D | PeiLib.c | 451 IN EFI_FFS_FILE_HEADER *FfsFileHeader, in PeiLibFfsFindSectionData() argument 474 …s)->FfsFindSectionData (PeiServices, SectionType, (EFI_PEI_FILE_HANDLE)FfsFileHeader, SectionData); in PeiLibFfsFindSectionData()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/ |
D | EdkIIGluePeiServicesLib.h | 233 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | Host.h | 198 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/Include/ |
D | PeiLib.h | 250 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Include/ |
D | PeiApi.h | 203 IN EFI_FFS_FILE_HEADER * FfsFileHeader,
|