Lines Matching refs:t
217 OSThread *t = queue->head; in OSi_RemoveLinkFromQueue() local
219 if (t) in OSi_RemoveLinkFromQueue()
221 OSThread *next = t->link.next; in OSi_RemoveLinkFromQueue()
232 t->queue = NULL; in OSi_RemoveLinkFromQueue()
236 return t; in OSi_RemoveLinkFromQueue()
250 OSThread *t = queue->head; in OSi_RemoveSpecifiedLinkFromQueue() local
254 while (t) in OSi_RemoveSpecifiedLinkFromQueue()
256 next = t->link.next; in OSi_RemoveSpecifiedLinkFromQueue()
258 if (t == thread) in OSi_RemoveSpecifiedLinkFromQueue()
260 prev = t->link.prev; in OSi_RemoveSpecifiedLinkFromQueue()
263 if (queue->head == t) in OSi_RemoveSpecifiedLinkFromQueue()
273 if (queue->tail == t) in OSi_RemoveSpecifiedLinkFromQueue()
285 t = next; in OSi_RemoveSpecifiedLinkFromQueue()
288 return t; in OSi_RemoveSpecifiedLinkFromQueue()
302 OSMutex *t = queue->head; in OSi_RemoveMutexLinkFromQueue() local
304 if (t) in OSi_RemoveMutexLinkFromQueue()
306 OSMutex *next = t->link.next; in OSi_RemoveMutexLinkFromQueue()
320 return t; in OSi_RemoveMutexLinkFromQueue()
374 OSThread *t = OSi_ThreadInfo.list; in OSi_InsertThreadToList() local
377 while (t && t->priority < thread->priority) in OSi_InsertThreadToList()
379 pre = t; in OSi_InsertThreadToList()
380 t = t->next; in OSi_InsertThreadToList()
406 OSThread *t = OSi_ThreadInfo.list; in OSi_RemoveThreadFromList() local
409 while (t && t != thread) in OSi_RemoveThreadFromList()
411 pre = t; in OSi_RemoveThreadFromList()
412 t = t->next; in OSi_RemoveThreadFromList()
415 SDK_TASSERTMSG(t, "Cannot remove thread from list."); in OSi_RemoveThreadFromList()
984 OSThread *t = &thread; in UTEST_OS_KillThread_1() local
990 t->stackBottom = 0x6789abcd; in UTEST_OS_KillThread_1()
991 t->state = OS_THREAD_STATE_TERMINATED; in UTEST_OS_KillThread_1()
992 OSi_KillThreadWithPriority(t, (void *)0x12345678, 16); in UTEST_OS_KillThread_1()
995 UT_AssertEq(t->context.pc_plus4, (u32)OSi_ExitThread + 4); // OS_ExitThread in UTEST_OS_KillThread_1()
996 UT_AssertEq(t->context.r[0], (u32)0x12345678); // arg in UTEST_OS_KillThread_1()
998 UT_AssertEq(t->context.cpsr, (u32)HW_PSR_IRQ_DISABLE | HW_PSR_SYS_MODE | flag); in UTEST_OS_KillThread_1()
999 UT_AssertEq(t->context.sp, (u32)0x6789abcd - HW_SVC_STACK_SIZE); in UTEST_OS_KillThread_1()
1002 UT_AssertEq(t->state, OS_THREAD_STATE_READY); in UTEST_OS_KillThread_1()
1238 OSThread *t = OSi_ThreadInfo.list; in OS_WakeupThread() local
1239 while (t) in OS_WakeupThread()
1241 if (mask & (1UL << t->id)) in OS_WakeupThread()
1243 t->state = OS_THREAD_STATE_READY; in OS_WakeupThread()
1246 t = t->next; in OS_WakeupThread()
1310 OSThread *t = OSi_ThreadInfo.list; in OS_SelectThread() local
1312 while (t && !OS_IsThreadRunnable(t)) in OS_SelectThread()
1314 t = t->next; in OS_SelectThread()
1317 return t; in OS_SelectThread()
1356 OSThread *t = OSi_ThreadInfo.list; in OS_YieldThread() local
1359 while (t) in OS_YieldThread()
1361 if (t == current) in OS_YieldThread()
1366 if (current->priority == t->priority) in OS_YieldThread()
1368 lastThread = t; in OS_YieldThread()
1372 tPre = t; in OS_YieldThread()
1373 t = t->next; in OS_YieldThread()
1639 OSThread *t = OSi_ThreadInfo.list; in OS_SetThreadPriority() local
1649 while (t && t != thread) in OS_SetThreadPriority()
1651 pre = t; in OS_SetThreadPriority()
1652 t = t->next; in OS_SetThreadPriority()
1656 if (!t || t == &OSi_IdleThread) in OS_SetThreadPriority()
1662 if (t->priority != prio) in OS_SetThreadPriority()
1805 OSThread *t = NULL; in OSi_GetIdleThread() local
1808 t = &OSi_IdleThread; in OSi_GetIdleThread()
1810 return t; in OSi_GetIdleThread()
1874 OSThread *t = OSi_ThreadInfo.list; in OS_GetThread() local
1876 while (t) in OS_GetThread()
1878 if (t->id == id) in OS_GetThread()
1880 retval = t; in OS_GetThread()
1884 t = t->next; in OS_GetThread()
2016 OSThread *t = OSi_ThreadInfo.list; in OS_IsThreadInList() local
2019 while (t) in OS_IsThreadInList()
2021 if (t == thread) in OS_IsThreadInList()
2027 t = t->next; in OS_IsThreadInList()