Lines Matching defs:AllocationSize

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);
511 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData and returns
512 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
515 @param AllocationSize The number of bytes to allocate.
523 IN UINTN AllocationSize
526 return InternalAllocatePool (EfiRuntimeServicesData, AllocationSize);
532 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType and returns
533 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
536 @param AllocationSize The number of bytes to allocate.
544 IN UINTN AllocationSize
547 return InternalAllocatePool (EfiReservedMemoryType, AllocationSize);
553 Allocates the number bytes specified by AllocationSize of a certain pool type, clears the buffer
554 with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a valid
559 @param AllocationSize The number of bytes to allocate and zero.
567 IN UINTN AllocationSize
572 Memory = InternalAllocatePool (PoolType, AllocationSize);
574 Memory = ZeroMem (Memory, AllocationSize);
582 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the
583 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
587 @param AllocationSize The number of bytes to allocate and zero.
595 IN UINTN AllocationSize
600 Memory = AllocatePool (AllocationSize);
602 Memory = ZeroMem (Memory, AllocationSize);
610 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData, clears the
611 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
615 @param AllocationSize The number of bytes to allocate and zero.
623 IN UINTN AllocationSize
626 return InternalAllocateZeroPool (EfiRuntimeServicesData, AllocationSize);
632 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType, clears the
633 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
637 @param AllocationSize The number of bytes to allocate and zero.
645 IN UINTN AllocationSize
648 return InternalAllocateZeroPool (EfiReservedMemoryType, AllocationSize);
654 Allocates the number bytes specified by AllocationSize of a certain pool type, copies
655 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
656 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
659 If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
662 @param AllocationSize The number of bytes to allocate and zero.
671 IN UINTN AllocationSize,
678 ASSERT (AllocationSize <= (MAX_ADDRESS - (UINTN) Buffer + 1));
680 Memory = InternalAllocatePool (PoolType, AllocationSize);
682 Memory = CopyMem (Memory, Buffer, AllocationSize);
690 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, copies
691 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
692 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
696 If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
698 @param AllocationSize The number of bytes to allocate and zero.
707 IN UINTN AllocationSize,
714 ASSERT (AllocationSize <= (MAX_ADDRESS - (UINTN) Buffer + 1));
716 Memory = AllocatePool (AllocationSize);
718 Memory = CopyMem (Memory, Buffer, AllocationSize);
726 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData, copies
727 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
728 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
732 If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
734 @param AllocationSize The number of bytes to allocate and zero.
743 IN UINTN AllocationSize,
747 return InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer);
753 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType, copies
754 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
755 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
759 If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
761 @param AllocationSize The number of bytes to allocate and zero.
770 IN UINTN AllocationSize,
774 return InternalAllocateCopyPool (EfiReservedMemoryType, AllocationSize, Buffer);