/kernel/liteos_m/testsuites/sample/kernel/swtmr/ |
D | It_los_swtmr_072.c | 48 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()
|
D | It_los_swtmr_069.c | 39 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()
|
D | It_los_swtmr_068.c | 50 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()
|
D | It_los_swtmr_071.c | 48 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()
|
D | It_los_swtmr_066.c | 50 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()
|
D | It_los_swtmr_074.c | 52 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()
|
D | It_los_swtmr_067.c | 39 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/linux/linux-5.10/sound/core/seq/ |
D | seq_timer.h | 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->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick() 59 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
|
D | seq_prioq.c | 91 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() 355 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
|
D | seq_timer.c | 24 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 30 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution() 31 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution() 33 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution() 34 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution() 35 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution() 105 tmr->tick.cur_tick = 0; in seq_timer_reset() 106 tmr->tick.fraction = 0; in seq_timer_reset() 150 snd_seq_timer_update_tick(&tmr->tick, resolution); in snd_seq_timer_interrupt() 216 tmr->tick.cur_tick = position; in snd_seq_timer_set_position_tick() [all …]
|
/kernel/liteos_a/compat/posix/include/ |
D | time_posix.h | 70 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/liteos_m/kal/posix/src/ |
D | signal.c | 43 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()
|
D | time_internal.h | 97 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/ |
D | adjtick.c | 128 tx1.tick = tickval; in check_tick_adj() 144 if (tx1.offset || tx1.freq || tx1.tick != tickval) { 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() 203 tx1.tick = systick; in main()
|
/kernel/linux/linux-5.10/kernel/time/ |
D | Makefile | 12 obj-$(CONFIG_GENERIC_CLOCKEVENTS) += clockevents.o tick-common.o 14 obj-y += tick-broadcast.o 15 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o 18 obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o tick-sched.o
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/core/swtmr/full/ |
D | It_los_swtmr_066.c | 54 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()
|
D | It_los_swtmr_068.c | 54 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/ |
D | timer_64.h | 48 unsigned int tick[GET_TICK_NINSTR]; member 57 unsigned long tick, tmp1, tmp2; in get_tick() local 93 : "=&r" (tick), "=&r" (tmp1), "=&r" (tmp2) in get_tick() 96 return tick; in get_tick()
|
/kernel/liteos_m/kernel/src/ |
D | los_tick.c | 114 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->unlock == NULL) || in TickTimerCheck() 136 (tick->getCycle == NULL)) { in TickTimerCheck()
|
/kernel/liteos_m/arch/xtensa/lx6/gcc/ |
D | los_timer.c | 59 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 HwiUnmask(tick->irqNum); in SysTickStart()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/ |
D | cmd.c | 173 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-5.10/Documentation/devicetree/bindings/watchdog/ |
D | sirfsoc_wdt.txt | 4 - compatible: "sirf,prima2-tick" 5 - reg: Address range of tick timer/WDT register set 14 compatible = "sirf,prima2-tick";
|
/kernel/liteos_m/arch/arm/cortex-m3/keil/ |
D | los_timer.c | 60 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()
|
/kernel/liteos_m/arch/arm/cortex-m33/gcc/TZ/non_secure/ |
D | los_timer.c | 58 ArchTickTimer *tick = &g_archTickTimer; in SysTickStart() local 60 tick->freq = OS_SYS_CLOCK; in SysTickStart() 64 OsSetVector(tick->irqNum, handler, NULL); in SysTickStart() 66 OsSetVector(tick->irqNum, handler); in SysTickStart()
|
/kernel/liteos_m/arch/arm/cortex-m55/gcc/NTZ/ |
D | los_timer.c | 58 ArchTickTimer *tick = &g_archTickTimer; in SysTickStart() local 60 tick->freq = OS_SYS_CLOCK; in SysTickStart() 64 OsSetVector(tick->irqNum, handler, NULL); in SysTickStart() 66 OsSetVector(tick->irqNum, handler); in SysTickStart()
|