Lines Matching defs:AllocationSize

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);
411 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData and returns
412 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
415 @param AllocationSize The number of bytes to allocate.
423 IN UINTN AllocationSize
426 return InternalAllocatePool (EfiRuntimeServicesData, AllocationSize);
432 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType and returns
433 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
436 @param AllocationSize The number of bytes to allocate.
444 IN UINTN AllocationSize
447 return InternalAllocatePool (EfiReservedMemoryType, AllocationSize);
453 Allocates the number bytes specified by AllocationSize of a certain pool type, clears the buffer
454 with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a valid
459 @param AllocationSize The number of bytes to allocate and zero.
467 IN UINTN AllocationSize
472 Memory = InternalAllocatePool (PoolType, AllocationSize);
474 Memory = ZeroMem (Memory, AllocationSize);
482 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the
483 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
487 @param AllocationSize The number of bytes to allocate and zero.
495 IN UINTN AllocationSize
498 return InternalAllocateZeroPool (EfiBootServicesData, AllocationSize);
504 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData, clears the
505 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
509 @param AllocationSize The number of bytes to allocate and zero.
517 IN UINTN AllocationSize
520 return InternalAllocateZeroPool (EfiRuntimeServicesData, AllocationSize);
526 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType, clears the
527 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
531 @param AllocationSize The number of bytes to allocate and zero.
539 IN UINTN AllocationSize
542 return InternalAllocateZeroPool (EfiReservedMemoryType, AllocationSize);
548 Allocates the number bytes specified by AllocationSize of a certain pool type, copies
549 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
550 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
553 If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
556 @param AllocationSize The number of bytes to allocate and zero.
565 IN UINTN AllocationSize,
572 ASSERT (AllocationSize <= (MAX_ADDRESS - (UINTN) Buffer + 1));
574 Memory = InternalAllocatePool (PoolType, AllocationSize);
576 Memory = CopyMem (Memory, Buffer, AllocationSize);
584 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, copies
585 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
586 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
590 If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
592 @param AllocationSize The number of bytes to allocate and zero.
601 IN UINTN AllocationSize,
605 return InternalAllocateCopyPool (EfiBootServicesData, AllocationSize, Buffer);
611 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData, copies
612 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
613 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
617 If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
619 @param AllocationSize The number of bytes to allocate and zero.
628 IN UINTN AllocationSize,
632 return InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer);
638 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType, copies
639 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
640 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
644 If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
646 @param AllocationSize The number of bytes to allocate and zero.
655 IN UINTN AllocationSize,
659 return InternalAllocateCopyPool (EfiReservedMemoryType, AllocationSize, Buffer);