Searched refs:semPended (Results 1 – 6 of 6) sorted by relevance
/kernel/uniproton/src/core/ipc/sem/ |
D | prt_sem.c | 24 OS_SEC_L0_TEXT void OsSemPendListPut(struct TagSemCb *semPended, U32 timeOut) in OsSemPendListPut() argument 32 runTsk->taskSem = (void *)semPended; in OsSemPendListPut() 36 if (semPended->semMode == SEM_MODE_PRIOR) { in OsSemPendListPut() 37 LIST_FOR_EACH(curTskCb, &semPended->semList, struct TagTskCb, pendList) { in OsSemPendListPut() 45 ListTailAdd(pendObj, &semPended->semList); in OsSemPendListPut() 60 OS_SEC_L0_TEXT struct TagTskCb *OsSemPendListGet(struct TagSemCb *semPended) in OsSemPendListGet() argument 62 struct TagTskCb *taskCb = GET_TCB_PEND(LIST_FIRST(&(semPended->semList))); in OsSemPendListGet() 64 ListDelete(LIST_FIRST(&(semPended->semList))); in OsSemPendListGet() 94 OS_SEC_L0_TEXT bool OsSemPendNotNeedSche(struct TagSemCb *semPended, struct TagTskCb *runTsk) in OsSemPendNotNeedSche() argument 97 if (semPended->semCount > 0) { in OsSemPendNotNeedSche() [all …]
|
/kernel/liteos_m/kernel/src/ |
D | los_sem.c | 189 STATIC_INLINE UINT32 OsSemValidCheck(LosSemCB *semPended) in OsSemValidCheck() argument 191 if (semPended->semStat == OS_SEM_UNUSED) { in OsSemValidCheck() 222 LosSemCB *semPended = NULL; in LOS_SemPend() local 230 semPended = GET_SEM(semHandle); in LOS_SemPend() 233 retErr = OsSemValidCheck(semPended); in LOS_SemPend() 240 if (semPended->semCount > 0) { in LOS_SemPend() 241 semPended->semCount--; in LOS_SemPend() 243 OsHookCall(LOS_HOOK_TYPE_SEM_PEND, semPended, runningTask, timeout); in LOS_SemPend() 252 runningTask->taskSem = (VOID *)semPended; in LOS_SemPend() 253 OsSchedTaskWait(&semPended->semList, timeout); in LOS_SemPend() [all …]
|
/kernel/liteos_a/kernel/base/ipc/ |
D | los_sem.c | 181 LosSemCB *semPended = GET_SEM(semHandle); in LOS_SemPend() local 203 if ((semPended->semStat == OS_SEM_UNUSED) || (semPended->semID != semHandle)) { in LOS_SemPend() 210 if (semPended->semCount > 0) { in LOS_SemPend() 211 semPended->semCount--; in LOS_SemPend() 212 OsHookCall(LOS_HOOK_TYPE_SEM_PEND, semPended, runTask, timeout); in LOS_SemPend() 226 OsHookCall(LOS_HOOK_TYPE_SEM_PEND, semPended, runTask, timeout); in LOS_SemPend() 227 OsTaskWaitSetPendMask(OS_TASK_WAIT_SEM, semPended->semID, timeout); in LOS_SemPend() 228 retErr = runTask->ops->wait(runTask, &semPended->semList, timeout); in LOS_SemPend()
|
/kernel/liteos_m/testsuites/sample/kernel/sem/ |
D | It_los_sem_004.c | 42 LosSemCB *semPended = NULL; in Testcase() local 48 semPended = GET_SEM(semID); in Testcase() 50 if (OS_SEM_UNUSED == (semPended->semStat)) { in Testcase()
|
/kernel/liteos_m/utils/internal/ |
D | los_hook_types.h | 78 …LOS_HOOK_TYPE_DEF(LOS_HOOK_TYPE_SEM_PEND, (const LosSemCB *semPended, const LosTaskCB *runningTask…
|
/kernel/liteos_a/kernel/extended/hook/include/ |
D | los_hook_types.h | 76 …LOS_HOOK_TYPE_DEF(LOS_HOOK_TYPE_SEM_PEND, (const LosSemCB *semPended, const LosTaskCB *runningTask…
|