Home
last modified time | relevance | path

Searched refs:PadFileSize (Results 1 – 3 of 3) sorted by relevance

/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/
DFwVolWrite.c323 UINTN PadFileSize; in FvLocateFreeSpaceEntry() local
333 PadFileSize = CalculatePadFileSize ( in FvLocateFreeSpaceEntry()
339 if (FreeSpaceListEntry->Length >= Size + PadFileSize) { in FvLocateFreeSpaceEntry()
341 *PadSize = PadFileSize; in FvLocateFreeSpaceEntry()
378 UINTN PadFileSize; in FvLocatePadFile() local
403 PadFileSize = CalculatePadFileSize ( in FvLocatePadFile()
409 if (PadAreaLength >= (Size + PadFileSize)) { in FvLocatePadFile()
410 *PadSize = PadFileSize; in FvLocatePadFile()
770 UINTN PadFileSize; in FvCreateNewFile() local
793 &PadFileSize, in FvCreateNewFile()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFv/
DGenFvInternalLib.c560 UINTN PadFileSize; in AddPadFile() local
580 PadFileSize = ExtHeader->ExtHeaderSize; in AddPadFile()
581 if (PadFileSize + sizeof (EFI_FFS_FILE_HEADER) >= MAX_FFS_SIZE) { in AddPadFile()
584 PadFileSize += CurFfsHeaderSize; in AddPadFile()
596PadFileSize = (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage + sizeof (EFI_FFS_F… in AddPadFile()
600 while ((PadFileSize % DataAlignment) != 0) { in AddPadFile()
601 PadFileSize++; in AddPadFile()
606 PadFileSize -= NextFfsHeaderSize; in AddPadFile()
610 PadFileSize -= (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage; in AddPadFile()
616 if (((UINTN) FvImage->CurrentFilePointer + PadFileSize) > (UINTN) FvEnd) { in AddPadFile()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFvImage/
DGenFvImageLib.c1260 UINTN PadFileSize; in AddPadFile() local
1306PadFileSize = (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage + (sizeof (EFI_FFS_… in AddPadFile()
1311 while ((PadFileSize % DataAlignment) != 0) { in AddPadFile()
1312 PadFileSize++; in AddPadFile()
1317 PadFileSize -= sizeof (EFI_FFS_FILE_HEADER); in AddPadFile()
1322 PadFileSize -= (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage; 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()
1340 PadFile->IntegrityCheck.Checksum.File = CalculateChecksum8 ((UINT8 *) PadFile, PadFileSize); in AddPadFile()
[all …]