Lines Matching refs:next
109 Cell *next; member
172 cell->next = list; in DLAddFront()
193 for (; list; list = list->next) in DLLookup()
217 if (cell->next) in DLExtract()
219 cell->next->prev = cell->prev; in DLExtract()
224 return cell->next; in DLExtract()
228 cell->prev->next = cell->next; in DLExtract()
248 Cell *next; in DLInsert() local
250 for (next = list, prev = NULL; next; prev = next, next = next->next) in DLInsert()
252 if (cell <= next) in DLInsert()
258 cell->next = next; in DLInsert()
260 if (next) in DLInsert()
262 next->prev = cell; in DLInsert()
263 if ((char *)cell + cell->size == (char *)next) in DLInsert()
266 cell->size += next->size; in DLInsert()
267 cell->next = next = next->next; in DLInsert()
268 if (next) in DLInsert()
270 next->prev = cell; in DLInsert()
276 prev->next = cell; in DLInsert()
281 prev->next = next; in DLInsert()
282 if (next) in DLInsert()
284 next->prev = prev; in DLInsert()
311 for (cell = list; cell; cell = cell->next) in DLOverlap()
335 for (cell = list; cell; cell = cell->next) in DLSize()
401 for (cell = hd->free; cell != NULL; cell = cell->next) in OS_AllocFromHeap()
441 newCell->next = cell->next; in OS_AllocFromHeap()
443 if (newCell->next != NULL) in OS_AllocFromHeap()
445 newCell->next->prev = newCell; in OS_AllocFromHeap()
450 newCell->prev->next = newCell; in OS_AllocFromHeap()
548 for (cell = hd->free; cell; cell = cell->next) in OS_AllocFixed()
592 newCell->next = cell->next; in OS_AllocFixed()
593 if (newCell->next) in OS_AllocFixed()
595 newCell->next->prev = newCell; in OS_AllocFixed()
600 newCell->prev->next = newCell; in OS_AllocFixed()
631 newCell->next = cell->next; in OS_AllocFixed()
632 if (newCell->next) in OS_AllocFixed()
634 newCell->next->prev = newCell; in OS_AllocFixed()
637 cell->next = newCell; // cell is before newCell in OS_AllocFixed()
950 cell->next = NULL; in OS_CreateHeap()
1178 for (cell = hd->allocated; cell; cell = cell->next) in OS_CheckHeap()
1182 OSi_CHECK(cell->next == NULL || cell->next->prev == cell); in OS_CheckHeap()
1196 for (cell = hd->free; cell; cell = cell->next) in OS_CheckHeap()
1200 OSi_CHECK(cell->next == NULL || cell->next->prev == cell); in OS_CheckHeap()
1203 OSi_CHECK(cell->next == NULL || (char *)cell + cell->size < (char *)cell->next); in OS_CheckHeap()
1322 for (cell = hd->allocated; cell; cell = cell->next) in OS_DumpHeap()
1325 cell, cell->size, (char *)cell + cell->size, cell->prev, cell->next); in OS_DumpHeap()
1336 for (cell = hd->free; cell; cell = cell->next) in OS_DumpHeap()
1339 cell, cell->size, (char *)cell + cell->size, cell->prev, cell->next); in OS_DumpHeap()
1380 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OS_VisitAllocated()
1425 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OSi_GetTotalAllocSize()
1432 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OSi_GetTotalAllocSize()
1472 for (cell = heapInfo->heapArray[heap].free; cell; cell = cell->next) in OS_GetTotalFreeSize()
1510 for (cell = heapInfo->heapArray[heap].free; cell; cell = cell->next) in OS_GetMaxFreeSize()
1571 cell->next = NULL; in OS_ClearHeap()