Home
last modified time | relevance | path

Searched refs:timerID (Results 1 – 7 of 7) sorted by relevance

/kernel/liteos_a/kernel/base/misc/
Dswtmr_shellcmd.c75 STATIC UINT32 SwtmrBaseInfoGet(UINT32 timerID) in SwtmrBaseInfoGet() argument
93 if (timerID == OS_ALL_SWTMR_MASK) { in SwtmrBaseInfoGet()
102 …if ((timerID == (size_t)(swtmr->usTimerID % LOSCFG_BASE_CORE_SWTMR_LIMIT)) && (swtmr->ucState != 0… in SwtmrBaseInfoGet()
147 UINT32 timerID; in OsShellCmdSwtmrInfoGet() local
155 timerID = OS_ALL_SWTMR_MASK; in OsShellCmdSwtmrInfoGet()
162 timerID = strtoul(argv[0], &endPtr, 0); in OsShellCmdSwtmrInfoGet()
163 if ((endPtr == NULL) || (*endPtr != 0) || (timerID > LOSCFG_BASE_CORE_SWTMR_LIMIT)) { in OsShellCmdSwtmrInfoGet()
169 return SwtmrBaseInfoGet(timerID); in OsShellCmdSwtmrInfoGet()
/kernel/liteos_a/syscall/
Dtime_syscall.c160 int SysTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID) in SysTimerCreate() argument
166 if (timerID == NULL) { in SysTimerCreate()
181 if (LOS_ArchCopyToUser(timerID, &stimerID, sizeof(timer_t))) { in SysTimerCreate()
189 int SysTimerGettime(timer_t timerID, struct itimerspec *value) in SysTimerGettime() argument
199 ret = timer_gettime(timerID, &svalue); in SysTimerGettime()
212 int SysTimerSettime(timer_t timerID, int flags, const struct itimerspec *value, struct itimerspec *… in SysTimerSettime() argument
228 ret = timer_settime(timerID, flags, &svalue, &soldValue); in SysTimerSettime()
241 int SysTimerGetoverrun(timer_t timerID) in SysTimerGetoverrun() argument
245 ret = timer_getoverrun(timerID); in SysTimerGetoverrun()
252 int SysTimerDelete(timer_t timerID) in SysTimerDelete() argument
[all …]
Dlos_syscall.h194 extern int SysTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID);
195 extern int SysTimerGettime(timer_t timerID, struct itimerspec *value);
196 extern int SysTimerGetoverrun(timer_t timerID);
197 extern int SysTimerDelete(timer_t timerID);
203 extern int SysTimerSettime(timer_t timerID, int flags, const struct itimerspec *value, struct itime…
209 extern int SysTimerGettime64(timer_t timerID, struct itimerspec64 *value);
210 extern int SysTimerSettime64(timer_t timerID, int flags, const struct itimerspec64 *value, struct i…
/kernel/liteos_a/compat/posix/src/
Dtime.c784 int timer_create(clockid_t clockID, struct sigevent *restrict evp, timer_t *restrict timerID) in timer_create() argument
792 if (!timerID || (clockID != CLOCK_REALTIME) || !evp) { in timer_create()
817 *timerID = (timer_t)(UINTPTR)swtmrID; in timer_create()
821 int OsTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID) in OsTimerCreate() argument
831 if ((clockID != CLOCK_REALTIME) || (timerID == NULL)) { in OsTimerCreate()
872 *timerID = (timer_t)(UINTPTR)swtmrID; in OsTimerCreate()
876 int timer_delete(timer_t timerID) in timer_delete() argument
878 UINT16 swtmrID = (UINT16)(UINTPTR)timerID; in timer_delete()
899 RemoveNodeByVid((UINT16)(UINTPTR)timerID); in timer_delete()
908 int timer_settime(timer_t timerID, int flags, in timer_settime() argument
[all …]
/kernel/liteos_m/kal/posix/src/
Dtime.c129 int timer_create(clockid_t clockID, struct sigevent *restrict evp, timer_t *restrict timerID) in timer_create() argument
134 if (!timerID || (clockID != CLOCK_REALTIME) || !evp) { in timer_create()
155 *timerID = (timer_t)(UINTPTR)swtmrID; in timer_create()
159 int timer_delete(timer_t timerID) in timer_delete() argument
161 UINT32 swtmrID = (UINT32)(UINTPTR)timerID; in timer_delete()
170 int timer_settime(timer_t timerID, int flags, in timer_settime() argument
175 UINT32 swtmrID = (UINT32)(UINTPTR)timerID; in timer_settime()
205 (VOID)timer_gettime(timerID, oldValue); in timer_settime()
239 int timer_gettime(timer_t timerID, struct itimerspec *value) in timer_gettime() argument
243 UINT32 swtmrID = (UINT32)(UINTPTR)timerID; in timer_gettime()
[all …]
/kernel/liteos_a/kernel/base/include/
Dlos_process_pri.h119 timer_t timerID; /**< ITimer */ member
/kernel/liteos_a/kernel/base/core/
Dlos_process.c80 processCB->timerID = (timer_t)(UINTPTR)MAX_INVALID_TIMER_VID; in OsInsertPCBToFreeList()
416 processCB->timerID = (timer_t)(UINTPTR)MAX_INVALID_TIMER_VID; in OsProcessResourcesToFree()
745 processCB->timerID = (timer_t)(UINTPTR)MAX_INVALID_TIMER_VID; in OsInitPCB()
1737 processCB->timerID = (timer_t)(UINTPTR)MAX_INVALID_TIMER_VID; in OsExecRecycleAndInit()