Home | History | Annotate | Download | only in StdLib

Lines Matching defs:Head

44     the memory head structure, CPOOL_HEAD, containing the necessary

86 CPOOL_HEAD *Head;
101 Status = gBS->AllocatePool( EfiLoaderData, NodeSize, (void**)&Head);
108 assert(Head != NULL);
110 Head->Signature = CPOOL_HEAD_SIGNATURE;
111 Head->Size = NodeSize;
114 (void)InsertTailList(&MemPoolHead, (LIST_ENTRY *)Head);
117 RetVal = (void*)Head->Data;
118 DEBUG((DEBUG_POOL, " Head: %p, Returns %p\n", Head, RetVal));
171 CPOOL_HEAD *Head;
173 Head = BASE_CR(Ptr, CPOOL_HEAD, Data);
174 assert(Head != NULL);
175 DEBUG((DEBUG_POOL, "free(%p): Head: %p\n", Ptr, Head));
178 if (Head->Signature == CPOOL_HEAD_SIGNATURE) {
179 (void) RemoveEntryList((LIST_ENTRY *)Head); // Remove this node from the malloc pool
180 (void) gBS->FreePool (Head); // Now free the associated memory
185 Ptr, Head->Signature, CPOOL_HEAD_SIGNATURE));
237 CPOOL_HEAD *Head = NULL;
244 Head = BASE_CR (Ptr, CPOOL_HEAD, Data);
245 assert(Head != NULL);
246 if (Head->Signature != CPOOL_HEAD_SIGNATURE) {
249 Ptr, Head->Signature, CPOOL_HEAD_SIGNATURE));
252 OldSize = (size_t)Head->Size;
277 DEBUG((DEBUG_POOL, "0x%p = realloc(%p, %d): Head: %p NewSz: %d\n",
278 RetVal, Ptr, ReqSize, Head, NewSize));