Lines Matching refs:next

159     OSThread *next = queue->head;  in OSi_InsertLinkToQueue()  local
161 while (next && next->priority <= thread->priority) in OSi_InsertLinkToQueue()
163 if (next == thread) in OSi_InsertLinkToQueue()
167 next = next->link.next; in OSi_InsertLinkToQueue()
170 if (!next) in OSi_InsertLinkToQueue()
180 prev->link.next = thread; in OSi_InsertLinkToQueue()
184 thread->link.next = NULL; in OSi_InsertLinkToQueue()
189 OSThread *prev = next->link.prev; in OSi_InsertLinkToQueue()
197 prev->link.next = thread; in OSi_InsertLinkToQueue()
201 thread->link.next = next; in OSi_InsertLinkToQueue()
202 next->link.prev = thread; in OSi_InsertLinkToQueue()
221 OSThread *next = t->link.next; in OSi_RemoveLinkFromQueue() local
223 queue->head = next; in OSi_RemoveLinkFromQueue()
225 if (next) in OSi_RemoveLinkFromQueue()
227 next->link.prev = NULL; in OSi_RemoveLinkFromQueue()
251 OSThread *next; in OSi_RemoveSpecifiedLinkFromQueue() local
256 next = t->link.next; in OSi_RemoveSpecifiedLinkFromQueue()
265 queue->head = next; in OSi_RemoveSpecifiedLinkFromQueue()
269 prev->link.next = next; in OSi_RemoveSpecifiedLinkFromQueue()
279 next->link.prev = prev; in OSi_RemoveSpecifiedLinkFromQueue()
285 t = next; in OSi_RemoveSpecifiedLinkFromQueue()
306 OSMutex *next = t->link.next; in OSi_RemoveMutexLinkFromQueue() local
308 queue->head = next; in OSi_RemoveMutexLinkFromQueue()
310 if (next) in OSi_RemoveMutexLinkFromQueue()
312 next->link.prev = NULL; in OSi_RemoveMutexLinkFromQueue()
380 t = t->next; in OSi_InsertThreadToList()
385 thread->next = OSi_ThreadInfo.list; in OSi_InsertThreadToList()
390 thread->next = pre->next; in OSi_InsertThreadToList()
391 pre->next = thread; in OSi_InsertThreadToList()
412 t = t->next; in OSi_RemoveThreadFromList()
419 OSi_ThreadInfo.list = thread->next; in OSi_RemoveThreadFromList()
423 pre->next = thread->next; in OSi_RemoveThreadFromList()
524 OSi_LauncherThread.next = NULL; in OS_InitThread()
699 thread->link.prev = thread->link.next = NULL; in OS_CreateThread()
1246 t = t->next; in OS_WakeupThread()
1261 thread->link.prev = thread->link.next = NULL; in OS_WakeupThread()
1314 t = t->next; in OS_SelectThread()
1373 t = t->next; in OS_YieldThread()
1387 OSi_ThreadInfo.list = current->next; in OS_YieldThread()
1391 pre->next = current->next; in OS_YieldThread()
1395 current->next = lastThread->next; in OS_YieldThread()
1396 lastThread->next = current; in OS_YieldThread()
1429 (thread) ? thread->next : 0); in OS_DumpThreadList()
1440 thread->priority, thread->next, thread->state, in OS_DumpThreadList()
1443 thread->link.next); in OS_DumpThreadList()
1444 thread = thread->next; in OS_DumpThreadList()
1481 thread = thread->next; in OS_GetNumberOfThread()
1652 t = t->next; in OS_SetThreadPriority()
1667 OSi_ThreadInfo.list = thread->next; in OS_SetThreadPriority()
1671 pre->next = thread->next; in OS_SetThreadPriority()
1884 t = t->next; in OS_GetThread()
2027 t = t->next; in OS_IsThreadInList()