/Zephyr-latest/tests/kernel/timer/timer_api/src/ |
D | timer_convert.c | 50 TESTFUNC(ms, cyc, floor, 32) 51 TESTFUNC(ms, cyc, floor, 64) 52 TESTFUNC(ms, cyc, near, 32) 53 TESTFUNC(ms, cyc, near, 64) 54 TESTFUNC(ms, cyc, ceil, 32) 55 TESTFUNC(ms, cyc, ceil, 64) 62 TESTFUNC(us, cyc, floor, 32) 63 TESTFUNC(us, cyc, floor, 64) 64 TESTFUNC(us, cyc, near, 32) 65 TESTFUNC(us, cyc, near, 64) [all …]
|
/Zephyr-latest/tests/subsys/logging/log_benchmark/src/ |
D | main.c | 124 uint32_t cyc = test_helpers_cycle_get(); \ 129 cyc = test_helpers_cycle_get() - cyc; \ 130 inc_time += cyc; \ 134 nargs, cyc / _msg_cnt, k_cyc_to_us_ceil32(cyc) / _msg_cnt, \ 135 _msg_cnt, cyc); \ 169 uint32_t cyc = test_helpers_cycle_get(); \ 174 cyc = test_helpers_cycle_get() - cyc; \ 175 inc_time += cyc; \ 179 nargs, cyc / _msg_cnt, k_cyc_to_us_ceil32(cyc) / _msg_cnt, \ 180 _msg_cnt, cyc); \ [all …]
|
/Zephyr-latest/drivers/timer/ |
D | xtensa_sys_timer.c | 75 uint32_t curr = ccount(), cyc, adj; in sys_clock_set_timeout() local 78 cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() 80 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 81 cyc += adj; in sys_clock_set_timeout() 83 cyc = MAX_CYC; in sys_clock_set_timeout() 85 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 86 cyc += last_count; in sys_clock_set_timeout() 88 if ((cyc - curr) < MIN_DELAY) { in sys_clock_set_timeout() 89 cyc += CYC_PER_TICK; in sys_clock_set_timeout() 92 set_ccompare(cyc); in sys_clock_set_timeout()
|
D | esp32_sys_timer.c | 94 uint32_t adj, cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() local 98 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 99 cyc += adj; in sys_clock_set_timeout() 101 cyc = MAX_CYC; in sys_clock_set_timeout() 103 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 105 if ((int32_t)(cyc + last_count - now) < MIN_DELAY) { in sys_clock_set_timeout() 106 cyc += CYC_PER_TICK; in sys_clock_set_timeout() 109 set_systimer_alarm(cyc + last_count); in sys_clock_set_timeout()
|
D | mcux_os_timer.c | 203 uint32_t adj, cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() local 207 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 208 cyc += adj; in sys_clock_set_timeout() 210 cyc = MAX_CYC; in sys_clock_set_timeout() 212 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 214 if ((int32_t)(cyc + last_count - now) < MIN_DELAY) { in sys_clock_set_timeout() 215 cyc += CYC_PER_TICK; in sys_clock_set_timeout() 218 OSTIMER_SetMatchValue(base, cyc + last_count - cyc_sys_compensated, NULL); in sys_clock_set_timeout()
|
D | intel_adsp_timer.c | 145 uint32_t adj, cyc = ticks * CYC_PER_TICK; in sys_clock_set_timeout() local 149 if (cyc <= MAX_CYC - adj) { in sys_clock_set_timeout() 150 cyc += adj; in sys_clock_set_timeout() 152 cyc = MAX_CYC; in sys_clock_set_timeout() 154 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 155 next = last_count + cyc; in sys_clock_set_timeout()
|
D | riscv_machine_timer.c | 200 uint64_t cyc; in sys_clock_set_timeout() local 203 cyc = last_count + CYCLES_MAX; in sys_clock_set_timeout() 205 cyc = (last_ticks + last_elapsed + ticks) * CYC_PER_TICK; in sys_clock_set_timeout() 206 if ((cyc - last_count) > CYCLES_MAX) { in sys_clock_set_timeout() 207 cyc = last_count + CYCLES_MAX; in sys_clock_set_timeout() 210 set_mtimecmp(cyc); in sys_clock_set_timeout()
|
D | nrf_rtc_timer.c | 73 static void set_comparator(int32_t chan, uint32_t cyc) in set_comparator() argument 75 nrfy_rtc_cc_set(RTC, chan, cyc & COUNTER_MAX); in set_comparator() 640 uint32_t cyc; in sys_clock_set_timeout() local 647 cyc = MAX_TICKS * CYC_PER_TICK; in sys_clock_set_timeout() 653 cyc = CLAMP(ticks, 1, (int32_t)MAX_TICKS); in sys_clock_set_timeout() 654 cyc *= CYC_PER_TICK; in sys_clock_set_timeout() 666 cyc = 0; in sys_clock_set_timeout() 672 cyc += unannounced; in sys_clock_set_timeout() 673 cyc = DIV_ROUND_UP(cyc, CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 680 if (cyc > MAX_CYCLES) { in sys_clock_set_timeout() [all …]
|
D | arcv2_timer0.c | 366 uint32_t cyc; in sys_clock_elapsed() local 370 cyc = (z_arc_connect_gfrc_read() - last_time); in sys_clock_elapsed() 372 cyc = elapsed() + cycle_count - announced_cycles; in sys_clock_elapsed() 377 return cyc / CYC_PER_TICK; in sys_clock_elapsed()
|
D | mcux_gpt_timer.c | 176 uint32_t cyc = GPT_GetCurrentTimerCount(base); in sys_clock_elapsed() local 178 cyc -= announced_cycles; in sys_clock_elapsed() 180 return cyc / CYC_PER_TICK; in sys_clock_elapsed()
|
D | mtk_adsp_timer.c | 108 uint32_t cyc = 2 * (dt - (uint32_t)(now - last_announce)); in sys_clock_set_timeout() local 114 OSTIMERS[0].rst = cyc; in sys_clock_set_timeout()
|
D | smartbond_timer.c | 20 #define CYC_TO_TICK(cyc) k_cyc_to_ticks_ceil32(cyc) argument
|
D | cortex_m_systick.c | 343 uint32_t cyc = elapsed() + unannounced; in sys_clock_elapsed() local 346 return cyc / CYC_PER_TICK; in sys_clock_elapsed()
|
D | hpet.c | 370 uint64_t cyc = (last_tick + last_elapsed + ticks) * cyc_per_tick; in sys_clock_set_timeout() local 372 hpet_timer_comparator_set_safe(cyc); in sys_clock_set_timeout()
|
/Zephyr-latest/boards/qemu/cortex_m0/ |
D | nrf_timer_timer.c | 36 static void set_comparator(uint32_t cyc) in set_comparator() argument 38 nrf_timer_cc_set(TIMER, NRF_TIMER_CC_CHANNEL0, cyc & COUNTER_MAX); in set_comparator() 168 uint32_t cyc; in sys_clock_set_timeout() local 192 cyc = ticks * CYC_PER_TICK + 1 + unannounced; in sys_clock_set_timeout() 193 cyc += (CYC_PER_TICK - 1); in sys_clock_set_timeout() 194 cyc = (cyc / CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout() 199 if (cyc > MAX_CYCLES) { in sys_clock_set_timeout() 200 cyc = MAX_CYCLES; in sys_clock_set_timeout() 203 cyc += last_count; in sys_clock_set_timeout() 204 set_protected_absolute_ticks(cyc); in sys_clock_set_timeout()
|
/Zephyr-latest/subsys/pm/policy/ |
D | policy_default.c | 16 int64_t cyc = -1; in pm_policy_next_state() local 27 cyc = k_ticks_to_cyc_ceil32(ticks); in pm_policy_next_state() 50 if ((cyc < 0) || in pm_policy_next_state() 51 (cyc >= (min_residency_cyc + exit_latency_cyc))) { in pm_policy_next_state()
|
/Zephyr-latest/tests/lib/mpsc_pbuf/src/ |
D | main.c | 444 uint32_t cyc = get_cyc(); in benchmark_item_put_data() local 453 cyc = get_cyc() - cyc; in benchmark_item_put_data() 455 PRINT("put_ext time: %d cycles\n", cyc/repeat); in benchmark_item_put_data() 457 cyc = get_cyc(); in benchmark_item_put_data() 467 cyc = get_cyc() - cyc; in benchmark_item_put_data() 468 PRINT("ext item claim,free: %d cycles\n", cyc/repeat); in benchmark_item_put_data()
|
/Zephyr-latest/boards/arduino/portenta_h7/ |
D | arduino_portenta_h7-common.dtsi | 148 * RefreshRate = 64 ms / 8192 cyc = 7.8125 us/cyc
|
/Zephyr-latest/doc/services/storage/zms/ |
D | zms.rst | 74 * - Close (cyc=1) 75 - Close (cyc=1) 76 - Close (cyc=1) 77 * - Empty (cyc=1) 78 - Empty (cyc=2) 79 - Empty (cyc=2)
|
/Zephyr-latest/samples/kernel/metairq_dispatch/ |
D | README.rst | 139 I: ---------- Latency (cyc) ----------
|
/Zephyr-latest/doc/kernel/services/timing/ |
D | clocks.rst | 50 "us" (microseconds), "tick", or "cyc" can be converted to any other.
|