Home
last modified time | relevance | path

Searched refs:HeaderSize (Results 1 – 25 of 134) 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()
275 IN UINTN HeaderSize, in SnpUndi32Transmit() argument
326 if (HeaderSize != 0) { in SnpUndi32Transmit()
327 if (HeaderSize != Snp->Mode.MediaHeaderSize || DestAddr == 0 || Protocol == 0) { in SnpUndi32Transmit()
335 HeaderSize, in SnpUndi32Transmit()
336 (UINT8 *) Buffer + HeaderSize, in SnpUndi32Transmit()
337 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/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/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/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()
172 …= (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in ProcessFmpCapsuleImage()
217 …DriverLen = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize - (UINTN)ItemOffsetList[In… in ProcessFmpCapsuleImage()
457 FvImage = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize); in ProcessCapsuleImage()
458 Length = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize; in ProcessCapsuleImage()
/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/EdkCompatibilityPkg/Foundation/Protocol/Tcp/
DTcp.h71 IN UINTN *HeaderSize, OPTIONAL
86 IN UINTN *HeaderSize, OPTIONAL
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/
DDatabase.c165 UINT32 HeaderSize; in InvokeRegisteredFunction() local
214 HeaderSize = ((HII_STRING_PACKAGE_INSTANCE *) PackageInstance)->StringPkgHdr->HdrSize; in InvokeRegisteredFunction()
220 HeaderSize in InvokeRegisteredFunction()
223 Buffer + HeaderSize, in InvokeRegisteredFunction()
225 BufferSize - HeaderSize in InvokeRegisteredFunction()
232 HeaderSize = ((HII_FONT_PACKAGE_INSTANCE *) PackageInstance)->FontPkgHdr->HdrSize; in InvokeRegisteredFunction()
238 HeaderSize in InvokeRegisteredFunction()
241 Buffer + HeaderSize, in InvokeRegisteredFunction()
243 BufferSize - HeaderSize in InvokeRegisteredFunction()
250 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/Nt32Pkg/SnpNt32Dxe/
DSnpNt32.c340 IN UINTN HeaderSize,
382 OUT UINTN *HeaderSize,
910 IN UINTN HeaderSize, in SnpNt32Transmit() argument
926 if ((HeaderSize != 0) && (SrcAddr == NULL)) { in SnpNt32Transmit()
936 (UINT32)HeaderSize, in SnpNt32Transmit()
987 OUT UINTN *HeaderSize, in SnpNt32Receive() argument
1030 if (HeaderSize != NULL) { in SnpNt32Receive()
1031 *HeaderSize = 14; in SnpNt32Receive()
/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/VolInfo/
DVolInfo.c977 UINT32 HeaderSize; in PrintFileInfo() local
984 HeaderSize = FvBufGetFfsHeaderSize(FileHeader); in PrintFileInfo()
986 memset (&BlankHeader, -1, HeaderSize); in PrintFileInfo()
988 memset (&BlankHeader, 0, HeaderSize); in PrintFileInfo()
991 if (memcmp (&BlankHeader, FileHeader, HeaderSize) == 0) { in PrintFileInfo()
1032 Checksum = CalculateSum8 ((UINT8 *) FileHeader, HeaderSize); in PrintFileInfo()
1054 Checksum = CalculateSum8 ((UINT8 *) FileHeader, HeaderSize); in PrintFileInfo()
1068 Checksum = CalculateSum8 ((UINT8 *)FileHeader + HeaderSize, FileLength - HeaderSize); in PrintFileInfo()
1181 (UINT8 *) ((UINTN) FileHeader + HeaderSize), in PrintFileInfo()
1182 FvBufGetFfsFileSize (FileHeader) - HeaderSize in PrintFileInfo()
/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/NetworkPkg/UefiPxeBcDxe/
DPxeBcImpl.c1053 IN UINTN *HeaderSize OPTIONAL, in EfiPxeBcUdpWrite()
1086 if (HeaderSize != NULL && (*HeaderSize == 0 || HeaderPtr == NULL)) { in EfiPxeBcUdpWrite()
1162 HeaderSize, in EfiPxeBcUdpWrite()
1188 HeaderSize, in EfiPxeBcUdpWrite()
1257 IN UINTN *HeaderSize OPTIONAL, in EfiPxeBcUdpRead()
1297 if ((HeaderSize != NULL && *HeaderSize == 0) || (HeaderSize != NULL && HeaderPtr == NULL)) { in EfiPxeBcUdpRead()
1398 if (HeaderSize != NULL) { in EfiPxeBcUdpRead()
1399 HeaderLen = MIN (*HeaderSize, Udp6Rx->DataLength); in EfiPxeBcUdpRead()
1405 if (HeaderSize != NULL) { in EfiPxeBcUdpRead()
1406 *HeaderSize = HeaderLen; in EfiPxeBcUdpRead()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Guid/DataHubRecords/
DDataHubSubClass.h36 UINT32 HeaderSize; member
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/
DCapsule.c164 CapsuleSize = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize; in LibUpdateCapsule()
169 gBS->CopyMem (BufferPtr, (UINT8*)CapsuleHeader+ CapsuleHeader->HeaderSize, CapsuleSize); in LibUpdateCapsule()

123456