Home
last modified time | relevance | path

Searched refs:next_cycle (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.7.0/drivers/timer/
Darm_arch_timer.c107 uint64_t next_cycle = last_cycle + CYC_PER_TICK; in arm_arch_timer_compare_isr() local
109 arm_arch_timer_set_compare(next_cycle); in arm_arch_timer_compare_isr()
152 uint64_t next_cycle; in sys_clock_set_timeout() local
155 next_cycle = last_cycle + CYCLES_MAX; in sys_clock_set_timeout()
157 next_cycle = (last_tick + last_elapsed + ticks) * CYC_PER_TICK; in sys_clock_set_timeout()
158 if ((next_cycle - last_cycle) > CYCLES_MAX) { in sys_clock_set_timeout()
159 next_cycle = last_cycle + CYCLES_MAX; in sys_clock_set_timeout()
163 arm_arch_timer_set_compare(next_cycle); in sys_clock_set_timeout()
Dapic_tsc.c142 uint64_t next_cycle = last_cycle + CYC_PER_TICK; in isr() local
144 set_trigger(next_cycle); in isr()
160 uint64_t next_cycle; in sys_clock_set_timeout() local
163 next_cycle = last_cycle + CYCLES_MAX; in sys_clock_set_timeout()
165 next_cycle = (last_tick + last_elapsed + ticks) * CYC_PER_TICK; in sys_clock_set_timeout()
166 if ((next_cycle - last_cycle) > CYCLES_MAX) { in sys_clock_set_timeout()
167 next_cycle = last_cycle + CYCLES_MAX; in sys_clock_set_timeout()
179 if (next_cycle < last_cycle) { in sys_clock_set_timeout()
180 next_cycle = UINT64_MAX; in sys_clock_set_timeout()
182 set_trigger(next_cycle); in sys_clock_set_timeout()
Dti_dmtimer.c73 uint64_t next_cycle = curr_cycle + CYC_PER_TICK; in ti_dmtimer_isr() local
75 TI_DM_TIMER_WRITE(next_cycle, TMAR, COMPARE_VALUE); in ti_dmtimer_isr()
98 uint32_t next_cycle = curr_cycle + (ticks * CYC_PER_TICK); in sys_clock_set_timeout() local
100 TI_DM_TIMER_WRITE(next_cycle, TMAR, COMPARE_VALUE); in sys_clock_set_timeout()
/Zephyr-Core-3.7.0/subsys/net/lib/mqtt_sn/
Dmqtt_sn.c465 static int process_pubs(struct mqtt_sn_client *client, int64_t *next_cycle) in process_pubs() argument
472 *next_cycle = 0; in process_pubs()
515 if (next_attempt > now && (*next_cycle == 0 || next_attempt < *next_cycle)) { in process_pubs()
516 *next_cycle = next_attempt; in process_pubs()
523 static int process_topics(struct mqtt_sn_client *client, int64_t *next_cycle) in process_topics() argument
581 if (next_attempt > now && (*next_cycle == 0 || next_attempt < *next_cycle)) { in process_topics()
582 *next_cycle = next_attempt; in process_topics()
589 static int process_ping(struct mqtt_sn_client *client, int64_t *next_cycle) in process_ping() argument
614 if (*next_cycle == 0 || next_ping < *next_cycle) { in process_ping()
615 *next_cycle = next_ping; in process_ping()
[all …]