Home
last modified time | relevance | path

Searched refs:PadFile (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFvImage/
DGenFvImageLib.c1258 EFI_FFS_FILE_HEADER *PadFile; in AddPadFile() local
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()
1295 memcpy (&PadFile->Name, &PadFileGuid, sizeof (EFI_GUID)); in AddPadFile()
1296 PadFile->Type = EFI_FV_FILETYPE_FFS_PAD; in AddPadFile()
1297 PadFile->Attributes = 0; in AddPadFile()
1327 PadFile->Size[0] = (UINT8) (PadFileSize & 0xFF); in AddPadFile()
1328 PadFile->Size[1] = (UINT8) ((PadFileSize >> 8) & 0xFF); in AddPadFile()
1329 PadFile->Size[2] = (UINT8) ((PadFileSize >> 16) & 0xFF); in AddPadFile()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFv/
DGenFvInternalLib.c559 EFI_FFS_FILE_HEADER *PadFile; in AddPadFile() local
623 PadFile = (EFI_FFS_FILE_HEADER *) FvImage->CurrentFilePointer; in AddPadFile()
628 PadFile->Type = EFI_FV_FILETYPE_FFS_PAD; in AddPadFile()
629 PadFile->Attributes = 0; in AddPadFile()
635 memset(PadFile->Size, 0, sizeof(UINT8) * 3); in AddPadFile()
636 ((EFI_FFS_FILE_HEADER2 *)PadFile)->ExtendedSize = PadFileSize; in AddPadFile()
637 PadFile->Attributes |= FFS_ATTRIB_LARGE_FILE; in AddPadFile()
639 PadFile->Size[0] = (UINT8) (PadFileSize & 0xFF); in AddPadFile()
640 PadFile->Size[1] = (UINT8) ((PadFileSize >> 8) & 0xFF); in AddPadFile()
641 PadFile->Size[2] = (UINT8) ((PadFileSize >> 16) & 0xFF); in AddPadFile()
[all …]