/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/ |
D | Cd.c | 41 UINTN TotalSize; in ReplaceDriveWithCwd() local 45 TotalSize = 0; in ReplaceDriveWithCwd() 55 TotalSize = StrSize (Cwd) + StrSize (Splitter + 1); in ReplaceDriveWithCwd() 56 TempBuffer = AllocateZeroPool (TotalSize); in ReplaceDriveWithCwd() 61 StrCpyS (TempBuffer, TotalSize / sizeof(CHAR16), Cwd); in ReplaceDriveWithCwd() 62 StrCatS (TempBuffer, TotalSize / sizeof(CHAR16), L"\\"); in ReplaceDriveWithCwd() 63 StrCatS (TempBuffer, TotalSize / sizeof(CHAR16), Splitter + 1); in ReplaceDriveWithCwd() 194 UINTN TotalSize; in ShellCommandRunCd() local 203 TotalSize = 0; in ShellCommandRunCd() 281 TotalSize = ((Splitter - Cwd + 1) * sizeof(CHAR16)) + StrSize(Param1Copy); in ShellCommandRunCd() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiDxeDebugLibReportStatusCode/ |
D | DebugLib.c | 49 UINTN TotalSize; in DebugPrint() local 66 TotalSize = sizeof (EFI_DEBUG_INFO) + 12 * sizeof (UINT64) + AsciiStrLen (Format) + 1; in DebugPrint() 67 if (TotalSize > EFI_STATUS_CODE_DATA_MAX_SIZE) { in DebugPrint() 94 TotalSize in DebugPrint() 132 UINTN TotalSize; in DebugAssert() local 142 TotalSize = sizeof (EFI_DEBUG_ASSERT_DATA) + FileNameLength + 1 + DescriptionLength + 1; in DebugAssert() 143 if (TotalSize <= EFI_STATUS_CODE_DATA_MAX_SIZE) { in DebugAssert() 164 TotalSize in DebugAssert()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/ |
D | DebugLib.c | 58 UINTN TotalSize; in DebugPrint() local 93 TotalSize = 4 + sizeof (EFI_DEBUG_INFO) + 12 * sizeof (UINT64) + AsciiStrSize (Format); in DebugPrint() 98 if (TotalSize > sizeof (Buffer)) { in DebugPrint() 226 TotalSize in DebugPrint() 262 UINTN TotalSize; in DebugAssert() local 311 TotalSize = sizeof (EFI_DEBUG_ASSERT_DATA); in DebugAssert() 329 TotalSize += (ModuleNameSize + FileNameSize); in DebugAssert() 336 TotalSize += DescriptionSize; in DebugAssert() 345 TotalSize in DebugAssert()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/ |
D | DebugLib.c | 58 UINTN TotalSize; in DebugPrint() local 94 TotalSize = 4 + sizeof (EFI_DEBUG_INFO) + 12 * sizeof (UINT64) + AsciiStrSize (Format); in DebugPrint() 99 if (TotalSize > sizeof (Buffer)) { in DebugPrint() 233 TotalSize in DebugPrint() 269 UINTN TotalSize; in DebugAssert() local 318 TotalSize = sizeof (EFI_DEBUG_ASSERT_DATA); in DebugAssert() 336 TotalSize += (ModuleNameSize + FileNameSize); in DebugAssert() 343 TotalSize += DescriptionSize; in DebugAssert() 352 TotalSize in DebugAssert()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenCRC32Section/ |
D | GenCRC32Section.c | 78 UINT32 TotalSize; in SignSectionWithCrc32() local 96 TotalSize = DataSize + CRC32_SECTION_HEADER_SIZE; in SignSectionWithCrc32() 98 Crc32Header.GuidSectionHeader.CommonHeader.Size[0] = (UINT8) (TotalSize & 0xff); in SignSectionWithCrc32() 99 Crc32Header.GuidSectionHeader.CommonHeader.Size[1] = (UINT8) ((TotalSize & 0xff00) >> 8); in SignSectionWithCrc32() 100 Crc32Header.GuidSectionHeader.CommonHeader.Size[2] = (UINT8) ((TotalSize & 0xff0000) >> 16); in SignSectionWithCrc32() 118 while ((TotalSize & 0x03) != 0) { in SignSectionWithCrc32() 119 FileBuffer[TotalSize] = 0; in SignSectionWithCrc32() 120 TotalSize++; in SignSectionWithCrc32() 123 *BufferSize = TotalSize; in SignSectionWithCrc32()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ |
D | FlashUpdate.c | 822 UINTN TotalSize; in FaultTolerantUpdateOnPartFv() local 869 TotalSize = SizeLeft; in FaultTolerantUpdateOnPartFv() 875 while (TotalSize > 0) { in FaultTolerantUpdateOnPartFv() 899 Length = TotalSize; in FaultTolerantUpdateOnPartFv() 905 TotalSize = TotalSize - Length; in FaultTolerantUpdateOnPartFv() 906 if (TotalSize <= 0) { in FaultTolerantUpdateOnPartFv() 1002 TotalSize = SizeLeft; in FaultTolerantUpdateOnPartFv() 1014 while (TotalSize > 0) { in FaultTolerantUpdateOnPartFv() 1027 Length = TotalSize; in FaultTolerantUpdateOnPartFv() 1067 TotalSize = TotalSize - Length; in FaultTolerantUpdateOnPartFv() [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/ |
D | MicrocodeUpdate.c | 223 UINTN TotalSize; in GetMicrocodeInfo() local 248 TotalSize = 2048; in GetMicrocodeInfo() 250 TotalSize = MicrocodeEntryPoint->TotalSize; in GetMicrocodeInfo() 254 …Status = VerifyMicrocode(MicrocodeFmpPrivate, MicrocodeEntryPoint, TotalSize, FALSE, &AttemptStatu… in GetMicrocodeInfo() 270 ImageDescriptor[Count].Size = TotalSize; in GetMicrocodeInfo() 285 MicrocodeInfo[Count].TotalSize = TotalSize; in GetMicrocodeInfo() 306 MicrocodeEntryPoint = (CPU_MICROCODE_HEADER *) (((UINTN) MicrocodeEntryPoint) + TotalSize); in GetMicrocodeInfo() 389 UINTN TotalSize; in VerifyMicrocode() local 427 TotalSize = 2048; in VerifyMicrocode() 429 TotalSize = MicrocodeEntryPoint->TotalSize; in VerifyMicrocode() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/ |
D | NetBuffer.c | 267 Clone->TotalSize = Nbuf->TotalSize; in NetbufClone() 303 Duplicate = NetbufAlloc (Nbuf->TotalSize + HeadSpace); in NetbufDuplicate() 317 Dst = NetbufAllocSpace (Duplicate, Nbuf->TotalSize, NET_BUF_TAIL); in NetbufDuplicate() 318 NetbufCopy (Nbuf, 0, Nbuf->TotalSize, Dst); in NetbufDuplicate() 385 if (Offset >= Nbuf->TotalSize) { in NetbufGetByte() 554 if ((Len == 0) || (Offset + Len > Nbuf->TotalSize)) { in NetbufGetFragment() 652 Child->TotalSize = Len; in NetbufGetFragment() 861 Nbuf->TotalSize = TotalLen; in NetbufFromExt() 1020 ASSERT ((Nbuf->BlockOpNum == 1) && (Nbuf->TotalSize == 0)); in NetbufReserve() 1067 if (Nbuf->TotalSize == 0) { in NetbufAllocSpace() [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/MpInitLib/ |
D | Microcode.c | 58 UINTN TotalSize; in MicrocodeDetect() local 127 ExtendedTableLength = MicrocodeEntryPoint->TotalSize - (MicrocodeEntryPoint->DataSize + in MicrocodeDetect() 182 TotalSize = 2048; in MicrocodeDetect() 184 TotalSize = MicrocodeEntryPoint->TotalSize; in MicrocodeDetect() 192 MicrocodeEntryPoint = (CPU_MICROCODE_HEADER *) (((UINTN) MicrocodeEntryPoint) + TotalSize); in MicrocodeDetect()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ |
D | ReportStatusCode.c | 192 UINTN TotalSize; in EfiDebugAssertWorker() local 198 TotalSize = sizeof (EFI_STATUS_CODE_DATA) + sizeof (EFI_DEBUG_ASSERT_DATA); in EfiDebugAssertWorker() 199 TotalSize += EfiAsciiStrLen (Filename); in EfiDebugAssertWorker() 200 TotalSize += EfiAsciiStrLen (Description); in EfiDebugAssertWorker() 201 if (TotalSize > BufferSize) { in EfiDebugAssertWorker() 210 (UINT16)(TotalSize - sizeof (EFI_STATUS_CODE_DATA)), in EfiDebugAssertWorker()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/EfiRom/ |
D | EfiRom.c | 51 UINT32 TotalSize; in main() local 139 TotalSize = 0; in main() 167 TotalSize += Size; in main() 172 if (TotalSize > MAX_OPTION_ROM_SIZE) { in main() 226 UINT32 TotalSize; in ProcessBinFile() local 275 TotalSize = FileSize; in ProcessBinFile() 276 if (TotalSize & 0x1FF) { in ProcessBinFile() 277 TotalSize = (TotalSize + 0x200) &~0x1ff; in ProcessBinFile() 280 if (TotalSize > MAX_OPTION_ROM_SIZE) { in ProcessBinFile() 288 *Size = TotalSize; in ProcessBinFile() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/EfiRom/ |
D | EfiRom.c | 241 UINT32 TotalSize; in main() local 309 TotalSize = 0; in main() 337 TotalSize += Size; in main() 342 if (TotalSize > MAX_OPTION_ROM_SIZE) { in main() 432 UINT32 TotalSize; in ProcessBinFile() local 509 TotalSize = FileSize; in ProcessBinFile() 520 TotalSize = (FileSize + 0x200) & ~0x1ff; in ProcessBinFile() 522 PaddingSize = TotalSize - DataSize - 1; in ProcessBinFile() 523 PciDs->ImageLength = (UINT16) (TotalSize / 512); in ProcessBinFile() 529 if (TotalSize > MAX_OPTION_ROM_SIZE) { in ProcessBinFile() [all …]
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ |
D | ProcessorSubClass.c | 253 UINT32 TotalSize; in UpdateSmbiosCacheTable() local 299 TotalSize = CacheSize * CoreCount; in UpdateSmbiosCacheTable() 303 TotalSize = CacheSize; in UpdateSmbiosCacheTable() 306 if((TotalSize >> 15) == 0) // 1K granularity in UpdateSmbiosCacheTable() 308 MaximumCacheSize = (UINT16)TotalSize; in UpdateSmbiosCacheTable() 309 InstalledSize = (UINT16)TotalSize; in UpdateSmbiosCacheTable() 313 MaximumCacheSize = (UINT16)(TotalSize >> 6); in UpdateSmbiosCacheTable() 314 InstalledSize = (UINT16)(TotalSize >> 6); in UpdateSmbiosCacheTable() 479 UINTN TotalSize; in AddSmbiosProcessorTypeTable() local 595 …TotalSize = sizeof (SMBIOS_TABLE_TYPE4) + ProcessorSocketStrLen + 1 + ProcessorManuStrLen + 1 + Pr… in AddSmbiosProcessorTypeTable() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/ |
D | Dir.c | 95 UINTN TotalSize; in EblDirCmd() local 150 TotalSize = 0; in EblDirCmd() 165 TotalSize += Size; in EblDirCmd() 216 …Print ("%,20d bytes in files %,d bytes free\n", TotalSize, File->FvSize - File->FvHeaderSize - Tot… in EblDirCmd()
|
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/ |
D | FileHandleWrappers.c | 1043 UINTN TotalSize; in FileInterfaceEnvClose() local 1053 TotalSize = 0; in FileInterfaceEnvClose() 1062 TotalSize = NewSize + sizeof (CHAR16); in FileInterfaceEnvClose() 1063 NewBuffer = AllocateZeroPool (TotalSize); in FileInterfaceEnvClose() 1072 if (TotalSize / sizeof (CHAR16) >= 3) { in FileInterfaceEnvClose() 1073 if ( (((CHAR16*)NewBuffer)[TotalSize / sizeof (CHAR16) - 2] == CHAR_LINEFEED) && in FileInterfaceEnvClose() 1074 (((CHAR16*)NewBuffer)[TotalSize / sizeof (CHAR16) - 3] == CHAR_CARRIAGE_RETURN) in FileInterfaceEnvClose() 1076 ((CHAR16*)NewBuffer)[TotalSize / sizeof (CHAR16) - 3] = CHAR_NULL; in FileInterfaceEnvClose() 1082 TotalSize - sizeof (CHAR16), in FileInterfaceEnvClose() 1090 TotalSize, in FileInterfaceEnvClose() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/ |
D | FwPadFile.c | 691 UINTN TotalSize; in FvCreateMultipleFilesInsidePadFile() local 723 TotalSize = 0; in FvCreateMultipleFilesInsidePadFile() 769 TotalSize += PadSize[Index]; in FvCreateMultipleFilesInsidePadFile() 770 TotalSize += BufferSize[Index]; in FvCreateMultipleFilesInsidePadFile() 777 if (PadAreaLength > TotalSize) { in FvCreateMultipleFilesInsidePadFile() 778 if ((PadAreaLength - TotalSize) >= sizeof (EFI_FFS_FILE_HEADER)) { in FvCreateMultipleFilesInsidePadFile() 783 FvFillPadFile (TailPadFileHeader, PadAreaLength - TotalSize); in FvCreateMultipleFilesInsidePadFile() 802 PadAreaLength - TotalSize in FvCreateMultipleFilesInsidePadFile() 895 UINTN TotalSize; in FvCreateMultipleFilesInsideFreeSpace() local 906 TotalSize = 0; in FvCreateMultipleFilesInsideFreeSpace() [all …]
|
D | FwVolWrite.c | 452 UINTN TotalSize; in FvSearchSuitablePadFile() local 477 TotalSize = 0; in FvSearchSuitablePadFile() 482 (EFI_PHYSICAL_ADDRESS) (UINTN) FileHeader + HeaderSize + TotalSize, in FvSearchSuitablePadFile() 486 TotalSize += PadSize[Index]; in FvSearchSuitablePadFile() 487 TotalSize += BufferSize[Index]; in FvSearchSuitablePadFile() 489 if (TotalSize > PadAreaLength) { in FvSearchSuitablePadFile() 494 if (PadAreaLength >= TotalSize) { in FvSearchSuitablePadFile() 496 *TotalSizeNeeded = TotalSize; in FvSearchSuitablePadFile() 536 UINTN TotalSize; in FvSearchSuitableFreeSpace() local 545 TotalSize = 0; in FvSearchSuitableFreeSpace() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/LegacyBootManagerLib/ |
D | LegacyBm.c | 643 UINTN TotalSize; in LegacyBmCreateDevOrder() local 654 TotalSize = 0; 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() 702 DevOrder = AllocateZeroPool (TotalSize); in LegacyBmCreateDevOrder() 728 ASSERT (TotalSize == (UINTN) ((UINT8 *) DevOrderPtr - (UINT8 *) DevOrder)); in LegacyBmCreateDevOrder() 737 TotalSize, in LegacyBmCreateDevOrder() [all …]
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/ |
D | FileImage.c | 272 UINTN TotalSize; in HFileImageSave() local 327 TotalSize = 0; in HFileImageSave() 332 TotalSize += Line->Size; in HFileImageSave() 342 Buffer = AllocateZeroPool (TotalSize); in HFileImageSave() 368 Status = ShellWriteFile (FileHandle, &TotalSize, Buffer); in HFileImageSave()
|
/device/linaro/bootloader/edk2/Nt32Pkg/CpuRuntimeDxe/ |
D | Cpu.c | 435 UINT32 TotalSize; in CpuUpdateSmbios() local 470 TotalSize = (UINT32)(sizeof(SMBIOS_TABLE_TYPE4) + CpuVerStrLen + 1 + 1); in CpuUpdateSmbios() 471 SmbiosRecord = AllocatePool(TotalSize); in CpuUpdateSmbios() 472 ZeroMem(SmbiosRecord, TotalSize); in CpuUpdateSmbios()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/ |
D | Ip4Output.c | 76 PacketHead->TotalLen = HTONS ((UINT16) Packet->TotalSize); in Ip4PrependHead() 338 if (Packet->TotalSize + HeadLen > Mtu) { in Ip4Output() 353 Num = (Packet->TotalSize + Mtu - 1) / Mtu; in Ip4Output() 360 PacketLen = Packet->TotalSize - (Num - 1) * Mtu; in Ip4Output() 402 NetbufTrim (Packet, Packet->TotalSize - Mtu, FALSE); in Ip4Output()
|
D | Ip4Icmp.c | 180 if (Packet->TotalSize < sizeof (Icmp)) { in Ip4ProcessIcmpError() 246 Icmp->Head.Checksum = (UINT16) (~NetblockChecksum ((UINT8 *) Icmp, Data->TotalSize)); in Ip4IcmpReplyEcho() 300 if (Packet->TotalSize < sizeof (Icmp)) { in Ip4ProcessIcmpQuery() 340 if (Packet->TotalSize < sizeof (Icmp)) { in Ip4IcmpHandle()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/ |
D | SmmProfile.c | 339 UINTN TotalSize; in InitProtectedMemRange() local 366 …TotalSize = NumberOfMmioDescriptors * sizeof (MEMORY_PROTECTION_RANGE) + sizeof (mProtectionMemRan… in InitProtectedMemRange() 367 mProtectionMemRange = (MEMORY_PROTECTION_RANGE *) AllocateZeroPool (TotalSize); in InitProtectedMemRange() 369 mProtectionMemRangeCount = TotalSize / sizeof (MEMORY_PROTECTION_RANGE); in InitProtectedMemRange() 379 TotalSize = (TotalSize / sizeof (MEMORY_PROTECTION_RANGE)) * sizeof (MEMORY_RANGE); in InitProtectedMemRange() 380 mSplitMemRange = (MEMORY_RANGE *) AllocateZeroPool (TotalSize); in InitProtectedMemRange() 826 UINTN TotalSize; in InitSmmProfileInternal() local 845 TotalSize = mSmmProfileSize + mMsrDsAreaSize; in InitSmmProfileInternal() 847 TotalSize = mSmmProfileSize; in InitSmmProfileInternal() 854 EFI_SIZE_TO_PAGES (TotalSize), in InitSmmProfileInternal() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/ |
D | Tpm2Help.c | 296 UINT32 TotalSize; in GetDigestListSize() local 298 TotalSize = sizeof(DigestList->count); in GetDigestListSize() 301 TotalSize += sizeof(DigestList->digests[Index].hashAlg) + DigestSize; in GetDigestListSize() 304 return TotalSize; in GetDigestListSize()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFfsFile/ |
D | GenFfsFile.c | 535 UINT32 TotalSize; in GenSimpleGuidSection() local 548 TotalSize = DataSize + sizeof (EFI_GUID_DEFINED_SECTION); in GenSimpleGuidSection() 550 GuidSectionHeader.CommonHeader.Size[0] = (UINT8) (TotalSize & 0xff); in GenSimpleGuidSection() 551 GuidSectionHeader.CommonHeader.Size[1] = (UINT8) ((TotalSize & 0xff00) >> 8); in GenSimpleGuidSection() 552 GuidSectionHeader.CommonHeader.Size[2] = (UINT8) ((TotalSize & 0xff0000) >> 16); in GenSimpleGuidSection() 569 while ((TotalSize & 0x03) != 0) { in GenSimpleGuidSection() 570 FileBuffer[TotalSize] = 0; in GenSimpleGuidSection() 571 TotalSize++; in GenSimpleGuidSection() 574 *BufferSize = TotalSize; in GenSimpleGuidSection() 624 UINT32 TotalSize; in CompressSection() local [all …]
|