Home
last modified time | relevance | path

Searched refs:dticks (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/kernel/
Dtimeout.c56 next(t)->dticks += t->dticks; in remove_timeout()
90 ((int64_t)(to->dticks - ticks_elapsed) > (int64_t)INT_MAX)) { in next_timeout()
93 ret = MAX(0, to->dticks - ticks_elapsed); in next_timeout()
120 to->dticks = MAX(1, ticks); in z_add_timeout()
122 to->dticks = timeout.ticks + 1 + elapsed(); in z_add_timeout()
126 if (t->dticks > to->dticks) { in z_add_timeout()
127 t->dticks -= to->dticks; in z_add_timeout()
131 to->dticks -= t->dticks; in z_add_timeout()
164 ticks += t->dticks; in timeout_rem()
231 (t != NULL) && (t->dticks <= announce_remaining); in sys_clock_announce()
[all …]
/Zephyr-latest/tests/bluetooth/audio/mocks/src/
Dkernel.c38 dwork->timeout.dticks = delay.ticks; in k_work_reschedule()
48 if (dwork->timeout.dticks == 0) { in k_work_reschedule()
71 dwork->timeout.dticks = delay.ticks; in k_work_schedule()
72 if (dwork->timeout.dticks == 0) { in k_work_schedule()
120 if (dwork->timeout.dticks > timeout.ticks) { in k_sleep()
121 dwork->timeout.dticks -= timeout.ticks; in k_sleep()
/Zephyr-latest/drivers/timer/
Driscv_machine_timer.c175 uint32_t dticks = (cycle_diff_t)dcycles / CYC_PER_TICK; in timer_isr() local
177 last_count += (cycle_diff_t)dticks * CYC_PER_TICK; in timer_isr()
178 last_ticks += dticks; in timer_isr()
188 sys_clock_announce(dticks); in timer_isr()
224 uint32_t dticks = (cycle_diff_t)dcycles / CYC_PER_TICK; in sys_clock_elapsed() local
226 last_elapsed = dticks; in sys_clock_elapsed()
228 return dticks; in sys_clock_elapsed()
Dcortex_m_systick.c173 uint32_t dticks; in sys_clock_isr() local
212 dticks = dcycles / CYC_PER_TICK; in sys_clock_isr()
213 announced_cycles += dticks * CYC_PER_TICK; in sys_clock_isr()
214 sys_clock_announce(dticks); in sys_clock_isr()
375 uint32_t idle_timer_diff, idle_timer_post, dcycles, dticks; in sys_clock_idle_exit() local
419 dticks = dcycles / CYC_PER_TICK; in sys_clock_idle_exit()
420 announced_cycles += dticks * CYC_PER_TICK; in sys_clock_idle_exit()
421 sys_clock_announce(dticks); in sys_clock_idle_exit()
Dite_it8xxx2_timer.c191 uint32_t dticks = (~(IT8XXX2_EXT_CNTOX(FREE_RUN_TIMER)) - in evt_timer_isr() local
193 last_announced_hw_cnt += (dticks * HW_CNT_PER_SYS_TICK); in evt_timer_isr()
194 last_ticks += dticks; in evt_timer_isr()
197 sys_clock_announce(dticks); in evt_timer_isr()
297 uint32_t dticks = (~(IT8XXX2_EXT_CNTOX(FREE_RUN_TIMER)) - in sys_clock_elapsed() local
299 last_elapsed = dticks; in sys_clock_elapsed()
303 return dticks; in sys_clock_elapsed()
317 uint32_t dticks = ~(IT8XXX2_EXT_CNTOX(FREE_RUN_TIMER)); in sys_clock_cycle_get_32() local
319 return dticks; in sys_clock_cycle_get_32()
Darcv2_timer0.c214 uint32_t dticks; in timer_int_handler() local
227 dticks = (curr_time - last_time) / CYC_PER_TICK; in timer_int_handler()
229 last_time += dticks * CYC_PER_TICK; in timer_int_handler()
233 sys_clock_announce(dticks); in timer_int_handler()
252 dticks = (cycle_count - announced_cycles) / CYC_PER_TICK; in timer_int_handler()
253 announced_cycles += dticks * CYC_PER_TICK; in timer_int_handler()
254 sys_clock_announce(TICKLESS ? dticks : 1); in timer_int_handler()
Dsmartbond_timer.c181 int32_t dticks; in timer2_isr() local
190 dticks = CYC_TO_TICK(delta); in timer2_isr()
191 last_isr_val_rounded += TICK_TO_CYC(dticks); in timer2_isr()
192 announced_ticks += dticks; in timer2_isr()
193 sys_clock_announce(dticks); in timer2_isr()
Dxtensa_sys_timer.c49 uint32_t dticks = (curr - last_count) / CYC_PER_TICK; in ccompare_isr() local
51 last_count += dticks * CYC_PER_TICK; in ccompare_isr()
63 sys_clock_announce(IS_ENABLED(CONFIG_TICKLESS_KERNEL) ? dticks : 1); in ccompare_isr()
Dintel_adsp_timer.c107 uint64_t dticks; in compare_isr() local
112 dticks = (curr - last_count) / CYC_PER_TICK; in compare_isr()
118 last_count += dticks * CYC_PER_TICK; in compare_isr()
131 sys_clock_announce((int32_t)dticks); in compare_isr()
Dstm32_lptim_timer.c151 uint32_t dticks = (autoreload in lptim_irq_handler() local
156 ? dticks : (dticks > 0)); in lptim_irq_handler()
608 uint32_t stdby_timer_diff, stdby_timer_post, dticks; in sys_clock_idle_exit() local
639 dticks = (missed_lptim_cnt * CONFIG_SYS_CLOCK_TICKS_PER_SEC) in sys_clock_idle_exit()
641 sys_clock_announce(dticks); in sys_clock_idle_exit()
Desp32_sys_timer.c67 uint64_t dticks = (uint64_t)((now - last_count) / CYC_PER_TICK); in sys_timer_isr() local
69 last_count += dticks * CYC_PER_TICK; in sys_timer_isr()
81 sys_clock_announce(dticks); in sys_timer_isr()
Dambiq_stimer.c76 uint32_t dticks = elapsed_cycle / CYC_PER_TICK; in update_tick_counter() local
78 g_last_time_stamp += dticks * CYC_PER_TICK; in update_tick_counter()
79 g_tick_elapsed += dticks; in update_tick_counter()
Dhpet.c306 uint32_t dticks = (uint32_t)((now - last_count) / cyc_per_tick); in hpet_isr() local
308 last_count += (uint64_t)dticks * cyc_per_tick; in hpet_isr()
309 last_tick += dticks; in hpet_isr()
319 sys_clock_announce(dticks); in hpet_isr()
Dmips_cp0_timer.c47 uint32_t dticks = ((now - last_count) / CYC_PER_TICK); in timer_isr() local
61 sys_clock_announce(TICKLESS ? dticks : 1); in timer_isr()
Dmcux_os_timer.c54 uint32_t dticks = (uint32_t)((now - last_count) / CYC_PER_TICK); in mcux_lpc_ostick_isr() local
59 last_count += dticks * CYC_PER_TICK; in mcux_lpc_ostick_isr()
71 sys_clock_announce(IS_ENABLED(CONFIG_TICKLESS_KERNEL) ? dticks : 1); in mcux_lpc_ostick_isr()
Dnpcx_itim_timer.c163 uint32_t dticks; in npcx_itim_start_evt_tmr_by_tick() local
166 dticks = DIV_ROUND_UP(dcycles * EVT_CYCLES_PER_SEC, in npcx_itim_start_evt_tmr_by_tick()
168 cyc_evt_timeout = CLAMP(dticks, 1, NPCX_ITIM32_MAX_CNT); in npcx_itim_start_evt_tmr_by_tick()
Dnrf_grtc_timer.c144 uint64_t dticks; in sys_clock_timeout_handler() local
151 dticks = counter_sub(cc_val, last_count) / CYC_PER_TICK; in sys_clock_timeout_handler()
153 last_count += dticks * CYC_PER_TICK; in sys_clock_timeout_handler()
162 sys_clock_announce((int32_t)dticks); in sys_clock_timeout_handler()
Dnrf_rtc_timer.c476 uint32_t dticks = (uint32_t)(expire_time - last_count) / CYC_PER_TICK; in sys_clock_timeout_handler() local
478 last_count += dticks * CYC_PER_TICK; in sys_clock_timeout_handler()
490 sys_clock_announce(dticks); in sys_clock_timeout_handler()
/Zephyr-latest/boards/qemu/cortex_m0/
Dnrf_timer_timer.c151 uint32_t dticks = counter_sub(t, last_count) / CYC_PER_TICK; in timer0_nrf_isr() local
153 last_count += dticks * CYC_PER_TICK; in timer0_nrf_isr()
162 sys_clock_announce(IS_ENABLED(CONFIG_TICKLESS_KERNEL) ? dticks : (dticks > 0)); in timer0_nrf_isr()
/Zephyr-latest/include/zephyr/
Dkernel_structs.h301 int64_t dticks; member
303 int32_t dticks; member
Dkernel.h1587 .dticks = 0, \
/Zephyr-latest/subsys/shell/modules/kernel_service/thread/
Dlist.c83 (int64_t)thread->base.timeout.dticks); in shell_tdata_dump()