Lines Matching defs:AllocationSize

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);
365 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData and returns
366 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
369 @param AllocationSize The number of bytes to allocate.
377 IN UINTN AllocationSize
380 return InternalAllocatePool (EfiRuntimeServicesData, AllocationSize);
386 Allocates the number bytes specified by AllocationSize of type EfieservedMemoryType and returns
387 a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is
390 @param AllocationSize The number of bytes to allocate.
398 IN UINTN AllocationSize
401 return InternalAllocatePool (EfiReservedMemoryType, AllocationSize);
407 Allocates the number bytes specified by AllocationSize of a certian pool type, clears the buffer
408 with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a valid
413 @param AllocationSize The number of bytes to allocate and zero.
421 IN UINTN AllocationSize
426 Memory = InternalAllocatePool (PoolType, AllocationSize);
428 Memory = ZeroMem (Memory, AllocationSize);
436 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the
437 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
441 @param AllocationSize The number of bytes to allocate and zero.
449 IN UINTN AllocationSize
454 Memory = AllocatePool (AllocationSize);
456 Memory = ZeroMem (Memory, AllocationSize);
464 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData, clears the
465 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
469 @param AllocationSize The number of bytes to allocate and zero.
477 IN UINTN AllocationSize
480 return InternalAllocateZeroPool (EfiRuntimeServicesData, AllocationSize);
486 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType, clears the
487 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
491 @param AllocationSize The number of bytes to allocate and zero.
499 IN UINTN AllocationSize
502 return InternalAllocateZeroPool (EfiReservedMemoryType, AllocationSize);
508 Allocates the number bytes specified by AllocationSize of a certian pool type, copies
509 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
510 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
513 If AllocationSize is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().
516 @param AllocationSize The number of bytes to allocate and zero.
525 IN UINTN AllocationSize,
532 ASSERT (AllocationSize <= (MAX_ADDRESS - (UINTN) Buffer + 1));
534 Memory = InternalAllocatePool (PoolType, AllocationSize);
536 Memory = CopyMem (Memory, Buffer, AllocationSize);
544 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, copies
545 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
546 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
549 If AllocationSize is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().
551 @param AllocationSize The number of bytes to allocate and zero.
560 IN UINTN AllocationSize,
567 ASSERT (AllocationSize <= (MAX_ADDRESS - (UINTN) Buffer + 1));
569 Memory = AllocatePool (AllocationSize);
571 Memory = CopyMem (Memory, Buffer, AllocationSize);
579 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData, copies
580 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
581 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
584 If AllocationSize is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().
586 @param AllocationSize The number of bytes to allocate and zero.
595 IN UINTN AllocationSize,
599 return InternalAllocateCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer);
605 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType, copies
606 AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the
607 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
610 If AllocationSize is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().
612 @param AllocationSize The number of bytes to allocate and zero.
621 IN UINTN AllocationSize,
625 return InternalAllocateCopyPool (EfiReservedMemoryType, AllocationSize, Buffer);
654 Allocates the number bytes specified by AllocationSize of a certain pool type with an alignment
655 specified by Alignment. The allocated buffer is returned. If AllocationSize is 0, then a valid
661 @param AllocationSize The number of bytes to allocate.
671 IN UINTN AllocationSize,
690 // Make sure that AllocationSize plus AlignmentMask does not overflow.
692 ASSERT (AllocationSize <= (MAX_ADDRESS - AlignmentMask));
694 RawAddress = InternalAllocatePool (PoolType, AllocationSize + AlignmentMask);
704 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData with an
705 alignment specified by Alignment. The allocated buffer is returned. If AllocationSize is 0,
710 @param AllocationSize The number of bytes to allocate.
720 IN UINTN AllocationSize,
740 // Make sure that AllocationSize plus AlignmentMask does not overflow.
742 ASSERT (AllocationSize <= (MAX_ADDRESS - AlignmentMask));
744 RawAddress = AllocatePool (AllocationSize + AlignmentMask);
754 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData with an
755 alignment specified by Alignment. The allocated buffer is returned. If AllocationSize is 0,
760 @param AllocationSize The number of bytes to allocate.
770 IN UINTN AllocationSize,
774 return InternalAllocateAlignedPool (EfiRuntimeServicesData, AllocationSize, Alignment);
780 Allocates the number bytes specified by AllocationSize of type EfieservedMemoryType with an
781 alignment specified by Alignment. The allocated buffer is returned. If AllocationSize is 0,
786 @param AllocationSize The number of bytes to allocate.
796 IN UINTN AllocationSize,
800 return InternalAllocateAlignedPool (EfiReservedMemoryType, AllocationSize, Alignment);
806 Allocates the number bytes specified by AllocationSize of a certain pool type with an alignment
808 buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there is not
813 @param AllocationSize The number of bytes to allocate.
823 IN UINTN AllocationSize,
829 Memory = InternalAllocateAlignedPool (PoolType, AllocationSize, Alignment);
831 Memory = ZeroMem (Memory, AllocationSize);
839 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData with an
841 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
846 @param AllocationSize The number of bytes to allocate.
856 IN UINTN AllocationSize,
862 Memory = AllocateAlignedPool (AllocationSize, Alignment);
864 Memory = ZeroMem (Memory, AllocationSize);
872 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData with an
874 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
879 @param AllocationSize The number of bytes to allocate.
889 IN UINTN AllocationSize,
893 return InternalAllocateAlignedZeroPool (EfiRuntimeServicesData, AllocationSize, Alignment);
899 Allocates the number bytes specified by AllocationSize of type EfieservedMemoryType with an
901 allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there
906 @param AllocationSize The number of bytes to allocate.
916 IN UINTN AllocationSize,
920 return InternalAllocateAlignedZeroPool (EfiReservedMemoryType, AllocationSize, Alignment);
926 Allocates the number bytes specified by AllocationSize of a certain pool type with an alignment
927 specified by Alignment. The allocated buffer is returned. If AllocationSize is 0, then a valid
933 @param AllocationSize The number of bytes to allocate.
944 IN UINTN AllocationSize,
952 ASSERT (AllocationSize <= (MAX_ADDRESS - (UINTN) Buffer + 1));
954 Memory = InternalAllocateAlignedPool (PoolType, AllocationSize, Alignment);
956 Memory = CopyMem (Memory, Buffer, AllocationSize);
964 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData type with an
965 alignment specified by Alignment. The allocated buffer is returned. If AllocationSize is 0,
970 @param AllocationSize The number of bytes to allocate.
981 IN UINTN AllocationSize,
989 ASSERT (AllocationSize <= (MAX_ADDRESS - (UINTN) Buffer + 1));
991 Memory = AllocateAlignedPool (AllocationSize, Alignment);
993 Memory = CopyMem (Memory, Buffer, AllocationSize);
1001 Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData type with an
1002 alignment specified by Alignment. The allocated buffer is returned. If AllocationSize is 0,
1007 @param AllocationSize The number of bytes to allocate.
1018 IN UINTN AllocationSize,
1023 return InternalAllocateAlignedCopyPool (EfiRuntimeServicesData, AllocationSize, Buffer, Alignment);
1029 Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType type with an
1030 alignment specified by Alignment. The allocated buffer is returned. If AllocationSize is 0,
1035 @param AllocationSize The number of bytes to allocate.
1046 IN UINTN AllocationSize,
1051 return InternalAllocateAlignedCopyPool (EfiReservedMemoryType, AllocationSize, Buffer, Alignment);