/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | MemoryAllocationLib.c | 104 VOID *NewBuffer; in ReallocatePool() local 106 NewBuffer = AllocatePool (NewSize); in ReallocatePool() 107 if (NewBuffer == NULL) { in ReallocatePool() 113 CopyMem (NewBuffer, OldBuffer, OldSize); in ReallocatePool() 119 return NewBuffer; in ReallocatePool()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 761 VOID *NewBuffer; in AllocateCopyPool() local 763 NewBuffer = InternalAllocateCopyPool (EfiBootServicesData, AllocationSize, Buffer); in AllocateCopyPool() 764 if (NewBuffer != NULL) { in AllocateCopyPool() 769 NewBuffer, in AllocateCopyPool() 774 return NewBuffer; in AllocateCopyPool() 801 VOID *NewBuffer; in AllocateRuntimeCopyPool() local 803 NewBuffer = InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer); in AllocateRuntimeCopyPool() 804 if (NewBuffer != NULL) { in AllocateRuntimeCopyPool() 809 NewBuffer, in AllocateRuntimeCopyPool() 814 return NewBuffer; in AllocateRuntimeCopyPool() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 764 VOID *NewBuffer; in AllocateCopyPool() local 766 NewBuffer = InternalAllocateCopyPool (EfiBootServicesData, AllocationSize, Buffer); in AllocateCopyPool() 767 if (NewBuffer != NULL) { in AllocateCopyPool() 772 NewBuffer, in AllocateCopyPool() 777 return NewBuffer; in AllocateCopyPool() 804 VOID *NewBuffer; in AllocateRuntimeCopyPool() local 806 NewBuffer = InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer); in AllocateRuntimeCopyPool() 807 if (NewBuffer != NULL) { in AllocateRuntimeCopyPool() 812 NewBuffer, in AllocateRuntimeCopyPool() 817 return NewBuffer; in AllocateRuntimeCopyPool() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/ |
D | BlockIo.c | 120 VOID *NewBuffer; in XenPvBlkDxeBlockIoReadWriteBlocks() local 125 NewBuffer = AllocateAlignedPages((BufferSize + EFI_PAGE_SIZE) / EFI_PAGE_SIZE, in XenPvBlkDxeBlockIoReadWriteBlocks() 129 Lba, BufferSize, NewBuffer); in XenPvBlkDxeBlockIoReadWriteBlocks() 130 CopyMem (Buffer, NewBuffer, BufferSize); in XenPvBlkDxeBlockIoReadWriteBlocks() 132 CopyMem (NewBuffer, Buffer, BufferSize); in XenPvBlkDxeBlockIoReadWriteBlocks() 134 Lba, BufferSize, NewBuffer); in XenPvBlkDxeBlockIoReadWriteBlocks() 136 FreeAlignedPages (NewBuffer, (BufferSize + EFI_PAGE_SIZE) / EFI_PAGE_SIZE); in XenPvBlkDxeBlockIoReadWriteBlocks()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 772 VOID *NewBuffer; in AllocateCopyPool() local 774 NewBuffer = InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer); in AllocateCopyPool() 775 if (NewBuffer != NULL) { in AllocateCopyPool() 780 NewBuffer, in AllocateCopyPool() 785 return NewBuffer; in AllocateCopyPool() 812 VOID *NewBuffer; in AllocateRuntimeCopyPool() local 814 NewBuffer = InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer); in AllocateRuntimeCopyPool() 815 if (NewBuffer != NULL) { in AllocateRuntimeCopyPool() 820 NewBuffer, in AllocateRuntimeCopyPool() 825 return NewBuffer; in AllocateRuntimeCopyPool() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 856 VOID *NewBuffer; in AllocateCopyPool() local 858 NewBuffer = InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer); in AllocateCopyPool() 859 if (NewBuffer != NULL) { in AllocateCopyPool() 864 NewBuffer, in AllocateCopyPool() 869 return NewBuffer; in AllocateCopyPool() 897 VOID *NewBuffer; in AllocateRuntimeCopyPool() local 899 NewBuffer = InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer); in AllocateRuntimeCopyPool() 900 if (NewBuffer != NULL) { in AllocateRuntimeCopyPool() 905 NewBuffer, in AllocateRuntimeCopyPool() 910 return NewBuffer; in AllocateRuntimeCopyPool() [all …]
|
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/ |
D | FileHandleWrappers.c | 1039 VOID* NewBuffer; in FileInterfaceEnvClose() local 1051 NewBuffer = NULL; in FileInterfaceEnvClose() 1060 … SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffer); in FileInterfaceEnvClose() 1063 NewBuffer = AllocateZeroPool (TotalSize); in FileInterfaceEnvClose() 1064 if (NewBuffer == NULL) { in FileInterfaceEnvClose() 1067 … SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffer); in FileInterfaceEnvClose() 1070 if (!EFI_ERROR(Status) && NewBuffer != NULL) { 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() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/ |
D | IfrCommon.c | 115 VOID *NewBuffer; in AddString() local 133 NewBuffer = EfiLibAllocateZeroPool (DEFAULT_STRING_BUFFER_SIZE); in AddString() 134 if (NewBuffer == NULL) { in AddString() 138 StringPackBuffer = (EFI_HII_STRING_PACK *) NewBuffer; in AddString() 295 EfiCopyMem (StringBuffer, NewBuffer, DEFAULT_STRING_BUFFER_SIZE); in AddString() 300 gBS->FreePool (NewBuffer); in AddString() 330 EFI_HII_PACK_HEADER *NewBuffer; in AddOpCode() local 339 NewBuffer = EfiLibAllocateZeroPool (DEFAULT_FORM_BUFFER_SIZE); in AddOpCode() 340 if (NewBuffer == NULL) { in AddOpCode() 345 Destination = (UINT8 *) NewBuffer; in AddOpCode() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/SerializeVariablesLib/ |
D | SerializeVariablesLib.c | 322 VOID *NewBuffer; in EnsureExtraBufferSpace() local 335 NewBuffer = AllocatePool (NewSize); in EnsureExtraBufferSpace() 336 if (NewBuffer == NULL) { in EnsureExtraBufferSpace() 341 CopyMem (NewBuffer, Instance->BufferPtr, Instance->DataSize); in EnsureExtraBufferSpace() 345 Instance->BufferPtr = NewBuffer; in EnsureExtraBufferSpace() 534 VOID *NewBuffer; in SerializeVariablesIterateSystemVariables() local 561 NewBuffer = AllocatePool (VariableNameSize); in SerializeVariablesIterateSystemVariables() 562 if (NewBuffer == NULL) { in SerializeVariablesIterateSystemVariables() 566 CopyMem (NewBuffer, VariableName, VariableNameBufferSize); in SerializeVariablesIterateSystemVariables() 570 VariableName = NewBuffer; in SerializeVariablesIterateSystemVariables()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ |
D | ReportStatusCodeRouterRuntimeDxe.c | 245 VOID *NewBuffer; in ReportDispatcher() local 288 NewBuffer = ReallocatePool ( in ReportDispatcher() 293 if (NewBuffer != NULL) { in ReportDispatcher() 294 …CallbackEntry->EndPointer = (EFI_PHYSICAL_ADDRESS) (UINTN) NewBuffer + (CallbackEntry->EndPointer … in ReportDispatcher() 295 CallbackEntry->StatusCodeDataBuffer = (EFI_PHYSICAL_ADDRESS) (UINTN) NewBuffer; in ReportDispatcher()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 683 VOID *NewBuffer; in InternalReallocatePool() local 685 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 686 if (NewBuffer != NULL && OldBuffer != NULL) { in InternalReallocatePool() 687 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 690 return NewBuffer; in InternalReallocatePool()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/ |
D | PciDevice.c | 346 VOID *NewBuffer; 364 &NewBuffer 375 NewBuffer, 390 x = (PCI_LAN_INFO *)NewBuffer + (mPciLanCount - 1); 395 mPciLanInfo = NewBuffer;
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 690 VOID *NewBuffer; in InternalReallocatePool() local 692 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 693 if (NewBuffer != NULL && OldBuffer != NULL) { in InternalReallocatePool() 694 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 697 return NewBuffer; in InternalReallocatePool()
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 807 VOID *NewBuffer; in InternalReallocatePool() local 809 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 810 if (NewBuffer != NULL && OldBuffer != NULL) { in InternalReallocatePool() 811 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 814 return NewBuffer; in InternalReallocatePool()
|
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 839 VOID *NewBuffer; in InternalReallocatePool() local 841 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); in InternalReallocatePool() 842 if (NewBuffer != NULL && OldBuffer != NULL) { in InternalReallocatePool() 843 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalReallocatePool() 846 return NewBuffer; in InternalReallocatePool()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Application/FirmwareUpdate/ |
D | FirmwareUpdate.c | 640 VOID *NewBuffer; 644 NewBuffer = NULL; 663 NewBuffer = AllocatePool ((UINTN) Size); 666 Status = FileHandleRead (FileHandle, &ReadSize, NewBuffer); 680 if (NewBuffer != NULL) { 681 FreePool (NewBuffer); 684 *Buffer = NewBuffer; in PrintHelpInfo()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/ |
D | UefiCapsule.c | 1107 EFI_PHYSICAL_ADDRESS NewBuffer; in CreateState() local 1136 &NewBuffer in CreateState() 1146 …(EFI_CAPSULE_PEIM_PRIVATE_DATA) + (CapsuleNumber - 1) * sizeof(UINT64)), (UINTN) NewBuffer, Size)); in CreateState() 1147 …CopyMem ((VOID *) (UINTN) NewBuffer, (VOID *) (UINTN) ((UINT8 *)PrivateData + sizeof(EFI_CAPSULE_P… in CreateState() 1156 CapsuleTestPattern (PeiServices, (VOID *) (UINTN) NewBuffer); in CreateState() 1163 BaseAddress = NewBuffer + PrivateData->CapsuleOffset[Index]; in CreateState()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaBusDxe/ |
D | AtaPassThruExecute.c | 1004 VOID *NewBuffer; in TrustTransferAtaDevice() local 1046 NewBuffer = AllocateAlignedBuffer (AtaDevice, TransferLength); in TrustTransferAtaDevice() 1047 if (NewBuffer == NULL) { in TrustTransferAtaDevice() 1051 CopyMem (NewBuffer, Buffer, TransferLength); in TrustTransferAtaDevice() 1053 Buffer = NewBuffer; in TrustTransferAtaDevice()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/UefiEfiIfrSupportLib/ |
D | UefiIfrForm.c | 1146 UINT8 *NewBuffer; in BufferToHexString() local 1149 NewBuffer = EfiLibAllocateCopyPool (BufferSize, Buffer); in BufferToHexString() 1150 SwapBuffer (NewBuffer, BufferSize); in BufferToHexString() 1153 Status = BufToHexString (Str, &StrBufferLen, NewBuffer, BufferSize); in BufferToHexString() 1155 gBS->FreePool (NewBuffer); in BufferToHexString()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/ |
D | VarCheckHiiGen.c | 453 VOID *NewBuffer; in InternalVarCheckReallocatePool() local 455 NewBuffer = InternalVarCheckAllocateZeroPool (NewSize); in InternalVarCheckReallocatePool() 456 if (NewBuffer != NULL && OldBuffer != NULL) { in InternalVarCheckReallocatePool() 457 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); in InternalVarCheckReallocatePool() 460 return NewBuffer; in InternalVarCheckReallocatePool()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellCommandLib/ |
D | ConsistMapping.c | 692 CHAR16 *NewBuffer; in DevPathSerialVendor() local 730 … NewBuffer = CatSPrint (Buffer, L"%02x", *((UINT8*)Vendor + sizeof (VENDOR_DEVICE_PATH) + Index)); in DevPathSerialVendor() 731 if (NewBuffer == NULL) { in DevPathSerialVendor() 735 Buffer = NewBuffer; in DevPathSerialVendor()
|