/device/linaro/bootloader/edk2/ArmVirtPkg/Library/ArmVirtPlatformLib/ |
D | Virt.c | 76 UINT64 NewSize, CurSize; in ArmPlatformInitializeSystemMemory() local 83 NewSize = 0; in ArmPlatformInitializeSystemMemory() 122 NewSize = CurSize; in ArmPlatformInitializeSystemMemory() 135 PcdStatus = PcdSet64S (PcdSystemMemorySize, NewSize); in ArmPlatformInitializeSystemMemory() 146 ASSERT (NewSize >= SIZE_128MB); in ArmPlatformInitializeSystemMemory() 150 ((UINT64)PcdGet64 (PcdFdBaseAddress) >= (NewBase + NewSize))); in ArmPlatformInitializeSystemMemory()
|
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/ |
D | Malloc.c | 239 size_t NewSize; in realloc() local 256 NewSize = (size_t)(ReqSize + (sizeof(CPOOL_HEAD))); in realloc() 259 RetVal = malloc(NewSize); // Get the NEW memory region in realloc() 263 if( OldSize > NewSize) { in realloc() 264 NumCpy = NewSize; in realloc() 278 RetVal, Ptr, ReqSize, Head, NewSize)); in realloc()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
D | SetSize.c | 36 UINTN NewSize; in ShellCommandRunSetSize() local 68 NewSize = 0; in ShellCommandRunSetSize() 74 NewSize = 0; in ShellCommandRunSetSize() 76 NewSize = ShellStrToUintn(Temp1); in ShellCommandRunSetSize() 92 Status = FileHandleSetSize(FileHandle, NewSize); in ShellCommandRunSetSize()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 679 IN UINTN NewSize, in InternalReallocatePool() argument 685 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 687 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 718 IN UINTN NewSize, in ReallocatePool() argument 722 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSize, OldBuffer); in ReallocatePool() 750 IN UINTN NewSize, in ReallocateRuntimePool() argument 754 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocateRuntimePool() 782 IN UINTN NewSize, in ReallocateReservedPool() argument 786 return InternalReallocatePool (EfiReservedMemoryType, OldSize, NewSize, OldBuffer); in ReallocateReservedPool()
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 686 IN UINTN NewSize, in InternalReallocatePool() argument 692 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 694 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 725 IN UINTN NewSize, in ReallocatePool() argument 729 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSize, OldBuffer); in ReallocatePool() 757 IN UINTN NewSize, in ReallocateRuntimePool() argument 761 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocateRuntimePool() 789 IN UINTN NewSize, in ReallocateReservedPool() argument 793 return InternalReallocatePool (EfiReservedMemoryType, OldSize, NewSize, OldBuffer); in ReallocateReservedPool()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 883 IN UINTN NewSize, in InternalReallocatePool() argument 889 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 891 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 922 IN UINTN NewSize, in ReallocatePool() argument 928 Buffer = InternalReallocatePool (EfiBootServicesData, OldSize, NewSize, OldBuffer); in ReallocatePool() 935 NewSize, in ReallocatePool() 967 IN UINTN NewSize, in ReallocateRuntimePool() argument 973 Buffer = InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocateRuntimePool() 980 NewSize, in ReallocateRuntimePool() 1012 IN UINTN NewSize, in ReallocateReservedPool() argument [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 886 IN UINTN NewSize, in InternalReallocatePool() argument 892 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 894 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 925 IN UINTN NewSize, in ReallocatePool() argument 931 Buffer = InternalReallocatePool (EfiBootServicesData, OldSize, NewSize, OldBuffer); in ReallocatePool() 938 NewSize, in ReallocatePool() 970 IN UINTN NewSize, in ReallocateRuntimePool() argument 976 Buffer = InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocateRuntimePool() 983 NewSize, in ReallocateRuntimePool() 1015 IN UINTN NewSize, in ReallocateReservedPool() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 803 IN UINTN NewSize, in InternalReallocatePool() argument 809 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 811 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 842 IN UINTN NewSize, in ReallocatePool() argument 846 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSize, OldBuffer); in ReallocatePool() 874 IN UINTN NewSize, in ReallocateRuntimePool() argument 878 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocateRuntimePool() 906 IN UINTN NewSize, in ReallocateReservedPool() argument 910 return InternalReallocatePool (EfiReservedMemoryType, OldSize, NewSize, OldBuffer); in ReallocateReservedPool()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ |
D | BmLib.c | 342 IN UINTN NewSize in EfiReallocatePool() argument 348 if (NewSize != 0) { in EfiReallocatePool() 349 NewPool = AllocateZeroPool (NewSize); in EfiReallocatePool() 354 CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize); in EfiReallocatePool()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 881 IN UINTN NewSize, in InternalReallocatePool() argument 887 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 889 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 920 IN UINTN NewSize, in ReallocatePool() argument 926 Buffer = InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocatePool() 933 NewSize, in ReallocatePool() 965 IN UINTN NewSize, in ReallocateRuntimePool() argument 971 Buffer = InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocateRuntimePool() 978 NewSize, in ReallocateRuntimePool() 1010 IN UINTN NewSize, in ReallocateReservedPool() argument
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/ |
D | Mv.c | 242 UINTN NewSize; in GetDestinationLocation() local 284 NewSize = StrSize(Cwd); in GetDestinationLocation() 285 NewSize += StrSize(DestParameter); in GetDestinationLocation() 286 DestPath = AllocateZeroPool(NewSize); in GetDestinationLocation() 291 StrCpyS(DestPath, NewSize / sizeof(CHAR16), Cwd); in GetDestinationLocation() 293 StrCatS(DestPath, NewSize / sizeof(CHAR16), L"\\"); in GetDestinationLocation() 297 StrCatS(DestPath, NewSize / sizeof(CHAR16), DestParameter); in GetDestinationLocation() 448 UINTN NewSize; in MoveWithinFileSystems() local 462 NewSize = StrSize(DestPath); in MoveWithinFileSystems() 463 NewSize += StrSize(Node->FileName) + SIZE_OF_EFI_FILE_INFO + sizeof(CHAR16); in MoveWithinFileSystems() [all …]
|
D | Rm.c | 79 UINTN NewSize; in CascadeDelete() local 128 NewSize = StrSize(Node->FullName) + StrSize(Node2->FullName); in CascadeDelete() 129 TempName = AllocateZeroPool(NewSize); in CascadeDelete() 133 StrCpyS(TempName, NewSize/sizeof(CHAR16), Node->FullName); in CascadeDelete() 135 StrCatS(TempName, NewSize/sizeof(CHAR16), Node2->FullName); in CascadeDelete()
|
D | Cp.c | 309 UINTN NewSize; in ValidateAndCopyFiles() local 361 NewSize = StrSize(CleanFilePathStr); in ValidateAndCopyFiles() 362 NewSize += StrSize(Node->FullName); in ValidateAndCopyFiles() 363 NewSize += (Cwd == NULL)? 0 : (StrSize(Cwd) + sizeof(CHAR16)); in ValidateAndCopyFiles() 364 if (NewSize > PathSize) { in ValidateAndCopyFiles() 365 PathSize = NewSize; in ValidateAndCopyFiles()
|
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 835 IN UINTN NewSize, in InternalReallocatePool() argument 841 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 843 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 874 IN UINTN NewSize, in ReallocatePool() argument 878 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocatePool() 906 IN UINTN NewSize, in ReallocateRuntimePool() argument 910 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocateRuntimePool() 938 IN UINTN NewSize, in ReallocateReservedPool() argument
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/SerializeVariablesLib/ |
D | SerializeVariablesLib.c | 323 UINTN NewSize; in EnsureExtraBufferSpace() local 325 NewSize = Instance->DataSize + Size; in EnsureExtraBufferSpace() 326 if (NewSize <= Instance->BufferSize) { in EnsureExtraBufferSpace() 333 NewSize = 2 * NewSize; in EnsureExtraBufferSpace() 335 NewBuffer = AllocatePool (NewSize); in EnsureExtraBufferSpace() 346 Instance->BufferSize = NewSize; in EnsureExtraBufferSpace() 360 UINTN NewSize; in AppendToBuffer() local 365 NewSize = Instance->DataSize + Size; in AppendToBuffer() 374 Instance->DataSize = NewSize; in AppendToBuffer()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 967 IN UINTN NewSize, in InternalReallocatePool() argument 973 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 975 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 1006 IN UINTN NewSize, in ReallocatePool() argument 1012 Buffer = InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocatePool() 1019 NewSize, in ReallocatePool() 1051 IN UINTN NewSize, in ReallocateRuntimePool() argument 1057 Buffer = InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSize, OldBuffer); in ReallocateRuntimePool() 1064 NewSize, in ReallocateRuntimePool() 1096 IN UINTN NewSize, in ReallocateReservedPool() argument
|
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | MemoryAllocationLib.c | 100 IN UINTN NewSize, in ReallocatePool() argument 106 NewBuffer = AllocatePool (NewSize); in ReallocatePool()
|
/device/linaro/bootloader/edk2/MdePkg/Include/Library/ |
D | MemoryAllocationLib.h | 411 IN UINTN NewSize, 440 IN UINTN NewSize, 469 IN UINTN NewSize,
|
/device/linaro/bootloader/edk2/FatPkg/EnhancedFatDxe/ |
D | FileSpace.c | 362 UINTN NewSize; in FatShrinkEof() local 370 NewSize = FatSizeToClusters (Volume, OFile->FileSize); in FatShrinkEof() 378 if (NewSize != 0) { in FatShrinkEof() 380 for (CurSize = 0; CurSize < NewSize; CurSize++) { in FatShrinkEof() 441 UINTN NewSize; in FatGrowEof() local 459 NewSize = FatSizeToClusters (Volume, (UINTN) NewSizeInBytes); in FatGrowEof() 461 if (CurSize < NewSize) { in FatGrowEof() 500 while (CurSize < NewSize) { in FatGrowEof()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/ |
D | OnigurumaUefiPort.h | 44 #define realloc(OldPtr,NewSize,OldSize) ReallocatePool(OldSize,NewSize,OldPtr) argument
|
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/ |
D | FileHandleWrappers.c | 1040 UINTN NewSize; in FileInterfaceEnvClose() local 1052 NewSize = 0; in FileInterfaceEnvClose() 1060 …Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, Ne… in FileInterfaceEnvClose() 1062 TotalSize = NewSize + sizeof (CHAR16); in FileInterfaceEnvClose() 1067 …Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, Ne… in FileInterfaceEnvClose() 1178 UINTN NewSize; in FileInterfaceEnvVolWrite() local 1183 NewSize = 0; in FileInterfaceEnvVolWrite() 1186 …Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, Ne… in FileInterfaceEnvVolWrite() 1188 TotalSize = NewSize + *BufferSize + sizeof (CHAR16); in FileInterfaceEnvVolWrite() 1201 …Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, Ne… in FileInterfaceEnvVolWrite() [all …]
|
D | Shell.c | 1111 UINTN NewSize; in DoStartupScript() local 1122 NewSize = StrSize(ShellInfoObject.ShellInitSettings.FileName); in DoStartupScript() 1124 NewSize += StrSize(ShellInfoObject.ShellInitSettings.FileOptions) + sizeof(CHAR16); in DoStartupScript() 1126 FileStringPath = AllocateZeroPool(NewSize); in DoStartupScript() 1130 StrCpyS(FileStringPath, NewSize/sizeof(CHAR16), ShellInfoObject.ShellInitSettings.FileName); in DoStartupScript() 1132 …StrnCatS(FileStringPath, NewSize/sizeof(CHAR16), L" ", NewSize/sizeof(CHAR16) - StrLen(FileStringP… in DoStartupScript() 1133 …StrnCatS(FileStringPath, NewSize/sizeof(CHAR16), ShellInfoObject.ShellInitSettings.FileOptions, Ne… in DoStartupScript() 1184 NewSize = 0; in DoStartupScript() 1185 FileStringPath = StrnCatGrow(&FileStringPath, &NewSize, MapName, 0); in DoStartupScript() 1193 …FileStringPath = StrnCatGrow(&FileStringPath, &NewSize, ((FILEPATH_DEVICE_PATH*)FilePath)->PathNam… in DoStartupScript() [all …]
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/ |
D | BootMonFsDir.c | 352 IN UINTN NewSize in SetFileSize() argument 371 if (NewSize < OldSize) { in SetFileSize() 378 if (Region->Offset > NewSize) { in SetFileSize() 383 Region->Size = MIN (Region->Size, NewSize - Region->Offset); in SetFileSize() 388 } else if (NewSize > OldSize) { in SetFileSize() 406 BufferSize = NewSize - OldSize; in SetFileSize() 425 BootMonFsFile->Info->FileSize = NewSize; in SetFileSize()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/ |
D | PlatformEarlyInit.c | 838 UINT64 NewSize; in PlatformEarlyInitEntry() 904 NewSize = MAX (LShiftU64 (1, HighBitSet64 (Size - 1) + 1), SIZE_4KB); in PlatformEarlyInitEntry() 905 if ((Base & ~(NewSize - 1)) != Base) { in PlatformEarlyInitEntry() 911 DEBUG((DEBUG_ERROR, " SMRAM Region Base=%016lx Size=%016lx\n", Base, NewSize)); in PlatformEarlyInitEntry() 913 } else if (Size != NewSize) { in PlatformEarlyInitEntry() 920 DescriptorBlock->Descriptor[Index].PhysicalSize += (NewSize - Size); in PlatformEarlyInitEntry() 921 Size = NewSize; in PlatformEarlyInitEntry() 927 if (Size != NewSize) { in PlatformEarlyInitEntry() 961 NewDescriptorBlock->Descriptor[Index - 1].PhysicalSize = NewSize - Size; in PlatformEarlyInitEntry()
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiFileHandleLib/ |
D | UefiFileHandleLib.c | 714 UINTN NewSize; in StrnCatGrowLeft() local 751 NewSize = *CurrentSize; in StrnCatGrowLeft() 752 while (NewSize < (DestinationStartSize + Count)) { in StrnCatGrowLeft() 753 NewSize += 2 * Count; in StrnCatGrowLeft() 755 *Destination = ReallocatePool(*CurrentSize, NewSize, *Destination); in StrnCatGrowLeft() 756 *CurrentSize = NewSize; in StrnCatGrowLeft()
|