/Zephyr-latest/tests/drivers/counter/counter_seconds/src/ |
D | main.c | 27 uint32_t start, elapsed; in ZTEST() local 37 err = counter_get_value(dev, &elapsed); in ZTEST() 39 elapsed -= start; in ZTEST() 41 zassert_true(elapsed >= MIN_BOUND, "busted minimum bound"); in ZTEST() 42 zassert_true(elapsed <= MAX_BOUND, "busted maximum bound"); in ZTEST()
|
/Zephyr-latest/subsys/net/ip/ |
D | net_timeout.c | 81 uint32_t elapsed; in net_timeout_evaluate() local 87 elapsed = now - timeout->timer_start; in net_timeout_evaluate() 96 remains = (int32_t)(last_delay - elapsed); in net_timeout_evaluate() 119 elapsed -= NET_TIMEOUT_MAX_VALUE; in net_timeout_evaluate() 128 if (timeout->timer_timeout > elapsed) { in net_timeout_evaluate() 129 timeout->timer_timeout -= elapsed; in net_timeout_evaluate() 131 timeout->timer_timeout += NET_TIMEOUT_MAX_VALUE - elapsed; in net_timeout_evaluate()
|
/Zephyr-latest/modules/canopennode/ |
D | canopen_sync.c | 24 uint32_t elapsed = 0; /* microseconds */ in canopen_sync_thread() local 35 sync = CO_process_SYNC(CO, elapsed); in canopen_sync_thread() 37 CO_process_TPDO(CO, sync, elapsed); in canopen_sync_thread() 44 elapsed = (uint32_t)k_cyc_to_ns_floor64(delta) / NSEC_PER_USEC; in canopen_sync_thread()
|
/Zephyr-latest/tests/drivers/clock_control/nrf_onoff_and_bt/src/ |
D | main.c | 99 uint64_t elapsed; in ZTEST() local 130 elapsed = k_uptime_get() - start_time; in ZTEST() 131 if (elapsed > checkpoint) { in ZTEST() 135 } while (elapsed <= TEST_TIME_MS); in ZTEST() 187 uint64_t elapsed; in ZTEST() local 215 elapsed = k_uptime_get() - start_time; in ZTEST() 216 if (elapsed > checkpoint) { in ZTEST() 220 } while (elapsed <= TEST_TIME_MS); in ZTEST()
|
/Zephyr-latest/drivers/timer/ |
D | cortex_m_systick.c | 117 static uint32_t elapsed(void) in elapsed() function 176 elapsed(); in sys_clock_isr() 262 cycle_pre_idle = cycle_count + elapsed(); in sys_clock_set_timeout() 278 uint32_t pending = elapsed(); in sys_clock_set_timeout() 343 uint32_t cyc = elapsed() + unannounced; in sys_clock_elapsed() 354 ret += elapsed(); in sys_clock_cycle_get_32() 363 uint64_t ret = cycle_count + elapsed(); in sys_clock_cycle_get_64() 380 systick_diff = cycle_count + elapsed() - cycle_pre_idle; in sys_clock_idle_exit() 418 dcycles = cycle_count + elapsed() - announced_cycles; in sys_clock_idle_exit()
|
D | mchp_mec5_ktimer.c | 200 int32_t elapsed; in sys_clock_elapsed() local 207 elapsed = (int32_t)total_cycles - (int32_t)last_announcement; in sys_clock_elapsed() 208 if (elapsed < 0) { in sys_clock_elapsed() 209 elapsed = -1 * elapsed; in sys_clock_elapsed() 211 ticks = (uint32_t)elapsed; in sys_clock_elapsed()
|
D | mchp_xec_rtos_timer.c | 251 int32_t elapsed; in sys_clock_elapsed() local 258 elapsed = (int32_t)total_cycles - (int32_t)last_announcement; in sys_clock_elapsed() 259 if (elapsed < 0) { in sys_clock_elapsed() 260 elapsed = -1 * elapsed; in sys_clock_elapsed() 262 ticks = (uint32_t)elapsed; in sys_clock_elapsed()
|
D | arcv2_timer0.c | 175 static uint32_t elapsed(void) in elapsed() function 246 elapsed(); in timer_int_handler() 318 cycle_count += elapsed(); in sys_clock_set_timeout() 372 cyc = elapsed() + cycle_count - announced_cycles; in sys_clock_elapsed() 386 uint32_t ret = elapsed() + cycle_count; in sys_clock_cycle_get_32()
|
/Zephyr-latest/samples/modules/canopennode/src/ |
D | main.c | 204 uint32_t elapsed; in main() local 236 elapsed = 0U; /* milliseconds */ in main() 264 reset = CO_process(CO, (uint16_t)elapsed, &timeout); in main() 288 elapsed = (uint32_t)k_uptime_delta(×tamp); in main() 294 elapsed = 0U; in main()
|
/Zephyr-latest/kernel/ |
D | timeout.c | 62 static int32_t elapsed(void) in elapsed() function 86 int32_t ticks_elapsed = elapsed(); in next_timeout() 122 to->dticks = timeout.ticks + 1 + elapsed(); in z_add_timeout() 179 ticks = timeout_rem(timeout) - elapsed(); in z_timeout_remaining() 266 t = curr_tick + elapsed(); in sys_clock_tick_get()
|
/Zephyr-latest/tests/posix/common/src/ |
D | timer.c | 74 uint64_t elapsed = secs_elapsed*NSEC_PER_SEC + nsecs_elapsed; in test_timer() local 77 int expected_signal_count = (elapsed - first_sig) / sig_interval + 1; in test_timer()
|
/Zephyr-latest/tests/kernel/timer/starve/ |
D | README.txt | 21 24-bit resolution and determines elapsed time by a 24-bit unsigned
|
/Zephyr-latest/subsys/net/lib/tftp/ |
D | Kconfig | 26 data from the TFTP Server. Once this time has elapsed, the TFTP Client
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_scan.c | 949 uint16_t elapsed; local 951 elapsed = lazy + 1; 952 if (lll->duration_expire > elapsed) { 953 lll->duration_expire -= elapsed; 960 scan->duration_lazy - elapsed;
|
/Zephyr-latest/tests/kernel/timer/timer_behavior/ |
D | Kconfig | 40 # of elapsed ticks when scheduling a new timeout but before the timer
|
/Zephyr-latest/doc/kernel/services/timing/ |
D | clocks.rst | 60 to an elapsed number of microseconds in a full 64 bits of precision. 173 number of ticks that have elapsed since the last announce call (or 193 provides a current indication of how many ticks have elapsed (as 212 as no more than one tick can be detected as having elapsed (because 234 zero if no ticks have elapsed. It should not "skip" the announce 321 /* Subtract elapsed time */
|
D | timers.rst | 60 guaranteed to have elapsed. 223 elapsed. In particular, timers should be used when higher precision
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_adv_iso.c | 109 uint16_t elapsed; in prepare() local 118 elapsed = p->lazy + 1U; in prepare() 123 lll->latency_prepare += elapsed; in prepare()
|
D | lll_sync_iso.c | 122 uint16_t elapsed; in prepare() local 131 elapsed = p->lazy + 1U; in prepare() 136 lll->latency_prepare += elapsed; in prepare() 140 elapsed; in prepare()
|
D | lll_central_iso.c | 97 uint16_t elapsed; in lll_central_iso_prepare() local 106 elapsed = p->lazy + 1U; in lll_central_iso_prepare() 110 cig_lll->latency_prepare += elapsed; in lll_central_iso_prepare()
|
/Zephyr-latest/subsys/net/lib/dhcpv6/ |
D | dhcpv6.c | 264 uint64_t elapsed; in dhcpv6_add_option_elapsed_time() local 274 elapsed = (k_uptime_get() - since) / 10ULL; in dhcpv6_add_option_elapsed_time() 275 if (elapsed > 0xFFFF) { in dhcpv6_add_option_elapsed_time() 276 elapsed = 0xFFFF; in dhcpv6_add_option_elapsed_time() 279 ret = net_pkt_write_be16(pkt, (uint16_t)elapsed); in dhcpv6_add_option_elapsed_time()
|
/Zephyr-latest/drivers/serial/ |
D | uart_sam0.c | 365 uint32_t elapsed = now - dev_data->rx_timeout_start; in uart_sam0_rx_timeout() local 367 if (elapsed >= dev_data->rx_timeout_time) { in uart_sam0_rx_timeout() 377 uint32_t remaining = MIN(dev_data->rx_timeout_time - elapsed, in uart_sam0_rx_timeout()
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp_cp.c | 718 int64_t elapsed; in cp_phy_state_update() local 724 elapsed = osdp_millis_since(pd->phy_tstamp); in cp_phy_state_update() 725 if (elapsed < OSDP_CMD_RETRY_WAIT_MS) { in cp_phy_state_update()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | access.c | 755 uint32_t elapsed; in next_period() local 757 elapsed = k_uptime_get_32() - pub->period_start; in next_period() 758 LOG_DBG("Publishing took %ums", elapsed); in next_period() 767 if (period && elapsed >= period) { in next_period() 789 if (elapsed >= period) { in next_period() 800 return period - elapsed; in next_period()
|
/Zephyr-latest/modules/openthread/ |
D | Kconfig.features | 114 Use host time rather than radio platform time to track elapsed time
|