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()
1240 OSThread *t = OSi_ThreadInfo.list; in OS_WakeupThread() local
1241 while (t) in OS_WakeupThread()
1243 if (mask & (1UL << t->id)) in OS_WakeupThread()
1245 t->state = OS_THREAD_STATE_READY; in OS_WakeupThread()
1248 t = t->next; in OS_WakeupThread()
1312 OSThread *t = OSi_ThreadInfo.list; in OS_SelectThread() local
1314 while (t && !OS_IsThreadRunnable(t)) in OS_SelectThread()
1316 t = t->next; in OS_SelectThread()
1319 return t; in OS_SelectThread()
1358 OSThread *t = OSi_ThreadInfo.list; in OS_YieldThread() local
1361 while (t) in OS_YieldThread()
1363 if (t == current) in OS_YieldThread()
1368 if (current->priority == t->priority) in OS_YieldThread()
1370 lastThread = t; in OS_YieldThread()
1374 tPre = t; in OS_YieldThread()
1375 t = t->next; in OS_YieldThread()
1641 OSThread *t = OSi_ThreadInfo.list; in OS_SetThreadPriority() local
1651 while (t && t != thread) in OS_SetThreadPriority()
1653 pre = t; in OS_SetThreadPriority()
1654 t = t->next; in OS_SetThreadPriority()
1658 if (!t || t == &OSi_IdleThread) in OS_SetThreadPriority()
1664 if (t->priority != prio) in OS_SetThreadPriority()
1807 OSThread *t = NULL; in OSi_GetIdleThread() local
1810 t = &OSi_IdleThread; in OSi_GetIdleThread()
1812 return t; in OSi_GetIdleThread()
1876 OSThread *t = OSi_ThreadInfo.list; in OS_GetThread() local
1878 while (t) in OS_GetThread()
1880 if (t->id == id) in OS_GetThread()
1882 retval = t; in OS_GetThread()
1886 t = t->next; in OS_GetThread()
2018 OSThread *t = OSi_ThreadInfo.list; in OS_IsThreadInList() local
2021 while (t) in OS_IsThreadInList()
2023 if (t == thread) in OS_IsThreadInList()
2029 t = t->next; in OS_IsThreadInList()