Home
last modified time | relevance | path

Searched refs:semCB (Results 1 – 5 of 5) sorted by relevance

/kernel/liteos_a/kernel/base/ipc/
Dlos_sem_debug.c125 LosSemCB *semCB = NULL; in OsSemSort() local
143 semCB = GET_SEM(semIndexArray[i]); in OsSemSort()
145 (VOID)memcpy_s(&semNode, sizeof(LosSemCB), semCB, sizeof(LosSemCB)); in OsSemSort()
154 OsSemPendedTaskNamePrint(semCB); in OsSemSort()
217 LosSemCB *semCB = NULL; in OsSemInfoOutput() local
222 semCB = GET_SEM(loop); in OsSemInfoOutput()
224 if (semCB->semStat == OS_SEM_USED) { in OsSemInfoOutput()
225 (VOID)memcpy_s(&semNode, sizeof(LosSemCB), semCB, sizeof(LosSemCB)); in OsSemInfoOutput()
242 semCB = GET_SEM(semID); in OsSemInfoOutput()
244 (VOID)memcpy_s(&semNode, sizeof(LosSemCB), semCB, sizeof(LosSemCB)); in OsSemInfoOutput()
[all …]
/kernel/liteos_m/components/trace/cnv/
Dtrace_cnv.c110 STATIC VOID LOS_TraceSemCreate(const LosSemCB *semCB) in LOS_TraceSemCreate() argument
112 LOS_TRACE(SEM_CREATE, semCB->semID, 0, semCB->semCount); in LOS_TraceSemCreate()
115 STATIC VOID LOS_TraceSemPost(const LosSemCB *semCB, const LosTaskCB *resumedTask) in LOS_TraceSemPost() argument
118 LOS_TRACE(SEM_POST, semCB->semID, 0, semCB->semCount); in LOS_TraceSemPost()
121 STATIC VOID LOS_TraceSemPend(const LosSemCB *semCB, const LosTaskCB *runningTask, UINT32 timeout) in LOS_TraceSemPend() argument
124 LOS_TRACE(SEM_PEND, semCB->semID, semCB->semCount, timeout); in LOS_TraceSemPend()
127 STATIC VOID LOS_TraceSemDelete(const LosSemCB *semCB) in LOS_TraceSemDelete() argument
129 LOS_TRACE(SEM_DELETE, semCB->semID, LOS_OK); in LOS_TraceSemDelete()
/kernel/liteos_a/kernel/extended/trace/cnv/
Dtrace_cnv.c111 STATIC VOID LOS_TraceSemCreate(const LosSemCB *semCB) in LOS_TraceSemCreate() argument
113 LOS_TRACE(SEM_CREATE, semCB->semID, 0, semCB->semCount); in LOS_TraceSemCreate()
116 STATIC VOID LOS_TraceSemPost(const LosSemCB *semCB, const LosTaskCB *resumedTask) in LOS_TraceSemPost() argument
119 LOS_TRACE(SEM_POST, semCB->semID, 0, semCB->semCount); in LOS_TraceSemPost()
122 STATIC VOID LOS_TraceSemPend(const LosSemCB *semCB, const LosTaskCB *runningTask, UINT32 timeout) in LOS_TraceSemPend() argument
125 LOS_TRACE(SEM_PEND, semCB->semID, semCB->semCount, timeout); in LOS_TraceSemPend()
128 STATIC VOID LOS_TraceSemDelete(const LosSemCB *semCB) in LOS_TraceSemDelete() argument
130 LOS_TRACE(SEM_DELETE, semCB->semID, LOS_OK); in LOS_TraceSemDelete()
/kernel/liteos_m/kal/cmsis/
Dcmsis_liteos2.c1152 LosSemCB *semCB = (LosSemCB *)semaphore_id; in osSemaphoreAcquire() local
1155 if ((semCB == NULL) || (OS_INT_ACTIVE && (timeout != 0))) { in osSemaphoreAcquire()
1159 ret = LOS_SemPend(semCB->semID, timeout); in osSemaphoreAcquire()
1191 LosSemCB *semCB = (LosSemCB *)semaphore_id; in osSemaphoreGetCount() local
1195 if (semCB == NULL) { in osSemaphoreGetCount()
1200 if (semCB->semStat == 0) { in osSemaphoreGetCount()
1205 count = semCB->semCount; in osSemaphoreGetCount()
/kernel/liteos_m/kal/posix/src/
Dpipe.c472 LosSemCB *semCB = GET_SEM(sem); in PipeWriterIsWaiting() local
475 while (semCB->semCount == 0) { in PipeWriterIsWaiting()
476 UINT32 ret = LOS_SemPost(semCB->semID); in PipeWriterIsWaiting()