Home
last modified time | relevance | path

Searched refs:NewBuffer (Results 1 – 21 of 21) sorted by relevance

/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DMemoryAllocationLib.c104 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/
DMemoryAllocationLib.c761 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/
DMemoryAllocationLib.c764 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/
DBlockIo.c120 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/
DMemoryAllocationLib.c772 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/
DMemoryAllocationLib.c856 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/
DFileHandleWrappers.c1039 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/
DIfrCommon.c115 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/
DSerializeVariablesLib.c322 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/
DReportStatusCodeRouterRuntimeDxe.c245 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/
DMemoryAllocationLib.c683 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/
DPciDevice.c346 VOID *NewBuffer;
364 &NewBuffer
375 NewBuffer,
390 x = (PCI_LAN_INFO *)NewBuffer + (mPciLanCount - 1);
395 mPciLanInfo = NewBuffer;
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/
DMemoryAllocationLib.c690 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/
DMemoryAllocationLib.c807 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/
DMemoryAllocationLib.c839 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/
DFirmwareUpdate.c640 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/
DUefiCapsule.c1107 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/
DAtaPassThruExecute.c1004 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/
DUefiIfrForm.c1146 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/
DVarCheckHiiGen.c453 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/
DConsistMapping.c692 CHAR16 *NewBuffer; in DevPathSerialVendor() local
730NewBuffer = CatSPrint (Buffer, L"%02x", *((UINT8*)Vendor + sizeof (VENDOR_DEVICE_PATH) + Index)); in DevPathSerialVendor()
731 if (NewBuffer == NULL) { in DevPathSerialVendor()
735 Buffer = NewBuffer; in DevPathSerialVendor()