Home
last modified time | relevance | path

Searched refs:timer_data (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/
Dipso_timer.c66 static struct ipso_timer_data timer_data[MAX_INSTANCE_COUNT]; variable
167 if (timer_data[i].active) { in remaining_time_read_cb()
168 temp = timer_data[i].delay_duration * MSEC_PER_SEC; in remaining_time_read_cb()
169 temp -= (k_uptime_get() - timer_data[i].trigger_offset); in remaining_time_read_cb()
170 timer_data[i].remaining_time = (double)temp / MSEC_PER_SEC; in remaining_time_read_cb()
172 timer_data[i].remaining_time = 0; in remaining_time_read_cb()
175 *data_len = sizeof(timer_data[i].remaining_time); in remaining_time_read_cb()
176 return &timer_data[i].remaining_time; in remaining_time_read_cb()
191 temp = timer_data[i].cumulative_time_ms; in cumulative_time_read_cb()
192 if (timer_data[i].active) { in cumulative_time_read_cb()
[all …]
/Zephyr-Core-3.7.0/subsys/testsuite/ztest/src/
Dztress.c320 int ztress_execute(struct ztress_context_data *timer_data, in ztress_execute() argument
328 if ((cnt + (timer_data ? 1 : 0)) > CONFIG_ZTRESS_MAX_THREADS) { in ztress_execute()
346 context_cnt = cnt + (timer_data ? 1 : 0); in ztress_execute()
352 tmr_data = timer_data; in ztress_execute()
354 if (timer_data != NULL) { in ztress_execute()
355 active_cnt_init(timer_data); in ztress_execute()
356 backoff[ztress_prio] = timer_data->t; in ztress_execute()
357 init_backoff[ztress_prio] = timer_data->t; in ztress_execute()
358 k_timer_user_data_set(&ztress_timer, timer_data); in ztress_execute()
375 if (timer_data != NULL) { in ztress_execute()
[all …]
/Zephyr-Core-3.7.0/tests/ztest/ztress/src/
Dmain.c46 struct ztress_context_data timer_data = in ZTEST() local
54 err = ztress_execute(&timer_data, thread_data, ARRAY_SIZE(thread_data)); in ZTEST()
142 struct ztress_context_data timer_data = in ZTEST() local
150 err = ztress_execute(&timer_data, thread_data, ARRAY_SIZE(thread_data)); in ZTEST()
/Zephyr-Core-3.7.0/tests/benchmarks/footprints/src/
Dtimer.c16 struct timer_data { struct
23 static FP_BMEM struct timer_data tdata; argument
/Zephyr-Core-3.7.0/tests/kernel/common/src/
Dclock.c16 struct timer_data { struct
26 static ZTEST_BMEM struct timer_data tdata; argument
/Zephyr-Core-3.7.0/tests/kernel/pending/src/
Dmain.c81 static void *timer_data; variable
208 timer_data = timer.user_data; in timer_tests()
463 zassert_equal(timer_data, NON_NULL_PTR, in ZTEST()
/Zephyr-Core-3.7.0/subsys/testsuite/ztest/include/zephyr/
Dztress.h208 int ztress_execute(struct ztress_context_data *timer_data,
/Zephyr-Core-3.7.0/tests/kernel/timer/timer_api/src/
Dmain.c11 struct timer_data { struct
68 static ZTEST_BMEM struct timer_data tdata;