Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DPool.c130 IN UINTN PoolIndex, in InternalAllocPoolByIndex() argument
141 ASSERT (PoolIndex <= MAX_POOL_INDEX); in InternalAllocPoolByIndex()
144 if (PoolIndex == MAX_POOL_INDEX) { in InternalAllocPoolByIndex()
150 } else if (!IsListEmpty (&mSmmPoolLists[SmmPoolType][PoolIndex])) { in InternalAllocPoolByIndex()
151 Hdr = BASE_CR (GetFirstNode (&mSmmPoolLists[SmmPoolType][PoolIndex]), FREE_POOL_HEADER, Link); in InternalAllocPoolByIndex()
154 Status = InternalAllocPoolByIndex (PoolType, PoolIndex + 1, &Hdr); in InternalAllocPoolByIndex()
159 InsertHeadList (&mSmmPoolLists[SmmPoolType][PoolIndex], &Hdr->Link); in InternalAllocPoolByIndex()
165 Hdr->Header.Size = MIN_POOL_SIZE << PoolIndex; in InternalAllocPoolByIndex()
187 UINTN PoolIndex; in InternalFreePoolByIndex() local
196 PoolIndex = (UINTN) (HighBitSet32 ((UINT32)FreePoolHdr->Header.Size) - MIN_POOL_SHIFT); in InternalFreePoolByIndex()
[all …]