Lines Matching refs:free
142 Cell* free; // pointer to the first free cell member
361 for (cell = hd->free; cell != NULL; cell = cell->next) in OSAllocFromHeap()
383 hd->free = DLExtract(hd->free, cell); in OSAllocFromHeap()
406 ASSERTMSG(hd->free == cell, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OSAllocFromHeap()
407 hd->free = newCell; in OSAllocFromHeap()
484 for (cell = hd->free; cell; cell = cell->next) in OSAllocFixed()
502 hd->free = DLExtract(hd->free, cell); // Note cell->next is intact. XXX in OSAllocFixed()
528 hd->free = newCell; // new head in OSAllocFixed()
612 hd->free = DLInsert(hd->free, cell); in OSFreeToHeap()
676 hd->free = hd->allocated = NULL; in OSInitAlloc()
734 ASSERTMSG(!DLOverlap(HeapArray[heap].free, start, end), in OSCreateHeap()
757 hd->free = cell; in OSCreateHeap()
802 size = DLSize(hd->free); in OSDestroyHeap()
811 hd->free = hd->allocated = NULL; in OSDestroyHeap()
863 ASSERTMSG(!DLOverlap(HeapArray[i].free, start, end), in OSAddToHeap()
879 hd->free = DLInsert(hd->free, cell); in OSAddToHeap()
908 long free = 0; in OSCheckHeap() local
934 CHECK(hd->free == NULL || hd->free->prev == NULL); in OSCheckHeap()
935 for (cell = hd->free; cell; cell = cell->next) in OSCheckHeap()
945 free += cell->size - HEADERSIZE; in OSCheckHeap()
955 return free; in OSCheckHeap()
1043 for (cell = hd->free; cell; cell = cell->next) in OSDumpHeap()