Searched refs:FvAlignment (Results 1 - 11 of 11) sorted by relevance

/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Library/DxeCapsuleLib/
H A DDxeCapsuleLib.c65 UINT32 FvAlignment; local
95 FvAlignment = 1 << ((FvImage->Attributes & EFI_FVB2_ALIGNMENT) >> 16);
97 // FvAlignment must be more than 8 bytes required by FvHeader structure.
99 if (FvAlignment < 8) {
100 FvAlignment = 8;
105 if (((UINTN) FvImage % FvAlignment) == 0) {
111 ProcessedFvImage = (EFI_FIRMWARE_VOLUME_HEADER *) AllocateAlignedPages ((UINTN) EFI_SIZE_TO_PAGES ((UINTN) FvImage->FvLength), (UINTN) FvAlignment);
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/GenFds/
H A DFvImageSection.py77 if Fv.FvAlignment != None:
79 self.Alignment = Fv.FvAlignment
81 if GenFdsGlobalVariable.GetAlignment (Fv.FvAlignment) > GenFdsGlobalVariable.GetAlignment (self.Alignment):
82 self.Alignment = Fv.FvAlignment
H A DFv.py189 self.FvAlignment = "64K"
191 self.FvAlignment = str (FvAlignmentValue / 0x400) + "K"
194 self.FvAlignment = str (FvAlignmentValue)
272 if self.FvAlignment != None:
274 self.FvAlignment.strip() + \
H A DRegion.py97 FvAlignValue = self.GetFvAlignValue(FvObj.FvAlignment)
100 "FV (%s) is NOT %s Aligned!" % (FvObj.UiFvName, FvObj.FvAlignment))
H A DFdfParser.py2052 if not self.__IsKeyword( "FvAlignment"):
2066 Obj.FvAlignment = self.__Token
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Dxe/FwVolBlock/
H A DFwVolBlock.c438 UINT32 FvAlignment; local
441 FvAlignment = 0;
452 FvAlignment = 1 << ((FwVolHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);
454 // FvAlignment must be greater than or equal to 8 bytes of the minimum FFS alignment value.
456 if (FvAlignment < 8) {
457 FvAlignment = 8;
459 if ((UINTN)BaseAddress % FvAlignment != 0) {
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/
H A DUpdateDispatcher.c532 UINT32 FvAlignment; local
540 FvAlignment = 1 << ((FwVolHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);
542 // FvAlignment must be greater than or equal to 8 bytes of the minimum FFS alignment value.
544 if (FvAlignment < 8) {
545 FvAlignment = 8;
550 if (((UINTN) FwVolHeader % FvAlignment) == 0) {
556 ProcessedDataBuffer = AllocateAlignedPages (EFI_SIZE_TO_PAGES (BufferSize), (UINTN) FvAlignment);
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Dxe/Dispatcher/
H A DDispatcher.c987 UINT32 FvAlignment; local
994 FvAlignment = 0;
1015 FvAlignment = 1 << ((FvHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);
1017 // FvAlignment must be greater than or equal to 8 bytes of the minimum FFS alignment value.
1019 if (FvAlignment < 8) {
1020 FvAlignment = 8;
1025 AlignedBuffer = AllocateAlignedPages (EFI_SIZE_TO_PAGES (BufferSize), (UINTN) FvAlignment);
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Pei/FwVol/
H A DFwVol.c1032 UINT32 FvAlignment; local
1075 // FvAlignment must be more than 8 bytes required by FvHeader structure.
1077 FvAlignment = 1 << ((ReadUnaligned32 (&FvHeader->Attributes) & EFI_FVB2_ALIGNMENT) >> 16);
1078 if (FvAlignment < 8) {
1079 FvAlignment = 8;
1085 if ((UINTN) FvHeader % FvAlignment != 0) {
1087 NewFvBuffer = AllocateAlignedPages (EFI_SIZE_TO_PAGES ((UINT32) FvLength), FvAlignment);
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/CommonDataClass/
H A DFdfClass.py57 self.FvAlignment = None
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/
H A DFdfParserLite.py1891 if not self.__IsKeyword( "FvAlignment"):
1905 Obj.FvAlignment = self.__Token

Completed in 4164 milliseconds