Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 18 of 18) sorted by relevance

/TwlSDK-5.1.0/build/libraries/os/common/src/
Dos_thread.c113 static void OSi_CancelThreadAlarmForSleep(OSThread *thread);
114 static void OSi_InsertThreadToList(OSThread *thread);
115 static void OSi_RemoveThreadFromList(OSThread *thread);
120 static void OSi_ExitThread_ArgSpecified(OSThread *thread, void *arg);
157 static void OSi_InsertLinkToQueue(OSThreadQueue *queue, OSThread *thread) in OSi_InsertLinkToQueue() argument
161 while (next && next->priority <= thread->priority) in OSi_InsertLinkToQueue()
163 if (next == thread) in OSi_InsertLinkToQueue()
176 queue->head = thread; in OSi_InsertLinkToQueue()
180 prev->link.next = thread; in OSi_InsertLinkToQueue()
183 thread->link.prev = prev; in OSi_InsertLinkToQueue()
[all …]
Dos_mutex.c23 void OSi_EnqueueTail(OSThread *thread, OSMutex *mutex);
24 void OSi_DequeueItem(OSThread *thread, OSMutex *mutex);
25 OSMutex *OSi_DequeueHead(OSThread *thread);
42 mutex->thread = NULL; in OS_InitMutex()
100 void OSi_UnlockAllMutex(OSThread *thread) in OSi_UnlockAllMutex() argument
104 SDK_ASSERT(thread); in OSi_UnlockAllMutex()
107 while (thread->mutexQueueHead) in OSi_UnlockAllMutex()
109 mutex = OSi_DequeueHead(thread); in OSi_UnlockAllMutex()
110 SDK_ASSERT(mutex->thread == thread); in OSi_UnlockAllMutex()
113 mutex->thread = NULL; in OSi_UnlockAllMutex()
[all …]
Dos_callTrace.c36 void OSi_DumpThreadCallTrace_core(const OSThread *thread, u32 returnAddress);
716 asm void OS_DumpThreadCallTrace( const OSThread* thread ) in OS_DumpThreadCallTrace() argument
735 void OSi_DumpThreadCallTrace_core(const OSThread *thread, u32 returnAddress) in OSi_DumpThreadCallTrace_core() argument
745 if (!thread) in OSi_DumpThreadCallTrace_core()
747 thread = OS_GetCurrentThread(); in OSi_DumpThreadCallTrace_core()
751 if (thread) in OSi_DumpThreadCallTrace_core()
753 info = (OSCallTraceInfo *)thread->profiler; in OSi_DumpThreadCallTrace_core()
757 if (!thread || !info || !info->current) in OSi_DumpThreadCallTrace_core()
763 if (thread != OS_GetCurrentThread()) in OSi_DumpThreadCallTrace_core()
765 returnAddress = thread->context.r[14]; in OSi_DumpThreadCallTrace_core()
Dos_functionCost.c234 void OSi_ClearThreadFunctionCostBuffer(OSThread *thread) in OSi_ClearThreadFunctionCostBuffer() argument
238 if (!thread) in OSi_ClearThreadFunctionCostBuffer()
244 infoPtr = (OSFunctionCostInfo *)(thread->profiler); in OSi_ClearThreadFunctionCostBuffer()
571 void OS_CalcThreadStatistics(void *statBuf, OSThread *thread) in OS_CalcThreadStatistics() argument
576 if (!thread) in OS_CalcThreadStatistics()
582 infoPtr = (OSFunctionCostInfo *)(thread->profiler); in OS_CalcThreadStatistics()
647 OSi_ClearThreadFunctionCostBuffer(thread); in OS_CalcThreadStatistics()
/TwlSDK-5.1.0/build/libraries/wfs/common/src/
Dwfs_thread.c49 OSThread thread[1]; member
72 WFSServerThread * const thread = (WFSServerThread*)userdata; in WFSi_ReadRomCallback() local
108 (void)FS_SeekFile(thread->file, (int)offset, FS_SEEK_SET); in WFSi_ReadRomCallback()
109 (void)FS_ReadFile(thread->file, buffer, (int)length); in WFSi_ReadRomCallback()
147 WFSServerThread *const thread = (WFSServerThread*)arg; in WFSi_ServerThreadProc() local
151 (void)OS_ReceiveMessage(thread->msg_queue, (OSMessage*)&busy, OS_MESSAGE_BLOCK); in WFSi_ServerThreadProc()
156 MI_LoadCache(thread->cache, thread->device); in WFSi_ServerThreadProc()
173 WFSServerThread * const thread = (WFSServerThread *)work; in WFSi_ThreadHook() local
178 (void)OS_SendMessage(thread->msg_queue, (OSMessage)FALSE, OS_MESSAGE_BLOCK); in WFSi_ThreadHook()
179 OS_JoinThread(thread->thread); in WFSi_ThreadHook()
[all …]
/TwlSDK-5.1.0/include/nitro/os/common/
Dthread.h229 void OSi_CheckStack(const char *file, int line, const OSThread *thread);
270 void OS_CreateThread(OSThread *thread,
295 void OS_DestroyThread(OSThread *thread);
309 void OS_KillThread(OSThread *thread, void *arg);
310 void OS_KillThreadWithPriority(OSThread *thread, void *arg, u32 prio);
323 void OS_JoinThread(OSThread *thread);
335 BOOL OS_IsThreadTerminated(const OSThread *thread);
346 OSThreadState OS_GetThreadStatus(const OSThread *thread);
407 void OS_SleepThreadDirect(OSThread *thread, OSThreadQueue *queue);
430 void OS_WakeupThreadDirect(OSThread *thread);
[all …]
Dmutex.h49 OSThread *thread; // current owner member
146 void OSi_UnlockAllMutex(OSThread *thread);
DfunctionCost.h190 extern void OSi_ClearThreadFunctionCostBuffer(OSThread *thread);
285 void OS_CalcThreadStatistics(void *statBuf, OSThread *thread);
/TwlSDK-5.1.0/build/libraries/card/common/src/
Dcard_api.c100 OS_CreateThread(p->thread.context, in CARD_Init()
102 p->thread.stack + sizeof(p->thread.stack), in CARD_Init()
103 sizeof(p->thread.stack), p->priority); in CARD_Init()
104 OS_WakeupThreadDirect(p->thread.context); in CARD_Init()
108 OS_CreateThread(p->thread.context, in CARD_Init()
110 p->thread.stack + sizeof(p->thread.stack), in CARD_Init()
111 sizeof(p->thread.stack), p->priority); in CARD_Init()
112 OS_WakeupThreadDirect(p->thread.context); in CARD_Init()
233 (void)OS_SetThreadPriority(p->thread.context, p->priority); in CARD_SetThreadPriority()
Dcard_task.c231 (void)OS_SetThreadPriority(p->thread.context, p->priority); in CARDi_ExecuteOldTypeTask()
235 OS_WakeupThreadDirect(p->thread.context); in CARDi_ExecuteOldTypeTask()
/TwlSDK-5.1.0/build/demos/os/
DMakefile53 thread-1 \
54 thread-2 \
55 thread-3 \
/TwlSDK-5.1.0/build/demos/os/sleep-1/src/
Dmain.c38 OSThread thread; variable
74 OS_CreateThread(&thread, proc, NULL, stack + STACK_SIZE / sizeof(u64), STACK_SIZE, THREAD_PRIO); in NitroMain()
75 OS_WakeupThreadDirect(&thread); in NitroMain()
/TwlSDK-5.1.0/build/demos/fs/async/src/
Dmain.c37 OSThread thread; member
178 OS_CreateThread(&pt->thread, in NitroMain()
181 OS_WakeupThreadDirect(&pt->thread); in NitroMain()
/TwlSDK-5.1.0/build/demos/spi/spiMonkey/include/
Dmonkey.h52 OSThread thread; member
/TwlSDK-5.1.0/build/demos/spi/spiMonkey/src/
Dmonkey.c52 OS_CreateThread(&(monkey.thread), in MonkeyInit()
57 OS_WakeupThreadDirect(&(monkey.thread)); in MonkeyInit()
/TwlSDK-5.1.0/build/libraries/card/common/include/
Dcard_common.h123 thread; member
/TwlSDK-5.1.0/include/nitro/wfs/
Dserver.h70 void (*thread_hook)(void *thread, void *argument);
/TwlSDK-5.1.0/include/twl/fatfs/common/
Dtypes.h531 OSThread *thread; member
542 OSThread *thread; member