/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
H A D | SetSize.c | 35 UINTN NewSize; local 67 NewSize = 0; 73 NewSize = 0; 75 NewSize = ShellStrToUintn(Temp1); 91 Status = FileHandleSetSize(FileHandle, NewSize);
|
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/StdLib/ |
H A D | Malloc.c | 144 the size specified by NewSize. 159 If NewSize is zero and Ptr is not a null pointer, the object it points to 166 The following combinations of Ptr and NewSize can occur:<BR> 167 Ptr NewSize<BR> 170 - NULL > 0 Same as malloc(NewSize) 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 178 @param NewSize Size, in bytes, of the new object to allocate space for. 182 region of the requested size is returned. If NewSize i 186 realloc(void *Ptr, size_t NewSize) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Application/Shell/ |
H A D | ShellEnvVar.c | 300 UINTN NewSize; local 325 NewSize = StrSize(CurrentString); 326 NewSize -= StrLen(Node->Key) - 1; 327 Node->Val = AllocateZeroPool(NewSize);
|
H A D | Shell.c | 790 UINTN NewSize; local 801 NewSize = StrSize(ShellInfoObject.ShellInitSettings.FileName); 803 NewSize += StrSize(ShellInfoObject.ShellInitSettings.FileOptions) + sizeof(CHAR16); 805 FileStringPath = AllocateZeroPool(NewSize); 858 NewSize = 0; 859 FileStringPath = StrnCatGrow(&FileStringPath, &NewSize, MapName, 0); 867 FileStringPath = StrnCatGrow(&FileStringPath, &NewSize, ((FILEPATH_DEVICE_PATH*)FilePath)->PathName, 0); 869 FileStringPath = StrnCatGrow(&FileStringPath, &NewSize, mStartupScript, 0); 1074 UINTN NewSize; local 1086 NewSize [all...] |
H A D | FileHandleWrappers.c | 1015 UINTN NewSize; local 1019 NewSize = 0; 1021 Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffer); 1023 NewBuffer = AllocateZeroPool(NewSize + *BufferSize + sizeof(CHAR16)); 1024 Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffer); 1027 while (((CHAR16*)NewBuffer)[NewSize/2] == CHAR_NULL) { 1031 NewSize -= 2; 1033 CopyMem((UINT8*)NewBuffer + NewSize + 2, Buffer, *BufferSize); 1062 UINTN NewSize; local 1066 NewSize [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/PeiMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 648 Allocates and zeros the number bytes specified by NewSize from memory of the type 650 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and 652 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not 655 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 660 @param NewSize The size, in bytes, of the buffer to reallocate. 671 IN UINTN NewSize, 677 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); 679 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 688 Allocates and zeros the number bytes specified by NewSize from memory of type 690 NewSize byte 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/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | For.c | 282 UINTN NewSize; local 385 NewSize = StrSize(ArgSet); 386 NewSize += sizeof(SHELL_FOR_INFO)+StrSize(gEfiShellParametersProtocol->Argv[1]); 387 Info = AllocateZeroPool(NewSize); 391 NewSize = StrSize(gEfiShellParametersProtocol->Argv[1]); 392 CopyMem(Info->Set+(StrSize(ArgSet)/sizeof(Info->Set[0])), gEfiShellParametersProtocol->Argv[1], NewSize);
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellLevel2CommandsLib/ |
H A D | Cp.c | 241 UINTN NewSize; local 283 NewSize = StrSize(DestDir); 284 NewSize += StrSize(Node->FullName); 285 NewSize += StrSize(Cwd); 286 if (NewSize > PathLen) { 287 PathLen = NewSize;
|
H A D | Mv.c | 141 UINTN NewSize; local 172 NewSize = StrSize(Cwd); 173 NewSize += StrSize(DestDir); 174 DestPath = AllocateZeroPool(NewSize); 260 UINTN NewSize; local 326 NewSize = StrSize(DestPath); 327 NewSize += StrSize(Node->FileName) + SIZE_OF_EFI_FILE_INFO + sizeof(CHAR16); 328 NewFileInfo = AllocateZeroPool(NewSize);
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 659 Allocates and zeros the number bytes specified by NewSize from memory of the type 661 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and 663 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not 666 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 671 @param NewSize The size, in bytes, of the buffer to reallocate. 682 IN UINTN NewSize, 688 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); 690 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 699 Allocates and zeros the number bytes specified by NewSize from memory of type 701 NewSize byte 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 | 762 Allocates and zeros the number bytes specified by NewSize from memory of the type 764 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and 766 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not 769 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 774 @param NewSize The size, in bytes, of the buffer to reallocate. 785 IN UINTN NewSize, 791 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); 793 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 802 Allocates and zeros the number bytes specified by NewSize from memory of type 804 NewSize byte 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 | 807 Allocates and zeros the number bytes specified by NewSize from memory of the type 809 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and 811 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not 814 If the allocation of the new buffer is successful and the smaller of NewSize 819 @param NewSize The size, in bytes, of the buffer to reallocate. 830 IN UINTN NewSize, 836 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); 838 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 847 Allocates and zeros the number bytes specified by NewSize from memory of type 849 NewSize byte 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/MdePkg/Library/UefiMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 659 Allocates and zeros the number bytes specified by NewSize from memory of the type 661 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and 663 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not 666 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize 671 @param NewSize The size, in bytes, of the buffer to reallocate. 682 IN UINTN NewSize, 688 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize); 690 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize)); 699 Allocates and zeros the number bytes specified by NewSize from memory of type 701 NewSize byte 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/OvmfPkg/Library/SerializeVariablesLib/ |
H A D | SerializeVariablesLib.c | 305 UINTN NewSize; local 307 NewSize = Instance->DataSize + Size; 308 if (NewSize <= Instance->BufferSize) { 315 NewSize = 2 * NewSize; 317 NewBuffer = AllocatePool (NewSize); 328 Instance->BufferSize = NewSize; 342 UINTN NewSize; local 347 NewSize = Instance->DataSize + Size; 356 Instance->DataSize = NewSize; [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiFileHandleLib/ |
H A D | UefiFileHandleLib.c | 725 UINTN NewSize; local 763 NewSize = *CurrentSize; 764 while (NewSize < (DestinationStartSize + Count)) { 765 NewSize += 2 * Count; 767 *Destination = ReallocatePool(*CurrentSize, NewSize, *Destination); 768 *CurrentSize = NewSize;
|
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Library/GenericBdsLib/ |
H A D | DevicePath.c | 1497 UINTN NewSize; local 1566 NewSize = (Str.Len + 1) * sizeof (CHAR16); 1567 Str.Str = ReallocatePool (NewSize, NewSize, Str.Str);
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/Common/ |
H A D | FirmwareVolumeBuffer.c | 366 UINTN NewSize; local 393 NewSize = OldSize + (BlockCount * blk->Length); 395 NewFv = CommonLibBinderAllocate (NewSize); 414 hdr->FvLength = NewSize; 432 (NewSize - OldSize),
|
/vbox/src/VBox/Devices/EFI/Firmware/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/ |
H A D | SecureBootConfigDevicePath.c | 1462 UINTN NewSize; local 1531 NewSize = (Str.Len + 1) * sizeof (CHAR16); 1532 Str.Str = ReallocatePool (NewSize, NewSize, Str.Str);
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiHandleParsingLib/ |
H A D | UefiHandleParsingLib.c | 188 UINTN NewSize; local 220 NewSize = Size - StrSize(RetVal); 223 NewSize,
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellCommandLib/ |
H A D | ConsistMapping.c | 1310 UINTN NewSize; local 1358 NewSize = (Str.Len + 1) * sizeof (CHAR16); 1359 Str.Str = ReallocatePool (Str.Len, NewSize, Str.Str);
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/ |
H A D | FileBuffer.c | 3058 UINTN NewSize; local 3068 NewSize = OldSize + (ReplaceLen - SearchLen); 3074 if (FileBuffer.CurrentLine->TotalSize + 1 <= NewSize) { 3077 2 * NewSize, 3080 FileBuffer.CurrentLine->TotalSize = NewSize - 1; 3089 Buffer = FileBuffer.CurrentLine->Buffer + (NewSize - 1); 3244 UINTN NewSize; local 3275 NewSize = OldSize + (ReplaceLen - SearchLen); 3280 if (Line->TotalSize + 1 <= NewSize) { 3283 2 * NewSize, [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Console/ConSplitterDxe/ |
H A D | ConSplitter.c | 2085 UINTN NewSize; local 2092 NewSize = Private->TextOutListCount * sizeof (INT32); 2094 TotalSize = NewSize * (Private->TextOutQueryDataCount); 2134 TextOutModeMap += NewSize;
|
/vbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellLib/ |
H A D | UefiShellLib.c | 2478 If the string would grow bigger than NewSize it will halt and return error. 2482 @param[in] NewSize The size in bytes of NewString. 2495 @retval EFI_BUFFER_TOO_SMALL NewSize was less than the minimum size to hold 2504 IN UINTN NewSize, 2535 NewString = SetMem16(NewString, NewSize, CHAR_NULL); 2546 if ((Size + (StrLen(Replace)*sizeof(CHAR16))) > NewSize) { 2553 if (Size + sizeof(CHAR16) > NewSize) { 3074 UINTN NewSize; local 3118 NewSize = *CurrentSize; 3119 while (NewSize < (DestinationStartSiz 2501 ShellCopySearchAndReplace( IN CHAR16 CONST *SourceString, IN OUT CHAR16 *NewString, IN UINTN NewSize, IN CONST CHAR16 *FindTarget, IN CONST CHAR16 *ReplaceWith, IN CONST BOOLEAN SkipPreCarrot, IN CONST BOOLEAN ParameterReplacing ) argument [all...] |
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/ |
H A D | device.c | 5319 UINT NewSize; local 5330 NewSize = This->NumberOfPalettes; 5332 NewSize *= 2; 5333 } while(PaletteNumber >= NewSize); 5334 palettes = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, This->palettes, sizeof(PALETTEENTRY*) * NewSize); 5340 This->NumberOfPalettes = NewSize;
|