Lines Matching refs:free
123 Cell *free; // pointer to the first free cell member
405 for (cell = hd->free; cell != NULL; cell = cell->next) in OS_AllocFromHeap()
429 hd->free = DLExtract(hd->free, cell); in OS_AllocFromHeap()
458 SDK_TASSERTMSG(hd->free == cell, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OS_AllocFromHeap()
459 hd->free = newCell; in OS_AllocFromHeap()
551 for (cell = hd->free; cell; cell = cell->next) in OS_AllocFixed()
577 hd->free = DLExtract(hd->free, cell); // Note cell->next is intact. XXX in OS_AllocFixed()
610 hd->free = newCell; // new head in OS_AllocFixed()
722 hd->free = DLInsert(hd->free, cell); in OS_FreeToHeap()
775 hd->free = DLInsert(hd->free, cell); in OS_FreeAllToHeap()
859 hd->free = hd->allocated = NULL; in OS_InitAlloc()
943 …SDK_TASSERTMSG(!DLOverlap(heapInfo->heapArray[heap].free, start, end), OS_ERR_CREATEHEAP_INVRANGE); in OS_CreateHeap()
964 hd->free = cell; in OS_CreateHeap()
1030 hd->free = cell; in OS_CreateExtraHeap()
1084 size = DLSize(hd->free); in OS_DestroyHeap()
1101 hd->free = hd->allocated = NULL; // add to dolphin src in OS_DestroyHeap()
1175 … SDK_TASSERTMSG(!DLOverlap(heapInfo->heapArray[i].free, start, end), OS_ERR_ADDTOHEAP_INVRANGE); in OS_AddToHeap()
1189 hd->free = DLInsert(hd->free, cell); in OS_AddToHeap()
1271 long free = 0; in OS_CheckHeap() local
1320 OSi_CHECK(hd->free == NULL || hd->free->prev == NULL); in OS_CheckHeap()
1321 for (cell = hd->free; cell; cell = cell->next) in OS_CheckHeap()
1340 free += cell->size - HEADERSIZE; in OS_CheckHeap()
1349 retValue = free; in OS_CheckHeap()
1471 if ( ! hd->free ) in OS_DumpHeap()
1477 for (cell = hd->free; cell; cell = cell->next) in OS_DumpHeap()
1613 for (cell = heapInfo->heapArray[heap].free; cell; cell = cell->next) in OS_GetTotalFreeSize()
1651 for (cell = heapInfo->heapArray[heap].free; cell; cell = cell->next) in OS_GetMaxFreeSize()
1728 hd->free = cell; in OS_ClearHeap()