Lines Matching refs:next
109 Cell *next; member
176 cell->next = list; in DLAddFront()
197 for (; list; list = list->next) in DLLookup()
221 if (cell->next) in DLExtract()
223 cell->next->prev = cell->prev; in DLExtract()
228 return cell->next; in DLExtract()
232 cell->prev->next = cell->next; in DLExtract()
252 Cell *next; in DLInsert() local
254 for (next = list, prev = NULL; next; prev = next, next = next->next) in DLInsert()
256 if (cell <= next) in DLInsert()
262 cell->next = next; in DLInsert()
264 if (next) in DLInsert()
266 next->prev = cell; in DLInsert()
267 if ((char *)cell + cell->size == (char *)next) in DLInsert()
270 cell->size += next->size; in DLInsert()
271 cell->next = next = next->next; in DLInsert()
272 if (next) in DLInsert()
274 next->prev = cell; in DLInsert()
280 prev->next = cell; in DLInsert()
285 prev->next = next; in DLInsert()
286 if (next) in DLInsert()
288 next->prev = prev; in DLInsert()
315 for (cell = list; cell; cell = cell->next) in DLOverlap()
339 for (cell = list; cell; cell = cell->next) in DLSize()
405 for (cell = hd->free; cell != NULL; cell = cell->next) in OS_AllocFromHeap()
445 newCell->next = cell->next; in OS_AllocFromHeap()
447 if (newCell->next != NULL) in OS_AllocFromHeap()
449 newCell->next->prev = newCell; in OS_AllocFromHeap()
454 newCell->prev->next = newCell; in OS_AllocFromHeap()
551 for (cell = hd->free; cell; cell = cell->next) in OS_AllocFixed()
598 newCell->next = cell->next; in OS_AllocFixed()
599 if (newCell->next) in OS_AllocFixed()
601 newCell->next->prev = newCell; in OS_AllocFixed()
606 newCell->prev->next = newCell; in OS_AllocFixed()
637 newCell->next = cell->next; in OS_AllocFixed()
638 if (newCell->next) in OS_AllocFixed()
640 newCell->next->prev = newCell; in OS_AllocFixed()
643 cell->next = newCell; // cell is before newCell in OS_AllocFixed()
958 cell->next = NULL; in OS_CreateHeap()
1025 cell->next = NULL; in OS_CreateExtraHeap()
1294 for (cell = hd->allocated; cell; cell = cell->next) in OS_CheckHeap()
1307 OSi_CHECK(cell->next == NULL || cell->next->prev == cell); in OS_CheckHeap()
1321 for (cell = hd->free; cell; cell = cell->next) in OS_CheckHeap()
1334 OSi_CHECK(cell->next == NULL || cell->next->prev == cell); in OS_CheckHeap()
1337 OSi_CHECK(cell->next == NULL || (char *)cell + cell->size < (char *)cell->next); in OS_CheckHeap()
1463 for (cell = hd->allocated; cell; cell = cell->next) in OS_DumpHeap()
1466 cell, cell->size, (char *)cell + cell->size, cell->prev, cell->next); in OS_DumpHeap()
1477 for (cell = hd->free; cell; cell = cell->next) in OS_DumpHeap()
1480 cell, cell->size, (char *)cell + cell->size, cell->prev, cell->next); in OS_DumpHeap()
1521 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OS_VisitAllocated()
1566 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OSi_GetTotalAllocSize()
1573 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OSi_GetTotalAllocSize()
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()
1722 cell->next = NULL; in OS_ClearHeap()