Home
last modified time | relevance | path

Searched refs:HeaderSize (Results 1 – 25 of 143) sorted by relevance

123456

/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/
DFwVolWrite.c379 UINTN HeaderSize; in FvLocatePadFile() local
396 HeaderSize = sizeof (EFI_FFS_FILE_HEADER2); in FvLocatePadFile()
397 PadAreaLength = FFS_FILE2_SIZE (FileHeader) - HeaderSize; in FvLocatePadFile()
399 HeaderSize = sizeof (EFI_FFS_FILE_HEADER); in FvLocatePadFile()
400 PadAreaLength = FFS_FILE_SIZE (FileHeader) - HeaderSize; in FvLocatePadFile()
405 (EFI_PHYSICAL_ADDRESS) (UINTN) FileHeader + HeaderSize, in FvLocatePadFile()
454 UINTN HeaderSize; in FvSearchSuitablePadFile() local
471 HeaderSize = sizeof (EFI_FFS_FILE_HEADER2); in FvSearchSuitablePadFile()
472 PadAreaLength = FFS_FILE2_SIZE (FileHeader) - HeaderSize; in FvSearchSuitablePadFile()
474 HeaderSize = sizeof (EFI_FFS_FILE_HEADER); in FvSearchSuitablePadFile()
[all …]
DFwPadFile.c84 UINTN HeaderSize; in FvCreatePadFileInFreeSpace() local
87 HeaderSize = sizeof (EFI_FFS_FILE_HEADER); in FvCreatePadFileInFreeSpace()
88 FileSize = Size + HeaderSize; in FvCreatePadFileInFreeSpace()
90 HeaderSize = sizeof (EFI_FFS_FILE_HEADER2); in FvCreatePadFileInFreeSpace()
91 FileSize = Size + HeaderSize; in FvCreatePadFileInFreeSpace()
139 FreeSpaceEntry->Length -= HeaderSize; in FvCreatePadFileInFreeSpace()
140 FreeSpaceEntry->StartingAddress += HeaderSize; in FvCreatePadFileInFreeSpace()
166 NumBytesWritten = HeaderSize; in FvCreatePadFileInFreeSpace()
1034 UINTN HeaderSize; in FvCreateMultipleFiles() local
1060 HeaderSize = sizeof (EFI_FFS_FILE_HEADER); in FvCreateMultipleFiles()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/SnpDxe/
DTransmit.c38 UINTN HeaderSize, in PxeFillHeader() argument
75 Cpb->MediaHeaderLen = (UINT16) HeaderSize; in PxeFillHeader()
81 Cpb->FragDesc[0].FragLen = (UINT32) HeaderSize; in PxeFillHeader()
276 IN UINTN HeaderSize, in SnpUndi32Transmit() argument
327 if (HeaderSize != 0) { in SnpUndi32Transmit()
328 if (HeaderSize != Snp->Mode.MediaHeaderSize || DestAddr == 0 || Protocol == 0) { in SnpUndi32Transmit()
336 HeaderSize, in SnpUndi32Transmit()
337 (UINT8 *) Buffer + HeaderSize, in SnpUndi32Transmit()
338 BufferSize - HeaderSize, in SnpUndi32Transmit()
DReceive.c49 UINTN *HeaderSize, in PxeReceive() argument
116 if (HeaderSize != NULL) { in PxeReceive()
117 *HeaderSize = Db->MediaHeaderLen; in PxeReceive()
200 OUT UINTN *HeaderSize OPTIONAL, in SnpUndi32Receive()
247 HeaderSize, in SnpUndi32Receive()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/
DDebugLib.c261 UINTN HeaderSize; in DebugAssert() local
271 HeaderSize = sizeof (EFI_DEBUG_ASSERT_DATA); in DebugAssert()
282 if (HeaderSize + ModuleNameSize + FileNameSize + DescriptionSize > sizeof (Buffer)) { in DebugAssert()
287 if (HeaderSize + FileNameSize + DescriptionSize > sizeof (Buffer)) { in DebugAssert()
291 if (HeaderSize + FileNameSize < sizeof (Buffer)) { in DebugAssert()
295 DescriptionSize = sizeof (Buffer) - HeaderSize - FileNameSize; in DebugAssert()
302 FileNameSize = sizeof (Buffer) - HeaderSize - DescriptionSize; in DebugAssert()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/
DDebugLib.c268 UINTN HeaderSize; in DebugAssert() local
278 HeaderSize = sizeof (EFI_DEBUG_ASSERT_DATA); in DebugAssert()
289 if (HeaderSize + ModuleNameSize + FileNameSize + DescriptionSize > sizeof (Buffer)) { in DebugAssert()
294 if (HeaderSize + FileNameSize + DescriptionSize > sizeof (Buffer)) { in DebugAssert()
298 if (HeaderSize + FileNameSize < sizeof (Buffer)) { in DebugAssert()
302 DescriptionSize = sizeof (Buffer) - HeaderSize - FileNameSize; in DebugAssert()
309 FileNameSize = sizeof (Buffer) - HeaderSize - DescriptionSize; in DebugAssert()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFfs/
DGenFfs.c288 UINT32 HeaderSize; in GetSectionContents() local
328 HeaderSize = sizeof (EFI_COMMON_SECTION_HEADER2); in GetSectionContents()
330 HeaderSize = sizeof (EFI_COMMON_SECTION_HEADER); in GetSectionContents()
332 fread (&TempSectHeader, 1, HeaderSize, InFile); in GetSectionContents()
346 HeaderSize = GuidSectHeader2.DataOffset; in GetSectionContents()
351 HeaderSize = GuidSectHeader.DataOffset; in GetSectionContents()
379 …if ((InputFileAlign [Index] != 0) && (((Size + HeaderSize + TeOffset) % InputFileAlign [Index]) !=… in GetSectionContents()
380 …Offset = (Size + sizeof (EFI_COMMON_SECTION_HEADER) + HeaderSize + TeOffset + InputFileAlign [Inde… in GetSectionContents()
381 Offset = Offset - Size - HeaderSize - TeOffset; in GetSectionContents()
491 UINT32 HeaderSize; in main() local
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Include/
DEfiCapsule.h30 UINT32 HeaderSize; member
52 UINT32 HeaderSize; member
85 UINT32 HeaderSize; member
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/
DFwVol.c333 UINTN HeaderSize; in FvCheck() local
396 HeaderSize = FwVolHeader->HeaderLength; in FvCheck()
400 if (HeaderSize > 0) { in FvCheck()
404 for (; Index < BlockMap->NumBlocks && HeaderSize >= BlockMap->Length; Index ++) { in FvCheck()
405 HeaderSize -= BlockMap->Length; in FvCheck()
415 } else if (HeaderSize > 0) { in FvCheck()
416 LbaOffset = HeaderSize; in FvCheck()
417 Size = BlockMap->Length - HeaderSize; in FvCheck()
418 HeaderSize = 0; in FvCheck()
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Include/Guid/
DCapsule.h58 UINT32 HeaderSize; member
72 UINT32 HeaderSize; member
/device/linaro/bootloader/edk2/OvmfPkg/VirtioNetDxe/
DSnpTransmit.c68 IN UINTN HeaderSize, in VirtioNetTransmit() argument
121 if (HeaderSize != 0) { in VirtioNetTransmit()
124 if (HeaderSize != Dev->Snm.MediaHeaderSize || in VirtioNetTransmit()
DSnpReceive.c66 OUT UINTN *HeaderSize OPTIONAL, in VirtioNetReceive()
142 if (HeaderSize != NULL) { in VirtioNetReceive()
143 *HeaderSize = Dev->Snm.MediaHeaderSize; in VirtioNetReceive()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/DxeCapsuleLib/
DDxeCapsuleLib.c73 …= (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in ValidateFmpCapsule()
171 …= (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in ProcessFmpCapsuleImage()
215 …DriverLen = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize - (UINTN)ItemOffsetList[In… in ProcessFmpCapsuleImage()
455 FvImage = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in ProcessCapsuleImage()
456 Length = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize; in ProcessCapsuleImage()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Protocol/Tcp/
DTcp.h71 IN UINTN *HeaderSize, OPTIONAL
86 IN UINTN *HeaderSize, OPTIONAL
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/
DDataHubStdErr.c78 DataRecord = (DATA_HUB_STATUS_CODE_DATA_RECORD *) (((CHAR8 *) Record) + Record->HeaderSize); in DataHubStdErrEventHandler()
80 if (DataRecord->Data.HeaderSize > 0) { in DataHubStdErrEventHandler()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/
DDatabase.c171 UINT32 HeaderSize; in InvokeRegisteredFunction() local
220 HeaderSize = ((HII_STRING_PACKAGE_INSTANCE *) PackageInstance)->StringPkgHdr->HdrSize; in InvokeRegisteredFunction()
226 HeaderSize in InvokeRegisteredFunction()
229 Buffer + HeaderSize, in InvokeRegisteredFunction()
231 BufferSize - HeaderSize in InvokeRegisteredFunction()
238 HeaderSize = ((HII_FONT_PACKAGE_INSTANCE *) PackageInstance)->FontPkgHdr->HdrSize; in InvokeRegisteredFunction()
244 HeaderSize in InvokeRegisteredFunction()
247 Buffer + HeaderSize, in InvokeRegisteredFunction()
249 BufferSize - HeaderSize in InvokeRegisteredFunction()
256 HeaderSize = sizeof (EFI_HII_IMAGE_PACKAGE_HDR); in InvokeRegisteredFunction()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/MnpDxe/
DMnpIo.c225 UINT32 HeaderSize; in MnpSyncSendPacket() local
233 HeaderSize = Snp->Mode->MediaHeaderSize - TxData->HeaderLength; in MnpSyncSendPacket()
263 HeaderSize, in MnpSyncSendPacket()
279 HeaderSize, in MnpSyncSendPacket()
862 UINTN HeaderSize; in MnpReceivePacket() local
906 Status = Snp->Receive (Snp, &HeaderSize, &BufLen, BufPtr, NULL, NULL, NULL); in MnpReceivePacket()
920 if ((HeaderSize != Snp->Mode->MediaHeaderSize) || (BufLen < HeaderSize)) { in MnpReceivePacket()
924 HeaderSize, in MnpReceivePacket()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/LegacyBootManagerLib/
DLegacyBm.c644 UINTN HeaderSize; in LegacyBmCreateDevOrder() local
655 HeaderSize = sizeof (BBS_TYPE) + sizeof (UINT16); in LegacyBmCreateDevOrder()
693 TotalSize += (HeaderSize + sizeof (UINT16) * FDCount); in LegacyBmCreateDevOrder()
694 TotalSize += (HeaderSize + sizeof (UINT16) * HDCount); in LegacyBmCreateDevOrder()
695 TotalSize += (HeaderSize + sizeof (UINT16) * CDCount); in LegacyBmCreateDevOrder()
696 TotalSize += (HeaderSize + sizeof (UINT16) * NETCount); in LegacyBmCreateDevOrder()
697 TotalSize += (HeaderSize + sizeof (UINT16) * BEVCount); in LegacyBmCreateDevOrder()
779 UINTN HeaderSize; in LegacyBmUpdateDevOrder() local
799 HeaderSize = sizeof (BBS_TYPE) + sizeof (UINT16); in LegacyBmUpdateDevOrder()
861 TotalSize += (HeaderSize + FDCount * sizeof (UINT16)); in LegacyBmUpdateDevOrder()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/Common/
DUefiCapsule.h23 UINT32 HeaderSize; member
/device/linaro/bootloader/edk2/EmbeddedPkg/Include/Protocol/
DEmbeddedDevice.h50 UINT8 HeaderSize; member
/device/linaro/bootloader/edk2/Nt32Pkg/SnpNt32Dxe/
DSnpNt32.c343 IN UINTN HeaderSize,
385 OUT UINTN *HeaderSize,
924 IN UINTN HeaderSize, in SnpNt32Transmit() argument
941 if ((HeaderSize != 0) && (SrcAddr == NULL)) { in SnpNt32Transmit()
951 (UINT32)HeaderSize, in SnpNt32Transmit()
1020 OUT UINTN *HeaderSize, in SnpNt32Receive() argument
1063 if (HeaderSize != NULL) { in SnpNt32Receive()
1064 *HeaderSize = 14; in SnpNt32Receive()
/device/linaro/bootloader/edk2/SignedCapsulePkg/Universal/RecoveryModuleLoadPei/
DRecoveryModuleLoadPei.c177 …= (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in IsSystemFmpCapsuleImage()
222 if (CapsuleHeader->HeaderSize >= CapsuleHeader->CapsuleImageSize) { in IsValidCapsuleHeader()
266 if (CapsuleHeader->HeaderSize >= CapsuleHeader->CapsuleImageSize) { in ValidateFmpCapsule()
267 …DEBUG((DEBUG_ERROR, "HeaderSize(0x%x) >= CapsuleImageSize(0x%x)\n", CapsuleHeader->HeaderSize, Cap… in ValidateFmpCapsule()
271 …= (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in ValidateFmpCapsule()
638 …r = (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *)((UINT8 *)CapsuleHeader + CapsuleHeader->HeaderSize); in ProcessFmpCapsuleImage()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCapsuleLibFmp/
DDxeCapsuleLib.c158 if (CapsuleHeader->HeaderSize >= CapsuleHeader->CapsuleImageSize) { in IsValidCapsuleHeader()
203 …pCapsule ((EFI_CAPSULE_HEADER *)((UINTN)CapsuleHeader + CapsuleHeader->HeaderSize), EmbeddedDriver… in ValidateFmpCapsule()
206 if (CapsuleHeader->HeaderSize >= CapsuleHeader->CapsuleImageSize) { in ValidateFmpCapsule()
207 …DEBUG((DEBUG_ERROR, "HeaderSize(0x%x) >= CapsuleImageSize(0x%x)\n", CapsuleHeader->HeaderSize, Cap… in ValidateFmpCapsule()
211 …= (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in ValidateFmpCapsule()
375 …if (BmpHeader->HeaderSize != sizeof (BMP_IMAGE_HEADER) - OFFSET_OF(BMP_IMAGE_HEADER, HeaderSize)) { in ConvertBmpToGopBlt()
725 …r = (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *)((UINT8 *)CapsuleHeader + CapsuleHeader->HeaderSize); in DumpFmpCapsule()
1304 … ProcessFmpCapsuleImage ((EFI_CAPSULE_HEADER *)((UINTN)CapsuleHeader + CapsuleHeader->HeaderSize)); in ProcessFmpCapsuleImage()
1312 …= (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in ProcessFmpCapsuleImage()
1337 …DriverLen = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize - (UINTN)ItemOffsetList[In… in ProcessFmpCapsuleImage()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Guid/DataHubRecords/
DDataHubSubClass.h36 UINT32 HeaderSize; member
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcImpl.c1062 IN UINTN *HeaderSize OPTIONAL, in EfiPxeBcUdpWrite()
1095 if (HeaderSize != NULL && (*HeaderSize == 0 || HeaderPtr == NULL)) { in EfiPxeBcUdpWrite()
1173 HeaderSize, in EfiPxeBcUdpWrite()
1199 HeaderSize, in EfiPxeBcUdpWrite()
1268 IN UINTN *HeaderSize OPTIONAL, in EfiPxeBcUdpRead()
1308 if ((HeaderSize != NULL && *HeaderSize == 0) || (HeaderSize != NULL && HeaderPtr == NULL)) { in EfiPxeBcUdpRead()
1409 if (HeaderSize != NULL) { in EfiPxeBcUdpRead()
1410 HeaderLen = MIN (*HeaderSize, Udp6Rx->DataLength); in EfiPxeBcUdpRead()
1416 if (HeaderSize != NULL) { in EfiPxeBcUdpRead()
1417 *HeaderSize = HeaderLen; in EfiPxeBcUdpRead()
[all …]

123456