/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/StdLib/ |
H A D | Malloc.c | 172 - valid NewSize >= OldSize Returns malloc(NewSize) with Oldsize bytes copied from Ptr 173 - valid NewSize < OldSize Returns new buffer with Oldsize bytes copied from Ptr 190 UINTN OldSize = 0; local 201 OldSize = Head->Size; 210 NumCpy = OldSize; 211 if( OldSize > NewSize) {
|
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/PeiMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 649 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and 655 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 659 @param OldSize The size, in bytes, of OldBuffer. 670 IN UINTN OldSize, 679 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 689 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and 695 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 698 @param OldSize The size, in bytes, of OldBuffer. 709 IN UINTN OldSize, 714 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSiz 668 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 708 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 740 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 772 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Library/ |
H A D | MemoryAllocationLib.h | 387 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and 393 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 396 @param OldSize The size, in bytes, of OldBuffer. 407 IN UINTN OldSize, 416 EfiRuntimeServicesData. If OldBuffer is not NULL, then the smaller of OldSize and 422 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 425 @param OldSize The size, in bytes, of OldBuffer. 436 IN UINTN OldSize, 445 EfiReservedMemoryType. If OldBuffer is not NULL, then the smaller of OldSize and 451 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 660 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and 666 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 670 @param OldSize The size, in bytes, of OldBuffer. 681 IN UINTN OldSize, 690 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 700 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and 706 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 709 @param OldSize The size, in bytes, of OldBuffer. 720 IN UINTN OldSize, 725 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSiz 679 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 719 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 751 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 783 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/UefiMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 660 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and 666 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 670 @param OldSize The size, in bytes, of OldBuffer. 681 IN UINTN OldSize, 690 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 700 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and 706 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 709 @param OldSize The size, in bytes, of OldBuffer. 720 IN UINTN OldSize, 725 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSiz 679 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 719 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 751 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 783 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 763 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and 769 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 773 @param OldSize The size, in bytes, of OldBuffer. 784 IN UINTN OldSize, 793 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 803 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and 809 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 812 @param OldSize The size, in bytes, of OldBuffer. 823 IN UINTN OldSize, 828 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSiz 782 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 822 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 854 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 886 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/SmmMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 808 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and 815 and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT(). 818 @param OldSize The size, in bytes, of OldBuffer. 829 IN UINTN OldSize, 838 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 848 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and 855 and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT(). 857 @param OldSize The size, in bytes, of OldBuffer. 868 IN UINTN OldSize, 873 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSiz 827 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 867 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 899 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument 931 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/CryptoPkg/Library/BaseCryptLib/Pk/ |
H A D | CryptPkcs7.c | 427 UINTN OldSize; local 485 OldSize = BufferSize; 493 OldSize = BufferSize; 495 BufferSize = OldSize + SingleCertSize + sizeof (UINT32); 503 CopyMem (CertBuf, OldBuf, OldSize); 508 WriteUnaligned32 ((UINT32 *) (CertBuf + OldSize), (UINT32) SingleCertSize); 509 CopyMem (CertBuf + OldSize + sizeof (UINT32), SingleCert, SingleCertSize); 521 *CertLength = BufferSize - OldSize - sizeof (UINT32); 527 CopyMem (*TrustedCert, CertBuf + OldSize + sizeof (UINT32), *CertLength);
|
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ |
H A D | BmLib.c | 352 @param OldSize - The size of the current buffer. 362 IN UINTN OldSize, 375 CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize); 360 EfiReallocatePool( IN VOID *OldPool, IN UINTN OldSize, IN UINTN NewSize ) argument
|
H A D | BootMaint.h | 1184 @param OldSize The size of the current buffer. 1193 IN UINTN OldSize,
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/Common/ |
H A D | FirmwareVolumeBuffer.c | 365 UINTN OldSize; local 373 Status = FvBufGetSize (*Fv, &OldSize); 393 NewSize = OldSize + (BlockCount * blk->Length); 403 CommonLibBinderCopyMem (NewFv, *Fv, OldSize); 431 (UINT8*)NewFv + OldSize, 432 (NewSize - OldSize), 1408 UINTN OldSize; local 1417 Status = FvBufGetSize (Fv, &OldSize);
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/ |
H A D | FileBuffer.c | 3059 UINTN OldSize; local 3064 OldSize = FileBuffer.CurrentLine->Size + 1; 3068 NewSize = OldSize + (ReplaceLen - SearchLen); 3076 2 * OldSize, 3245 UINTN OldSize; local 3271 OldSize = Line->Size + 1; 3275 NewSize = OldSize + (ReplaceLen - SearchLen); 3282 2 * OldSize,
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/ |
H A D | MainHexEditor.c | 2071 UINTN OldSize; local 2084 OldSize = 0; 2276 OldSize = HBufferImage.DiskImage->Size * HBufferImage.DiskImage->BlockSize; 2280 OldSize = HBufferImage.MemImage->Size; 2284 OldSize = 0; 2289 if (OldSize != Size) { 2294 if (OldSize != Size) {
|