/Zephyr-Core-2.7.6/tests/kernel/timer/timer_api/src/ |
D | timer_convert.c | 37 TESTREC(ms, cyc, floor, 32), 38 TESTREC(ms, cyc, floor, 64), 39 TESTREC(ms, cyc, near, 32), 40 TESTREC(ms, cyc, near, 64), 41 TESTREC(ms, cyc, ceil, 32), 42 TESTREC(ms, cyc, ceil, 64), 49 TESTREC(us, cyc, floor, 32), 50 TESTREC(us, cyc, floor, 64), 51 TESTREC(us, cyc, near, 32), 52 TESTREC(us, cyc, near, 64), [all …]
|
/Zephyr-Core-2.7.6/tests/subsys/logging/log_benchmark/src/ |
D | main.c | 136 uint32_t cyc = test_helpers_cycle_get(); \ 141 cyc = test_helpers_cycle_get() - cyc; \ 142 inc_time += cyc; \ 146 nargs, cyc / _msg_cnt, k_cyc_to_us_ceil32(cyc) / _msg_cnt, \ 147 _msg_cnt, cyc); \ 176 uint32_t cyc = test_helpers_cycle_get(); \ 181 cyc = test_helpers_cycle_get() - cyc; \ 182 inc_time += cyc; \ 186 nargs, cyc / _msg_cnt, k_cyc_to_us_ceil32(cyc) / _msg_cnt, \ 187 _msg_cnt, cyc); \ [all …]
|
/Zephyr-Core-2.7.6/drivers/timer/ |
D | xtensa_sys_timer.c | 78 uint32_t curr = ccount(), cyc, adj; in sys_clock_set_timeout() local 81 cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() 83 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 84 cyc += adj; in sys_clock_set_timeout() 86 cyc = MAX_CYC; in sys_clock_set_timeout() 88 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 89 cyc += last_count; in sys_clock_set_timeout() 91 if ((cyc - curr) < MIN_DELAY) { in sys_clock_set_timeout() 92 cyc += CYC_PER_TICK; in sys_clock_set_timeout() 95 set_ccompare(cyc); in sys_clock_set_timeout()
|
D | mcux_os_timer.c | 91 uint32_t adj, cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() local 95 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 96 cyc += adj; in sys_clock_set_timeout() 98 cyc = MAX_CYC; in sys_clock_set_timeout() 100 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 102 if ((int32_t)(cyc + last_count - now) < MIN_DELAY) { in sys_clock_set_timeout() 103 cyc += CYC_PER_TICK; in sys_clock_set_timeout() 106 OSTIMER_SetMatchValue(base, cyc + last_count, NULL); in sys_clock_set_timeout()
|
D | riscv_machine_timer.c | 113 uint32_t adj, cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() local 117 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 118 cyc += adj; in sys_clock_set_timeout() 120 cyc = MAX_CYC; in sys_clock_set_timeout() 122 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 124 if ((int32_t)(cyc + last_count - now) < MIN_DELAY) { in sys_clock_set_timeout() 125 cyc += CYC_PER_TICK; in sys_clock_set_timeout() 128 set_mtimecmp(cyc + last_count); in sys_clock_set_timeout()
|
D | esp32c3_sys_timer.c | 100 uint32_t adj, cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() local 104 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 105 cyc += adj; in sys_clock_set_timeout() 107 cyc = MAX_CYC; in sys_clock_set_timeout() 109 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 111 if ((int32_t)(cyc + last_count - now) < MIN_DELAY) { in sys_clock_set_timeout() 112 cyc += CYC_PER_TICK; in sys_clock_set_timeout() 115 set_systimer_alarm(cyc + last_count); in sys_clock_set_timeout()
|
D | hpet.c | 397 uint64_t now = hpet_counter_get(), cyc, adj; in sys_clock_set_timeout() local 401 cyc = (uint64_t)ticks * cyc_per_tick; in sys_clock_set_timeout() 403 if (cyc <= max_cyc - adj) { in sys_clock_set_timeout() 404 cyc += adj; in sys_clock_set_timeout() 406 cyc = max_cyc; in sys_clock_set_timeout() 408 cyc = (cyc / cyc_per_tick) * cyc_per_tick; in sys_clock_set_timeout() 409 cyc += last_count; in sys_clock_set_timeout() 411 if ((int64_t)(cyc - now) < HPET_CMP_MIN_DELAY) { in sys_clock_set_timeout() 412 cyc = now + HPET_CMP_MIN_DELAY; in sys_clock_set_timeout() 415 hpet_timer_comparator_set(cyc); in sys_clock_set_timeout()
|
D | cavs_timer.c | 147 uint32_t adj, cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() local 151 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 152 cyc += adj; in sys_clock_set_timeout() 154 cyc = MAX_CYC; in sys_clock_set_timeout() 156 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 157 next = last_count + cyc; in sys_clock_set_timeout()
|
D | nrf_rtc_timer.c | 54 static void set_comparator(int32_t chan, uint32_t cyc) in set_comparator() argument 56 nrf_rtc_cc_set(RTC, chan, cyc & COUNTER_MAX); in set_comparator() 358 uint32_t cyc; in sys_clock_set_timeout() local 381 cyc = ticks * CYC_PER_TICK + 1 + unannounced; in sys_clock_set_timeout() 382 cyc += (CYC_PER_TICK - 1); in sys_clock_set_timeout() 383 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 388 if (cyc > MAX_CYCLES) { in sys_clock_set_timeout() 389 cyc = MAX_CYCLES; in sys_clock_set_timeout() 392 cyc += last_count; in sys_clock_set_timeout() 393 compare_set(0, cyc, sys_clock_timeout_handler, NULL); in sys_clock_set_timeout()
|
D | arcv2_timer0.c | 422 uint32_t cyc; in sys_clock_elapsed() local 426 cyc = (z_arc_connect_gfrc_read() - last_time); in sys_clock_elapsed() 428 cyc = elapsed() + cycle_count - announced_cycles; in sys_clock_elapsed() 433 return cyc / CYC_PER_TICK; in sys_clock_elapsed()
|
D | cortex_m_systick.c | 256 uint32_t cyc = elapsed() + cycle_count - announced_cycles; in sys_clock_elapsed() local 259 return cyc / CYC_PER_TICK; in sys_clock_elapsed()
|
/Zephyr-Core-2.7.6/boards/arm/qemu_cortex_m0/ |
D | nrf_timer_timer.c | 34 static void set_comparator(uint32_t cyc) in set_comparator() argument 36 nrf_timer_cc_set(TIMER, NRF_TIMER_CC_CHANNEL0, cyc & COUNTER_MAX); in set_comparator() 191 uint32_t cyc; in sys_clock_set_timeout() local 215 cyc = ticks * CYC_PER_TICK + 1 + unannounced; in sys_clock_set_timeout() 216 cyc += (CYC_PER_TICK - 1); in sys_clock_set_timeout() 217 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 222 if (cyc > MAX_CYCLES) { in sys_clock_set_timeout() 223 cyc = MAX_CYCLES; in sys_clock_set_timeout() 226 cyc += last_count; in sys_clock_set_timeout() 227 set_protected_absolute_ticks(cyc); in sys_clock_set_timeout()
|
/Zephyr-Core-2.7.6/doc/reference/kernel/timing/ |
D | clocks.rst | 50 "us" (microseconds), "tick", or "cyc" can be converted to any other.
|