Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/EmulatorPkg/Library/SecPeiServicesLib/
DFwVol.c133 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()
183FfsFileHeader = (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/
DFwVol.c137 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()
179FfsFileHeader = (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 …]
DSecMain.h356 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/
DDebugAgentSymbolsBaseLib.c112 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/
DFwVol.c172 EFI_FFS_FILE_HEADER *FfsFileHeader; in FindFileEx() local
197 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)FwVolHeader + FwVolHeader->HeaderLength); in FindFileEx()
200FfsFileHeader = (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/
DFwVolRead.c121 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/
DFwVol.c269 EFI_FFS_FILE_HEADER *FfsFileHeader; in FindFileEx() local
305FfsFileHeader = (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()
344FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) FfsFileHeader + sizeof (EFI_FFS_FILE_HEADER2)); in FindFileEx()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/
DFwVolRead.c120 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/
DGenFfs.c486 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/
DSecurity.h38 IN EFI_FFS_FILE_HEADER * FfsFileHeader,
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Include/Ppi/
DSecurity.h55 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib/
DPeiServicesLib.c287 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/
DPeiCis.h122 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/
DPeiLib.c451 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/
DEdkIIGluePeiServicesLib.h233 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DHost.h198 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/Include/
DPeiLib.h250 IN EFI_FFS_FILE_HEADER *FfsFileHeader,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Include/
DPeiApi.h203 IN EFI_FFS_FILE_HEADER * FfsFileHeader,