Home
last modified time | relevance | path

Searched refs:cycle_count (Results 1 – 15 of 15) sorted by relevance

/Zephyr-Core-3.6.0/samples/userspace/syscall_perf/src/
Dtest_supervisor.c16 register unsigned long cycle_before, cycle_count; in supervisor_thread_function() local
28 cycle_count = csr_read(0xB00); in supervisor_thread_function()
31 if (cycle_count > cycle_before) { in supervisor_thread_function()
32 cycle_count -= cycle_before; in supervisor_thread_function()
34 cycle_count += 0xFFFFFFFF - cycle_before; in supervisor_thread_function()
47 thread, cycle_count, inst_count); in supervisor_thread_function()
Dtest_user.c16 register unsigned long cycle_before, cycle_count; in user_thread_function() local
28 cycle_count = csr_read(0xC00); in user_thread_function()
31 if (cycle_count > cycle_before) { in user_thread_function()
32 cycle_count -= cycle_before; in user_thread_function()
34 cycle_count += 0xFFFFFFFF - cycle_before; in user_thread_function()
47 thread, cycle_count, inst_count); in user_thread_function()
/Zephyr-Core-3.6.0/drivers/timer/
Dcortex_m_systick.c56 static cycle_t cycle_count; variable
180 cycle_count += overflow_cyc; in sys_clock_isr()
209 dcycles = cycle_count - announced_cycles; in sys_clock_isr()
257 cycle_pre_idle = cycle_count + elapsed(); in sys_clock_set_timeout()
277 cycle_count += pending; in sys_clock_set_timeout()
280 uint32_t unannounced = cycle_count - announced_cycles; in sys_clock_set_timeout()
322 cycle_count += (val1 + (last_load_ - val2)); in sys_clock_set_timeout()
324 cycle_count += (val1 - val2); in sys_clock_set_timeout()
337 uint32_t unannounced = cycle_count - announced_cycles; in sys_clock_elapsed()
347 uint32_t ret = cycle_count; in sys_clock_cycle_get_32()
[all …]
Darcv2_timer0.c82 static uint32_t cycle_count; variable
247 cycle_count += overflow_cycles; in timer_int_handler()
252 dticks = (cycle_count - announced_cycles) / CYC_PER_TICK; in timer_int_handler()
318 cycle_count += elapsed(); in sys_clock_set_timeout()
328 unannounced = cycle_count - announced_cycles; 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()
Drv32m1_lptmr_timer.c50 static volatile uint32_t cycle_count; variable
57 cycle_count += CYCLES_PER_TICK; /* Track cycles. */ in lptmr_irq_handler()
63 return cycle_count + SYSTEM_TIMER_INSTANCE->CNR; in sys_clock_cycle_get_32()
/Zephyr-Core-3.6.0/drivers/sensor/sbs_gauge/
Dsbs_gauge.c101 val->val1 = data->cycle_count; in sbs_gauge_channel_get()
231 &data->cycle_count); in sbs_gauge_sample_fetch()
232 data->cycle_count = (data->cycle_count) & 0x00FF; in sbs_gauge_sample_fetch()
Dsbs_gauge.h73 uint16_t cycle_count; member
/Zephyr-Core-3.6.0/drivers/sensor/max17055/
Dmax17055.h67 uint16_t cycle_count; member
Dmax17055.c213 valp->val1 = priv->cycle_count / 100; in max17055_channel_get()
214 valp->val2 = priv->cycle_count % 100 * 10000; in max17055_channel_get()
308 ret = max17055_reg_read(dev, CYCLES, &priv->cycle_count); in max17055_sample_fetch()
/Zephyr-Core-3.6.0/drivers/sensor/max17262/
Dmax17262.h70 uint16_t cycle_count; member
Dmax17262.c142 valp->val1 = data->cycle_count / 100; in max17262_channel_get()
143 valp->val2 = data->cycle_count % 100 * 10000; in max17262_channel_get()
196 { CYCLES, &data->cycle_count }, in max17262_sample_fetch()
/Zephyr-Core-3.6.0/tests/drivers/fuel_gauge/bq27z746/src/
Dtest_bq27z746.c130 zassert_equal(vals[1].cycle_count, 100); in ZTEST_USER_F()
149 zassert_between_inclusive(props[1].cycle_count, 0, 6553500); in ZTEST_USER_F()
/Zephyr-Core-3.6.0/include/zephyr/drivers/
Dfuel_gauge.h130 uint32_t cycle_count; member
/Zephyr-Core-3.6.0/drivers/fuel_gauge/bq27z746/
Dbq27z746.c130 val->cycle_count = tmp_val * 100; in bq27z746_get_prop()
/Zephyr-Core-3.6.0/drivers/fuel_gauge/sbs_gauge/
Dsbs_gauge.c82 val->cycle_count = tmp_val; in sbs_gauge_get_prop()