Home
last modified time | relevance | path

Searched refs:tick (Results 1 - 25 of 304) sorted by relevance

12345678910>>...13

/kernel/liteos_m/testsuites/sample/kernel/swtmr/
H A DIt_los_swtmr_069.c39 UINT32 tick = 0; in SwtmrF01() local
45 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in SwtmrF01()
47 ICUNIT_GOTO_EQUAL(tick, TIMER_LOS_EXPIRATION1 - 1, tick, EXIT); in SwtmrF01()
59 UINT32 tick = 0; in Testcase() local
79 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
83 ICUNIT_GOTO_EQUAL(tick, 1, tick, EXIT); in Testcase()
91 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
H A DIt_los_swtmr_072.c48 UINT32 tick = 0; in Testcase() local
62 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
78 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
80 ICUNIT_GOTO_EQUAL(tick, TIMER_LOS_EXPIRATION3 - delayTime - 1, tick, EXIT); in Testcase()
85 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
95 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
97 ICUNIT_GOTO_EQUAL(tick, TIMER_LOS_EXPIRATION3 - 1, tick, EXIT); in Testcase()
102 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
[all...]
H A DIt_los_swtmr_068.c50 UINT32 tick = 0; in Testcase() local
66 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
68 ICUNIT_GOTO_EQUAL(tick, TIMER_LOS_EXPIRATION1 - 1, tick, EXIT); in Testcase()
73 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
76 ICUNIT_GOTO_EQUAL(tick, 1, tick, EXIT); in Testcase()
84 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
H A DIt_los_swtmr_071.c48 UINT32 tick = 0; in Testcase() local
62 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
78 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
80 ICUNIT_GOTO_EQUAL(tick, TIMER_LOS_EXPIRATION3 - delayTime - 1, tick, EXIT); in Testcase()
85 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
98 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
H A DIt_los_swtmr_066.c50 UINT32 tick = 0; in Testcase() local
64 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
66 ICUNIT_GOTO_EQUAL(tick, TIMER_LOS_EXPIRATION1 - 1, tick, EXIT); in Testcase()
76 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
H A DIt_los_swtmr_074.c52 UINT32 tick; in Testcase() local
77 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
95 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
97 ICUNIT_GOTO_EQUAL(tick, TIMER_LOS_EXPIRATION3 - delayTime - 1, tick, EXIT); in Testcase()
103 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
H A DIt_los_swtmr_067.c39 UINT32 tick = 0; in SwtmrF01() local
45 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in SwtmrF01()
58 UINT32 tick = 0; in Testcase() local
82 ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick); in Testcase()
/kernel/liteos_a/compat/posix/include/
H A Dtime_posix.h70 UINT64 tick, ns; in OsTimeSpec2Tick() local
74 tick = (ns * LOSCFG_BASE_CORE_TICK_PER_SECOND + (OS_SYS_NS_PER_SECOND - 1)) / OS_SYS_NS_PER_SECOND; in OsTimeSpec2Tick()
75 if (tick > LOS_WAIT_FOREVER) { in OsTimeSpec2Tick()
76 tick = LOS_WAIT_FOREVER; in OsTimeSpec2Tick()
78 return (UINT32)tick; in OsTimeSpec2Tick()
81 STATIC INLINE VOID OsTick2TimeSpec(struct timespec *tp, UINT32 tick) in OsTick2TimeSpec() argument
83 UINT64 ns = ((UINT64)tick * OS_SYS_NS_PER_SECOND) / LOSCFG_BASE_CORE_TICK_PER_SECOND; in OsTick2TimeSpec()
/kernel/linux/linux-5.10/sound/core/seq/
H A Dseq_timer.h13 snd_seq_tick_time_t cur_tick; /* current tick */
14 unsigned long resolution; /* time per tick in nsec */
15 unsigned long fraction; /* current time per tick in nsec */
24 unsigned int tempo; /* current tempo, us/tick */
28 struct snd_seq_timer_tick tick; /* current tick */ member
53 static inline void snd_seq_timer_update_tick(struct snd_seq_timer_tick *tick, in snd_seq_timer_update_tick() argument
56 if (tick->resolution > 0) { in snd_seq_timer_update_tick()
57 tick->fraction += resolution; in snd_seq_timer_update_tick()
58 tick in snd_seq_timer_update_tick()
[all...]
H A Dseq_prioq.c91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
108 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
206 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready()
262 if (cell->event.time.tick) in prioq_match()
347 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
[all...]
/kernel/linux/linux-6.6/sound/core/seq/
H A Dseq_timer.h13 snd_seq_tick_time_t cur_tick; /* current tick */
14 unsigned long resolution; /* time per tick in nsec */
15 unsigned long fraction; /* current time per tick in nsec */
24 unsigned int tempo; /* current tempo, us/tick */
28 struct snd_seq_timer_tick tick; /* current tick */ member
53 static inline void snd_seq_timer_update_tick(struct snd_seq_timer_tick *tick, in snd_seq_timer_update_tick() argument
56 if (tick->resolution > 0) { in snd_seq_timer_update_tick()
57 tick->fraction += resolution; in snd_seq_timer_update_tick()
58 tick in snd_seq_timer_update_tick()
[all...]
H A Dseq_prioq.c91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
108 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
206 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready()
262 if (cell->event.time.tick) in prioq_match()
347 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
[all...]
/kernel/liteos_m/kal/posix/src/
H A Dsignal.c43 unsigned long long tick, ns; in TimeSpec2Tick() local
47 tick = (ns * LOSCFG_BASE_CORE_TICK_PER_SECOND + (OS_SYS_NS_PER_SECOND - 1)) / OS_SYS_NS_PER_SECOND; in TimeSpec2Tick()
48 if (tick > LOS_WAIT_FOREVER) { in TimeSpec2Tick()
49 tick = LOS_WAIT_FOREVER; in TimeSpec2Tick()
51 return (unsigned int)tick; in TimeSpec2Tick()
129 int tick = LOS_WAIT_FOREVER; in sigtimedwait() local
133 tick = TimeSpec2Tick(timeout); in sigtimedwait()
136 ret = LOS_SignalWait(set, info, tick); in sigtimedwait()
H A Dtime_internal.h97 UINT64 tick, ns; in OsTimeSpec2Tick() local
101 tick = (ns * LOSCFG_BASE_CORE_TICK_PER_SECOND + (OS_SYS_NS_PER_SECOND - 1)) / OS_SYS_NS_PER_SECOND; in OsTimeSpec2Tick()
102 if (tick > LOS_WAIT_FOREVER) { in OsTimeSpec2Tick()
103 tick = LOS_WAIT_FOREVER; in OsTimeSpec2Tick()
105 return (UINT32)tick; in OsTimeSpec2Tick()
108 STATIC INLINE VOID OsTick2TimeSpec(struct timespec *tp, UINT32 tick) in OsTick2TimeSpec() argument
110 UINT64 ns = ((UINT64)tick * OS_SYS_NS_PER_SECOND) / LOSCFG_BASE_CORE_TICK_PER_SECOND; in OsTick2TimeSpec()
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
H A Dadjtick.c1 /* adjtimex() tick adjustment test
128 tx1.tick = tickval; in check_tick_adj()
135 printf("Estimating tick (act: %ld usec, %lld ppm): ", tickval, ppm); in check_tick_adj()
144 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj()
153 * cannot match the HZ tick size accurately, so we have a in check_tick_adj()
171 long tick, max, interval, err; in main() local
189 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main()
190 if (check_tick_adj(tick)) { in main()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/timers/
H A Dadjtick.c1 /* adjtimex() tick adjustment test
128 tx1.tick = tickval; in check_tick_adj()
135 printf("Estimating tick (act: %ld usec, %lld ppm): ", tickval, ppm); in check_tick_adj()
144 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj()
153 * cannot match the HZ tick size accurately, so we have a in check_tick_adj()
171 long tick, max, interval, err; in main() local
189 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main()
190 if (check_tick_adj(tick)) { in main()
[all...]
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/core/swtmr/full/
H A DIt_los_swtmr_066.c54 UINT32 tick; in Testcase() local
64 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
66 if (tick > 4) { // 4, if tick > 4, set an erro code, then exit in Testcase()
67 ICUNIT_GOTO_EQUAL(1, 0, tick, EXIT); in Testcase()
78 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
H A DIt_los_swtmr_068.c54 UINT32 tick; in Testcase() local
64 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
70 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
78 ret = LOS_SwtmrTimeGet(swTmrID, &tick); in Testcase()
/kernel/linux/linux-5.10/arch/sparc/include/asm/
H A Dtimer_64.h48 unsigned int tick[GET_TICK_NINSTR]; member
57 unsigned long tick, tmp1, tmp2; in get_tick() local
81 /* read tick 2 instructions and 11 skipped */ in get_tick()
83 " rd %%tick, %0\n" in get_tick()
93 : "=&r" (tick), "=&r" (tmp1), "=&r" (tmp2) in get_tick()
96 return tick; in get_tick()
/kernel/linux/linux-6.6/arch/sparc/include/asm/
H A Dtimer_64.h47 unsigned int tick[GET_TICK_NINSTR]; member
56 unsigned long tick, tmp1, tmp2; in get_tick() local
80 /* read tick 2 instructions and 11 skipped */ in get_tick()
82 " rd %%tick, %0\n" in get_tick()
92 : "=&r" (tick), "=&r" (tmp1), "=&r" (tmp2) in get_tick()
95 return tick; in get_tick()
/kernel/liteos_m/kernel/src/
H A Dlos_tick.c114 STATIC UINT32 TickTimerCheck(const ArchTickTimer *tick) in TickTimerCheck() argument
116 if (tick == NULL) { in TickTimerCheck()
120 if ((tick->freq == 0) || in TickTimerCheck()
122 (LOSCFG_BASE_CORE_TICK_PER_SECOND > tick->freq)) { in TickTimerCheck()
126 if (tick->irqNum > (INT32)LOSCFG_PLATFORM_HWI_LIMIT) { in TickTimerCheck()
130 if (tick->periodMax == 0) { in TickTimerCheck()
134 if ((tick->init == NULL) || (tick->reload == NULL) || in TickTimerCheck()
135 (tick->lock == NULL) || (tick in TickTimerCheck()
[all...]
/kernel/liteos_m/arch/xtensa/lx6/gcc/
H A Dlos_timer.c59 ArchTickTimer *tick = &g_archTickTimer; in SysTickStart() local
61 tick->freq = OS_SYS_CLOCK; in SysTickStart()
65 OsSetVector(tick->irqNum, handler, NULL); in SysTickStart()
67 OsSetVector(tick->irqNum, handler); in SysTickStart()
77 LOS_HwiEnable(tick->irqNum); in SysTickStart()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/
H A Dcmd.c173 unsigned int tick; in carl9170_collect_tally() local
181 tick = le32_to_cpu(tally.tick); in carl9170_collect_tally()
182 if (tick) { in carl9170_collect_tally()
183 ar->tally.active += le32_to_cpu(tally.active) / tick; in carl9170_collect_tally()
184 ar->tally.cca += le32_to_cpu(tally.cca) / tick; in carl9170_collect_tally()
185 ar->tally.tx_time += le32_to_cpu(tally.tx_time) / tick; in carl9170_collect_tally()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/carl9170/
H A Dcmd.c173 unsigned int tick; in carl9170_collect_tally() local
181 tick = le32_to_cpu(tally.tick); in carl9170_collect_tally()
182 if (tick) { in carl9170_collect_tally()
183 ar->tally.active += le32_to_cpu(tally.active) / tick; in carl9170_collect_tally()
184 ar->tally.cca += le32_to_cpu(tally.cca) / tick; in carl9170_collect_tally()
185 ar->tally.tx_time += le32_to_cpu(tally.tx_time) / tick; in carl9170_collect_tally()
/kernel/liteos_m/arch/arm/cortex-m3/keil/
H A Dlos_timer.c60 ArchTickTimer *tick = &g_archTickTimer; in SysTickStart() local
62 tick->freq = OS_SYS_CLOCK; in SysTickStart()
66 OsSetVector(tick->irqNum, handler, NULL); in SysTickStart()
68 OsSetVector(tick->irqNum, handler); in SysTickStart()

Completed in 10 milliseconds

12345678910>>...13