Home
last modified time | relevance | path

Searched refs:cyc (Results 1 – 21 of 21) sorted by relevance

/Zephyr-latest/tests/kernel/timer/timer_api/src/
Dtimer_convert.c50 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/
Dmain.c124 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/
Dxtensa_sys_timer.c75 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()
Desp32_sys_timer.c94 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()
Dmcux_os_timer.c203 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()
Dintel_adsp_timer.c145 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()
Driscv_machine_timer.c200 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()
Dnrf_rtc_timer.c73 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 …]
Darcv2_timer0.c366 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()
Dmcux_gpt_timer.c176 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()
Dmtk_adsp_timer.c108 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()
Dsmartbond_timer.c20 #define CYC_TO_TICK(cyc) k_cyc_to_ticks_ceil32(cyc) argument
Dcortex_m_systick.c343 uint32_t cyc = elapsed() + unannounced; in sys_clock_elapsed() local
346 return cyc / CYC_PER_TICK; in sys_clock_elapsed()
Dhpet.c370 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/
Dnrf_timer_timer.c36 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/
Dpolicy_default.c16 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/
Dmain.c444 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/
Darduino_portenta_h7-common.dtsi148 * RefreshRate = 64 ms / 8192 cyc = 7.8125 us/cyc
/Zephyr-latest/doc/services/storage/zms/
Dzms.rst74 * - 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/
DREADME.rst139 I: ---------- Latency (cyc) ----------
/Zephyr-latest/doc/kernel/services/timing/
Dclocks.rst50 "us" (microseconds), "tick", or "cyc" can be converted to any other.