/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/ |
EfiLibAllocate.c | 27 IN UINTN AllocationSize
37 AllocationSize - The size to allocate
48 gBS->AllocatePool (EfiBootServicesData, AllocationSize, &Memory);
54 IN UINTN AllocationSize
64 AllocationSize - The size to allocate
75 gBS->AllocatePool (EfiRuntimeServicesData, AllocationSize, &Memory);
81 IN UINTN AllocationSize
91 AllocationSize - The size to allocate
101 Memory = EfiLibAllocatePool (AllocationSize);
103 gBS->SetMem (Memory, AllocationSize, 0); [all...] |
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/ |
DebugUncachedMemoryAllocationLib.c | 307 IN UINTN AllocationSize,
322 AlignedAddress = UncachedInternalAllocateAlignedPages (PoolType, EFI_SIZE_TO_PAGES (AllocationSize), Alignment);
327 AddPagesToList ((VOID *)(UINTN)ConvertToPhysicalAddress (AlignedAddress), (VOID *)(UINTN)AlignedAddress, EFI_SIZE_TO_PAGES (AllocationSize));
335 IN UINTN AllocationSize,
339 return UncachedInternalAllocateAlignedPool (EfiBootServicesData, AllocationSize, Alignment);
345 IN UINTN AllocationSize,
349 return UncachedInternalAllocateAlignedPool (EfiRuntimeServicesData, AllocationSize, Alignment);
355 IN UINTN AllocationSize,
359 return UncachedInternalAllocateAlignedPool (EfiReservedMemoryType, AllocationSize, Alignment);
365 IN UINTN AllocationSize,
[all...] |
/device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/ |
UncachedMemoryAllocationLib.c | 384 IN UINTN AllocationSize,
399 AlignedAddress = UncachedInternalAllocateAlignedPages (PoolType, EFI_SIZE_TO_PAGES (AllocationSize), Alignment);
410 IN UINTN AllocationSize,
414 return UncachedInternalAllocateAlignedPool (EfiBootServicesData, AllocationSize, Alignment);
420 IN UINTN AllocationSize,
424 return UncachedInternalAllocateAlignedPool (EfiRuntimeServicesData, AllocationSize, Alignment);
430 IN UINTN AllocationSize,
434 return UncachedInternalAllocateAlignedPool (EfiReservedMemoryType, AllocationSize, Alignment);
440 IN UINTN AllocationSize,
445 Memory = UncachedInternalAllocateAlignedPool (PoolType, AllocationSize, Alignment); [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
AllocationStats.java | 38 private final long allocationSize; 44 * ({@code allocationCount}), cumulative size of the allocations ({@code allocationSize}) and the 47 AllocationStats(int allocationCount, long allocationSize, int reps) { 48 this(allocationCount, allocationSize, reps, ImmutableMultiset.<Allocation>of()); 60 private AllocationStats(int allocationCount, long allocationSize, int reps, 64 checkArgument(allocationSize >= 0, "allocationSize (%s) was negative", allocationSize); 65 this.allocationSize = allocationSize; [all...] |
AggregateAllocationsRecorder.java | 32 private final AtomicLong allocationSize = new AtomicLong(); 40 allocationSize.getAndAdd(size); 52 allocationSize.set(0); 59 return new AllocationStats(allocationCount.get(), allocationSize.get(), reps);
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/ |
MemoryAllocationLib.c | 310 Allocates the number bytes specified by AllocationSize of a certain pool type and returns a
311 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
315 @param AllocationSize The number of bytes to allocate.
323 IN UINTN AllocationSize
331 return InternalAllocatePages (MemoryType, EFI_SIZE_TO_PAGES (AllocationSize));
337 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
338 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
341 @param AllocationSize The number of bytes to allocate.
349 IN UINTN AllocationSize
355 Status = PeiServicesAllocatePool (AllocationSize, &Buffer); [all...] |
/device/linaro/bootloader/edk2/ArmPkg/Include/Library/ |
UncachedMemoryAllocationLib.h | 230 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
231 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
234 @param AllocationSize The number of bytes to allocate.
242 IN UINTN AllocationSize
248 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData and returns
249 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
252 @param AllocationSize The number of bytes to allocate.
260 IN UINTN AllocationSize
266 Allocates the number bytes specified by AllocationSize of type EfieservedMemoryType and returns
267 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/ |
EdkIIGlueMemoryAllocationLib.h | 208 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
209 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
212 @param AllocationSize The number of bytes to allocate.
220 IN UINTN AllocationSize
226 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData and returns
227 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
230 @param AllocationSize The number of bytes to allocate.
238 IN UINTN AllocationSize
244 Allocates the number bytes specified by AllocationSize of type EfieservedMemoryType and returns
245 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/ |
MemoryAllocationLib.c | 349 Allocates the number bytes specified by AllocationSize of a certain pool type and returns a
350 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
354 @param AllocationSize The number of bytes to allocate.
362 IN UINTN AllocationSize
368 Status = (gBS->AllocatePool) (MemoryType, AllocationSize, &Memory);
378 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
379 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
382 @param AllocationSize The number of bytes to allocate.
390 IN UINTN AllocationSize
393 return InternalAllocatePool (EfiBootServicesData, AllocationSize);
[all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
MemoryAllocationLib.c | 359 Allocates the number bytes specified by AllocationSize of a certain pool type and returns a
360 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
364 @param AllocationSize The number of bytes to allocate.
372 IN UINTN AllocationSize
380 Status = CoreAllocatePool (MemoryType, AllocationSize, &Memory);
390 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
391 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
394 @param AllocationSize The number of bytes to allocate.
402 IN UINTN AllocationSize
405 return InternalAllocatePool (EfiBootServicesData, AllocationSize);
[all...] |
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/ |
MemoryAllocationLib.c | 359 Allocates the number bytes specified by AllocationSize of a certain pool type and returns a
360 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
364 @param AllocationSize The number of bytes to allocate.
372 IN UINTN AllocationSize
378 Status = gBS->AllocatePool (MemoryType, AllocationSize, &Memory);
388 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
389 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
392 @param AllocationSize The number of bytes to allocate.
400 IN UINTN AllocationSize
403 return InternalAllocatePool (EfiBootServicesData, AllocationSize);
[all...] |
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
MemoryAllocationLib.c | 24 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a 25 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is 28 @param AllocationSize The number of bytes to allocate. 36 IN UINTN AllocationSize 39 return (VOID*) malloc (AllocationSize); 46 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the 47 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a 51 @param AllocationSize The number of bytes to allocate and zero. 59 IN UINTN AllocationSize 64 Buffer = AllocatePool (AllocationSize); [all...] |
/device/linaro/bootloader/edk2/OvmfPkg/Library/LockBoxLib/ |
LockBoxBase.c | 23 Allocates the number bytes specified by AllocationSize of type
25 If AllocationSize is 0, then a valid buffer of 0 size is
29 @param AllocationSize The number of bytes to allocate.
37 IN UINTN AllocationSize
|
LockBoxLib.h | 35 Allocates the number bytes specified by AllocationSize of type
37 If AllocationSize is 0, then a valid buffer of 0 size is
41 @param AllocationSize The number of bytes to allocate.
49 IN UINTN AllocationSize
|
LockBoxDxe.c | 90 Allocates the number bytes specified by AllocationSize of type
92 If AllocationSize is 0, then a valid buffer of 0 size is
96 @param AllocationSize The number of bytes to allocate.
104 IN UINTN AllocationSize
107 return AllocateMemoryBelow4G (EfiACPIMemoryNVS, AllocationSize);
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/ |
MemoryAllocationLib.c | 456 Allocates the number bytes specified by AllocationSize of a certain pool type and returns a
457 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
461 @param AllocationSize The number of bytes to allocate.
469 IN UINTN AllocationSize
477 return InternalAllocatePages (MemoryType, EFI_SIZE_TO_PAGES (AllocationSize));
483 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
484 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
487 @param AllocationSize The number of bytes to allocate.
495 IN UINTN AllocationSize
501 Status = PeiServicesAllocatePool (AllocationSize, &Buffer); [all...] |
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/ |
MemoryAllocationLib.c | 359 Allocates the number bytes specified by AllocationSize of a certain pool type and returns a
360 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
364 @param AllocationSize The number of bytes to allocate.
372 IN UINTN AllocationSize
375 return gEmuThunk->Malloc (AllocationSize);
381 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
382 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
385 @param AllocationSize The number of bytes to allocate.
393 IN UINTN AllocationSize
396 return InternalAllocatePool (EfiBootServicesData, AllocationSize);
[all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
MemoryAllocationLib.c | 420 Allocates the number bytes specified by AllocationSize of a certain pool type and returns a
421 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
425 @param AllocationSize The number of bytes to allocate.
433 IN UINTN AllocationSize
441 Status = SmmAllocatePool (MemoryType, AllocationSize, &Memory);
451 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData and returns a
452 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
455 @param AllocationSize The number of bytes to allocate.
463 IN UINTN AllocationSize
466 return InternalAllocatePool (EfiRuntimeServicesData, AllocationSize);
[all...] |
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/ |
MemoryAllocationLib.c | 501 Allocates the number bytes specified by AllocationSize of a certain pool type
502 and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
507 @param AllocationSize The number of bytes to allocate.
515 IN UINTN AllocationSize
521 Status = gSmst->SmmAllocatePool (MemoryType, AllocationSize, &Memory);
531 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData
532 and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
536 @param AllocationSize The number of bytes to allocate.
544 IN UINTN AllocationSize
547 return InternalAllocatePool (EfiRuntimeServicesData, AllocationSize);
[all...] |
/device/linaro/bootloader/edk2/MdePkg/Include/Library/ |
MemoryAllocationLib.h | 206 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
207 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
210 @param AllocationSize The number of bytes to allocate.
218 IN UINTN AllocationSize
224 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData and returns
225 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
228 @param AllocationSize The number of bytes to allocate.
236 IN UINTN AllocationSize
242 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType and returns
243 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/ |
VarCheckHiiGen.h | 47 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the
48 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
52 @param AllocationSize The number of bytes to allocate and zero.
59 IN UINTN AllocationSize
|
/external/swiftshader/src/OpenGL/compiler/ |
PoolAlloc.cpp | 223 // much memory the caller asked for. allocationSize is the total 226 size_t allocationSize = TAllocation::allocationSize(numBytes); 228 if (allocationSize < numBytes) 235 if (allocationSize <= pageSize - currentPageOffset) { 240 currentPageOffset += allocationSize; 246 if (allocationSize > pageSize - headerSkip) { 251 size_t numBytesToAlloc = allocationSize + headerSkip; 253 if (numBytesToAlloc < allocationSize) 288 currentPageOffset = (headerSkip + allocationSize + alignmentMask) & ~alignmentMask [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/ |
RtDevicePath.c | 38 IN UINTN AllocationSize
48 AllocationSize - The size to allocate
59 gBS->AllocatePool (EfiBootServicesData, AllocationSize, &Memory);
66 IN UINTN AllocationSize,
78 AllocationSize - The size to allocate
91 gBS->AllocatePool (EfiBootServicesData, AllocationSize, &Memory);
93 gBS->CopyMem (Memory, Buffer, AllocationSize);
102 IN UINTN AllocationSize
112 AllocationSize - The size to allocate
122 Memory = InternalAllocatePool (AllocationSize);
[all...] |
/prebuilts/ndk/r13/sources/third_party/shaderc/third_party/glslang/glslang/MachineIndependent/ |
PoolAlloc.cpp | 268 // much memory the caller asked for. allocationSize is the total 271 size_t allocationSize = TAllocation::allocationSize(numBytes); 283 if (currentPageOffset + allocationSize <= pageSize) { 288 currentPageOffset += allocationSize; 294 if (allocationSize + headerSkip > pageSize) { 299 size_t numBytesToAlloc = allocationSize + headerSkip; 332 currentPageOffset = (headerSkip + allocationSize + alignmentMask) & ~alignmentMask;
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/ |
MemoryAllocationLib.c | 164 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a
165 pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
168 @param AllocationSize The number of bytes to allocate.
176 IN UINTN AllocationSize
187 if (AllocationSize > 0x10000) {
192 Hob = (EFI_HOB_MEMORY_POOL *)CreateHob (EFI_HOB_TYPE_MEMORY_POOL, (UINT16)(sizeof (EFI_HOB_TYPE_MEMORY_POOL) + AllocationSize));
|