Searched defs:OldSize (Results 1 - 17 of 17) sorted by relevance

/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
H A DMemoryAllocationLib.c79 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
85 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
88 @param OldSize The size, in bytes, of OldBuffer.
99 IN UINTN OldSize,
112 if (OldSize > 0) {
113 CopyMem (NewBuffer, OldBuffer, OldSize);
98 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/
H A DBmLib.c331 @param OldSize - The size of the current buffer.
341 IN UINTN OldSize,
354 CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize);
339 EfiReallocatePool( IN VOID *OldPool, IN UINTN OldSize, IN UINTN NewSize ) argument
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
H A DMalloc.c220 - valid NewSize >= OldSize Returns malloc(NewSize) with Oldsize bytes copied from Ptr
221 - valid NewSize < OldSize Returns new buffer with Oldsize bytes copied from Ptr
238 size_t OldSize = 0; local
252 OldSize = (size_t)Head->Size;
262 NumCpy = OldSize;
263 if( OldSize > NewSize) {
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/
H A DBootMonFsDir.c358 UINT32 OldSize; local
367 OldSize = BootMonFsFile->Info->FileSize;
373 if (NewSize < OldSize) {
390 } else if (NewSize > OldSize) {
403 Status = File->SetPosition (File, OldSize);
408 BufferSize = NewSize - OldSize;
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/
H A DCryptPkcs7Verify.c273 UINTN OldSize; local
331 OldSize = BufferSize;
339 OldSize = BufferSize;
341 BufferSize = OldSize + SingleCertSize + sizeof (UINT32);
349 CopyMem (CertBuf, OldBuf, OldSize);
354 WriteUnaligned32 ((UINT32 *) (CertBuf + OldSize), (UINT32) SingleCertSize);
355 CopyMem (CertBuf + OldSize + sizeof (UINT32), SingleCert, SingleCertSize);
367 *CertLength = BufferSize - OldSize - sizeof (UINT32);
373 CopyMem (*TrustedCert, CertBuf + OldSize + sizeof (UINT32), *CertLength);
475 UINTN OldSize; local
[all...]
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/
H A DMemoryAllocationLib.c657 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and
663 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
667 @param OldSize The size, in bytes, of OldBuffer.
678 IN UINTN OldSize,
687 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
697 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
703 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
706 @param OldSize The size, in bytes, of OldBuffer.
717 IN UINTN OldSize,
722 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSiz
676 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
716 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
748 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
780 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
[all...]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/
H A DMemoryAllocationLib.c666 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and
672 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
676 @param OldSize The size, in bytes, of OldBuffer.
687 IN UINTN OldSize,
696 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
706 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
712 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
715 @param OldSize The size, in bytes, of OldBuffer.
726 IN UINTN OldSize,
731 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSiz
685 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
725 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
757 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
789 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
[all...]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/
H A DMemoryAllocationLib.c727 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and
733 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
737 @param OldSize The size, in bytes, of OldBuffer.
748 IN UINTN OldSize,
757 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
767 EfiRuntimeServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
773 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
776 @param OldSize The size, in bytes, of OldBuffer.
787 IN UINTN OldSize,
792 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSiz
746 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
786 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
818 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
850 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
[all...]
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/
H A DMemoryAllocationLib.c781 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and
787 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
791 @param OldSize The size, in bytes, of OldBuffer.
802 IN UINTN OldSize,
811 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
821 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
827 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
830 @param OldSize The size, in bytes, of OldBuffer.
841 IN UINTN OldSize,
846 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSiz
800 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
840 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
872 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
904 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
[all...]
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/
H A DMemoryAllocationLib.c813 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and
820 and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
823 @param OldSize The size, in bytes, of OldBuffer.
834 IN UINTN OldSize,
843 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
853 EfiRuntimeServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
860 and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
862 @param OldSize The size, in bytes, of OldBuffer.
873 IN UINTN OldSize,
878 return InternalReallocatePool (EfiRuntimeServicesData, OldSize, NewSiz
832 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
872 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
904 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
936 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
[all...]
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/
H A DMemoryAllocationLib.c664 specified by PoolType. If OldBuffer is not NULL, then the smaller of OldSize and
670 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
674 @param OldSize The size, in bytes, of OldBuffer.
685 IN UINTN OldSize,
694 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
704 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
710 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
713 @param OldSize The size, in bytes, of OldBuffer.
724 IN UINTN OldSize,
729 return InternalReallocatePool (EfiBootServicesData, OldSize, NewSiz
683 InternalReallocatePool( IN EFI_MEMORY_TYPE PoolType, IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
723 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
755 ReallocateRuntimePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
787 ReallocateReservedPool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
[all...]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/
H A DMainHexEditor.c2066 UINTN OldSize; local
2079 OldSize = 0;
2271 OldSize = HBufferImage.DiskImage->Size * HBufferImage.DiskImage->BlockSize;
2275 OldSize = HBufferImage.MemImage->Size;
2279 OldSize = 0;
2284 if (OldSize != Size) {
2289 if (OldSize != Size) {
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
H A DFirmwareVolumeBuffer.c394 UINTN OldSize; local
402 Status = FvBufGetSize (*Fv, &OldSize);
422 NewSize = OldSize + (BlockCount * blk->Length);
432 CommonLibBinderCopyMem (NewFv, *Fv, OldSize);
460 (UINT8*)NewFv + OldSize,
461 (NewSize - OldSize),
1518 UINTN OldSize; local
1527 Status = FvBufGetSize (Fv, &OldSize);
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/
H A DVarCheckHiiGen.c429 EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
435 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
438 @param OldSize The size, in bytes, of OldBuffer.
448 IN UINTN OldSize,
457 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
447 InternalVarCheckReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFfsFile/
H A DGenFfsFile.c1117 UINT32 OldSize; local
1378 OldSize = Size;
1391 if (Size - OldSize >= sizeof (EFI_COMMON_SECTION_HEADER) + sizeof (EFI_TE_IMAGE_HEADER) &&
1392 ((EFI_COMMON_SECTION_HEADER *) &FileBuffer[OldSize])->Type == EFI_SECTION_TE &&
1393 ((EFI_TE_IMAGE_HEADER *) &FileBuffer[OldSize + 4])->Machine == EFI_IMAGE_MACHINE_IA64) {
1394 TeStrippedSize = ((EFI_TE_IMAGE_HEADER *) &FileBuffer[OldSize + 4])->StrippedSize;
1395 Adjust = TeStrippedSize - (OldSize + sizeof (EFI_COMMON_SECTION_HEADER) + sizeof (EFI_TE_IMAGE_HEADER));
1398 memmove (&FileBuffer[OldSize + Adjust], &FileBuffer[OldSize], Size - OldSize);
[all...]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFvImage/
H A DGenFvImageLib.c1873 UINTN OldSize; local
1881 OldSize = (UINTN) FvImage->Eof - (UINTN) FvImage->FileImage;
1883 assert (OldSize == FvInfo->FvBlocks[0].NumBlocks * FvInfo->FvBlocks[0].BlockLength);
1891 if (OldSize + IncreaseSize > *FvImageCapacity) {
1896 *FvImageCapacity = OldSize + FV_CAPACITY_INCREASE_UNIT;
1954 FvHeader->FvLength = OldSize + IncreaseSize;
1966 FvImage->Eof = FvImage->FileImage + OldSize + IncreaseSize;
1968 InitializeFvLib (FvImage->FileImage, OldSize + IncreaseSize);
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/
H A DFileBuffer.c3074 UINTN OldSize; local
3079 OldSize = FileBuffer.CurrentLine->Size + 1;
3083 NewSize = OldSize + (ReplaceLen - SearchLen);
3091 2 * OldSize,
3260 UINTN OldSize; local
3286 OldSize = Line->Size + 1;
3290 NewSize = OldSize + (ReplaceLen - SearchLen);
3297 2 * OldSize,

Completed in 758 milliseconds