Home
last modified time | relevance | path

Searched refs:UFS_PEIM_MEM_UNIT (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/
DUfsHcMem.c50 ASSERT (UFS_PEIM_MEM_UNIT * 8 <= EFI_PAGE_SIZE); in UfsPeimAllocMemBlock()
54 Block->BitsLen = Block->BufLen / (UFS_PEIM_MEM_UNIT * 8); in UfsPeimAllocMemBlock()
168 return Block->Buf + (StartByte * 8 + StartBit) * UFS_PEIM_MEM_UNIT; in UfsPeimAllocMemFromBlock()
345 Mem = UfsPeimAllocMemFromBlock (Block, AllocSize / UFS_PEIM_MEM_UNIT); in UfsPeimAllocateMem()
378 Mem = UfsPeimAllocMemFromBlock (NewBlock, AllocSize / UFS_PEIM_MEM_UNIT); in UfsPeimAllocateMem()
423 Byte = ((ToFree - Block->Buf) / UFS_PEIM_MEM_UNIT) / 8; in UfsPeimFreeMem()
424 Bit = ((ToFree - Block->Buf) / UFS_PEIM_MEM_UNIT) % 8; in UfsPeimFreeMem()
429 for (Count = 0; Count < (AllocSize / UFS_PEIM_MEM_UNIT); Count++) { in UfsPeimFreeMem()
DUfsHcMem.h41 #define UFS_PEIM_MEM_UNIT 128 macro
43 #define UFS_PEIM_MEM_UNIT_MASK (UFS_PEIM_MEM_UNIT - 1)