Searched defs:NewSize (Results 1 - 25 of 26) sorted by relevance

12

/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
H A DMemoryAllocationLib.c78 Allocates and zeros the number bytes specified by NewSize from memory of type
80 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
82 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
85 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
89 @param NewSize The size, in bytes, of the buffer to reallocate.
100 IN UINTN NewSize,
106 NewBuffer = AllocatePool (NewSize);
98 ReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
H A DSetSize.c36 UINTN NewSize; local
68 NewSize = 0;
74 NewSize = 0;
76 NewSize = ShellStrToUintn(Temp1);
92 Status = FileHandleSetSize(FileHandle, NewSize);
/device/linaro/bootloader/edk2/ArmVirtPkg/Library/ArmVirtPlatformLib/
H A DVirt.c76 UINT64 NewSize, CurSize; local
82 NewSize = 0;
121 NewSize = CurSize;
134 PcdSet64 (PcdSystemMemorySize, NewSize);
144 ASSERT (NewSize >= SIZE_128MB);
148 ((UINT64)PcdGet64 (PcdFdBaseAddress) >= (NewBase + NewSize)));
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/
H A DRm.c81 UINTN NewSize; local
130 NewSize = StrSize(Node->FullName) + StrSize(Node2->FullName);
131 TempName = AllocateZeroPool(NewSize);
135 StrCpyS(TempName, NewSize/sizeof(CHAR16), Node->FullName);
137 StrCatS(TempName, NewSize/sizeof(CHAR16), Node2->FullName);
H A DCp.c309 UINTN NewSize; local
361 NewSize = StrSize(CleanFilePathStr);
362 NewSize += StrSize(Node->FullName);
363 NewSize += (Cwd == NULL)? 0 : (StrSize(Cwd) + sizeof(CHAR16));
364 if (NewSize > PathSize) {
365 PathSize = NewSize;
H A DMv.c176 UINTN NewSize; local
218 NewSize = StrSize(Cwd);
219 NewSize += StrSize(DestParameter);
220 DestPath = AllocateZeroPool(NewSize);
225 StrCpyS(DestPath, NewSize / sizeof(CHAR16), Cwd);
227 StrCatS(DestPath, NewSize / sizeof(CHAR16), L"\\");
231 StrCatS(DestPath, NewSize / sizeof(CHAR16), DestParameter);
385 UINTN NewSize; local
399 NewSize = StrSize(DestPath);
400 NewSize
[all...]
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
H A DMalloc.c192 the size specified by NewSize.
207 If NewSize is zero and Ptr is not a null pointer, the object it points to
214 The following combinations of Ptr and NewSize can occur:<BR>
215 Ptr NewSize<BR>
218 - NULL > 0 Same as malloc(NewSize)
220 - 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
226 @param NewSize Size, in bytes, of the new object to allocate space for.
230 region of the requested size is returned. If NewSize i
239 size_t NewSize; local
[all...]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/
H A DFor.c307 UINTN NewSize; local
414 NewSize = StrSize(ArgSet);
415 NewSize += sizeof(SHELL_FOR_INFO)+StrSize(gEfiShellParametersProtocol->Argv[1]);
416 Info = AllocateZeroPool(NewSize);
420 NewSize = StrSize(gEfiShellParametersProtocol->Argv[1]);
421 CopyMem(Info->Set+(StrSize(ArgSet)/sizeof(Info->Set[0])), gEfiShellParametersProtocol->Argv[1], NewSize);
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/
H A DMemoryAllocationLib.c656 Allocates and zeros the number bytes specified by NewSize from memory of the type
658 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
660 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
663 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
668 @param NewSize The size, in bytes, of the buffer to reallocate.
679 IN UINTN NewSize,
685 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
687 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
696 Allocates and zeros the number bytes specified by NewSize from memory of type
698 NewSize byte
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.c665 Allocates and zeros the number bytes specified by NewSize from memory of the type
667 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
669 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
672 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
677 @param NewSize The size, in bytes, of the buffer to reallocate.
688 IN UINTN NewSize,
694 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
696 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
705 Allocates and zeros the number bytes specified by NewSize from memory of type
707 NewSize byte
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.c726 Allocates and zeros the number bytes specified by NewSize from memory of the type
728 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
730 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
733 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
738 @param NewSize The size, in bytes, of the buffer to reallocate.
749 IN UINTN NewSize,
755 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
757 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
766 Allocates and zeros the number bytes specified by NewSize from memory of type
768 NewSize byte
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.c780 Allocates and zeros the number bytes specified by NewSize from memory of the type
782 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
784 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
787 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
792 @param NewSize The size, in bytes, of the buffer to reallocate.
803 IN UINTN NewSize,
809 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
811 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
820 Allocates and zeros the number bytes specified by NewSize from memory of type
822 NewSize byte
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.c812 Allocates and zeros the number bytes specified by NewSize from memory of the type
814 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
816 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
819 If the allocation of the new buffer is successful and the smaller of NewSize
824 @param NewSize The size, in bytes, of the buffer to reallocate.
835 IN UINTN NewSize,
841 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
843 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
852 Allocates and zeros the number bytes specified by NewSize from memory of type
854 NewSize byte
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/UefiFileHandleLib/
H A DUefiFileHandleLib.c714 UINTN NewSize; local
751 NewSize = *CurrentSize;
752 while (NewSize < (DestinationStartSize + Count)) {
753 NewSize += 2 * Count;
755 *Destination = ReallocatePool(*CurrentSize, NewSize, *Destination);
756 *CurrentSize = NewSize;
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/
H A DMemoryAllocationLib.c663 Allocates and zeros the number bytes specified by NewSize from memory of the type
665 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
667 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
670 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
675 @param NewSize The size, in bytes, of the buffer to reallocate.
686 IN UINTN NewSize,
692 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
694 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
703 Allocates and zeros the number bytes specified by NewSize from memory of type
705 NewSize byte
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/OvmfPkg/Library/SerializeVariablesLib/
H A DSerializeVariablesLib.c318 UINTN NewSize; local
320 NewSize = Instance->DataSize + Size;
321 if (NewSize <= Instance->BufferSize) {
328 NewSize = 2 * NewSize;
330 NewBuffer = AllocatePool (NewSize);
341 Instance->BufferSize = NewSize;
355 UINTN NewSize; local
360 NewSize = Instance->DataSize + Size;
369 Instance->DataSize = NewSize;
[all...]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
H A DFirmwareVolumeBuffer.c395 UINTN NewSize; local
422 NewSize = OldSize + (BlockCount * blk->Length);
424 NewFv = CommonLibBinderAllocate (NewSize);
443 hdr->FvLength = NewSize;
461 (NewSize - OldSize),
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/
H A DVarCheckHiiGen.c428 Allocates and zeros the number bytes specified by NewSize from memory of type
430 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
432 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
435 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
439 @param NewSize The size, in bytes, of the buffer to reallocate.
449 IN UINTN NewSize,
455 NewBuffer = InternalVarCheckAllocateZeroPool (NewSize);
457 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
447 InternalVarCheckReallocatePool( IN UINTN OldSize, IN UINTN NewSize, IN VOID *OldBuffer OPTIONAL ) argument
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellBcfgCommandLib/
H A DUefiShellBcfgCommandLib.c104 UINTN NewSize; local
113 NewSize = 0;
142 NewSize = OriginalSize - OriginalOptionDataSize + DataSize;
143 NewData = AllocateCopyPool(NewSize, OriginalData);
159 NewSize,
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/
H A DFileHandleWrappers.c959 UINTN NewSize; local
969 NewSize = 0;
971 Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffer);
973 NewBuffer = AllocateZeroPool(NewSize + sizeof(CHAR16));
977 Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffer);
1060 UINTN NewSize; local
1064 NewSize = 0;
1066 Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffer);
1068 NewBuffer = AllocateZeroPool(NewSize + *BufferSize + sizeof(CHAR16));
1069 Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffe
1107 UINTN NewSize; local
[all...]
H A DShell.c1064 UINTN NewSize; local
1075 NewSize = StrSize(ShellInfoObject.ShellInitSettings.FileName);
1077 NewSize += StrSize(ShellInfoObject.ShellInitSettings.FileOptions) + sizeof(CHAR16);
1079 FileStringPath = AllocateZeroPool(NewSize);
1083 StrCpyS(FileStringPath, NewSize/sizeof(CHAR16), ShellInfoObject.ShellInitSettings.FileName);
1085 StrnCatS(FileStringPath, NewSize/sizeof(CHAR16), L" ", NewSize/sizeof(CHAR16) - StrLen(FileStringPath) -1);
1086 StrnCatS(FileStringPath, NewSize/sizeof(CHAR16), ShellInfoObject.ShellInitSettings.FileOptions, NewSize/sizeof(CHAR16) - StrLen(FileStringPath) -1);
1137 NewSize
1478 UINTN NewSize; local
[all...]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiHandleParsingLib/
H A DUefiHandleParsingLib.c469 UINTN NewSize; local
503 NewSize = Size - StrSize(RetVal);
506 NewSize,
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellCommandLib/
H A DConsistMapping.c1483 UINTN NewSize; local
1531 NewSize = (Str.Len + 1) * sizeof (CHAR16);
1532 Str.Str = ReallocatePool (Str.Len, NewSize, Str.Str);
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/
H A DFileBuffer.c3073 UINTN NewSize; local
3083 NewSize = OldSize + (ReplaceLen - SearchLen);
3089 if (FileBuffer.CurrentLine->TotalSize + 1 <= NewSize) {
3092 2 * NewSize,
3095 FileBuffer.CurrentLine->TotalSize = NewSize - 1;
3104 Buffer = FileBuffer.CurrentLine->Buffer + (NewSize - 1);
3259 UINTN NewSize; local
3290 NewSize = OldSize + (ReplaceLen - SearchLen);
3295 if (Line->TotalSize + 1 <= NewSize) {
3298 2 * NewSize,
[all...]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Console/ConSplitterDxe/
H A DConSplitter.c2106 UINTN NewSize; local
2115 NewSize = Private->TextOutListCount * sizeof (INT32);
2117 TotalSize = NewSize * (Private->TextOutQueryDataCount);
2151 NewStepSize = NewSize / sizeof(INT32);

Completed in 297 milliseconds

12