TianoCore EDK2 master
|
#include "EmmcBlockIoPei.h"
Go to the source code of this file.
Functions | |
EMMC_PEIM_MEM_BLOCK * | EmmcPeimAllocMemBlock (IN UINTN Pages) |
VOID | EmmcPeimFreeMemBlock (IN EMMC_PEIM_MEM_POOL *Pool, IN EMMC_PEIM_MEM_BLOCK *Block) |
VOID * | EmmcPeimAllocMemFromBlock (IN EMMC_PEIM_MEM_BLOCK *Block, IN UINTN Units) |
VOID | EmmcPeimInsertMemBlockToPool (IN EMMC_PEIM_MEM_BLOCK *Head, IN EMMC_PEIM_MEM_BLOCK *Block) |
BOOLEAN | EmmcPeimIsMemBlockEmpty (IN EMMC_PEIM_MEM_BLOCK *Block) |
EFI_STATUS | EmmcPeimInitMemPool (IN EMMC_PEIM_HC_PRIVATE_DATA *Private) |
EFI_STATUS | EmmcPeimFreeMemPool (IN EMMC_PEIM_MEM_POOL *Pool) |
VOID * | EmmcPeimAllocateMem (IN EMMC_PEIM_MEM_POOL *Pool, IN UINTN Size) |
VOID | EmmcPeimFreeMem (IN EMMC_PEIM_MEM_POOL *Pool, IN VOID *Mem, IN UINTN Size) |
Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EmmcHcMem.c.
VOID * EmmcPeimAllocateMem | ( | IN EMMC_PEIM_MEM_POOL * | Pool, |
IN UINTN | Size | ||
) |
Allocate some memory from the host controller's memory pool which can be used to communicate with host controller.
Pool | The host controller's memory pool. |
Size | Size of the memory to allocate. |
Definition at line 294 of file EmmcHcMem.c.
EMMC_PEIM_MEM_BLOCK * EmmcPeimAllocMemBlock | ( | IN UINTN | Pages | ) |
Allocate a block of memory to be used by the buffer pool.
Pages | How many pages to allocate. |
Definition at line 20 of file EmmcHcMem.c.
VOID * EmmcPeimAllocMemFromBlock | ( | IN EMMC_PEIM_MEM_BLOCK * | Block, |
IN UINTN | Units | ||
) |
Alloc some memory from the block.
Block | The memory block to allocate memory from. |
Units | Number of memory units to allocate. |
Definition at line 109 of file EmmcHcMem.c.
VOID EmmcPeimFreeMem | ( | IN EMMC_PEIM_MEM_POOL * | Pool, |
IN VOID * | Mem, | ||
IN UINTN | Size | ||
) |
Free the allocated memory back to the memory pool.
Pool | The memory pool of the host controller. |
Mem | The memory to free. |
Size | The size of the memory to free. |
Definition at line 366 of file EmmcHcMem.c.
VOID EmmcPeimFreeMemBlock | ( | IN EMMC_PEIM_MEM_POOL * | Pool, |
IN EMMC_PEIM_MEM_BLOCK * | Block | ||
) |
Free the memory block from the memory pool.
Pool | The memory pool to free the block from. |
Block | The memory block to free. |
Definition at line 88 of file EmmcHcMem.c.
EFI_STATUS EmmcPeimFreeMemPool | ( | IN EMMC_PEIM_MEM_POOL * | Pool | ) |
Release the memory management pool.
Pool | The memory pool to free. |
EFI_DEVICE_ERROR | Fail to free the memory pool. |
EFI_SUCCESS | The memory pool is freed. |
Definition at line 263 of file EmmcHcMem.c.
EFI_STATUS EmmcPeimInitMemPool | ( | IN EMMC_PEIM_HC_PRIVATE_DATA * | Private | ) |
Initialize the memory management pool for the host controller.
Private | The Emmc Peim driver private data. |
EFI_SUCCESS | The memory pool is initialized. |
Others | Fail to init the memory pool. |
Definition at line 223 of file EmmcHcMem.c.
VOID EmmcPeimInsertMemBlockToPool | ( | IN EMMC_PEIM_MEM_BLOCK * | Head, |
IN EMMC_PEIM_MEM_BLOCK * | Block | ||
) |
Insert the memory block to the pool's list of the blocks.
Head | The head of the memory pool's block list. |
Block | The memory block to insert. |
Definition at line 178 of file EmmcHcMem.c.
BOOLEAN EmmcPeimIsMemBlockEmpty | ( | IN EMMC_PEIM_MEM_BLOCK * | Block | ) |
Is the memory block empty?
Block | The memory block to check. |
TRUE | The memory block is empty. |
FALSE | The memory block isn't empty. |
Definition at line 198 of file EmmcHcMem.c.