Lines Matching refs:tdata

68 static ZTEST_BMEM struct timer_data tdata;  variable
80 tdata.expire_cnt = 0; in init_timer_data()
81 tdata.stop_cnt = 0; in init_timer_data()
87 tdata.timestamp = k_uptime_get(); in init_timer_data()
116 int64_t interval = k_uptime_delta(&tdata.timestamp); in duration_expire()
118 tdata.expire_cnt++; in duration_expire()
119 if (tdata.expire_cnt == 1) { in duration_expire()
125 if (tdata.expire_cnt >= EXPIRE_TIMES) { in duration_expire()
132 tdata.stop_cnt++; in duration_stop()
137 tdata.expire_cnt++; in period0_expire()
147 if (tdata.expire_cnt >= EXPIRE_TIMES) { in status_expire()
193 TIMER_ASSERT(tdata.expire_cnt == EXPIRE_TIMES, &duration_timer); in ZTEST_USER()
194 TIMER_ASSERT(tdata.stop_cnt == 1, &duration_timer); in ZTEST_USER()
197 TIMER_ASSERT(tdata.stop_cnt == 1, &duration_timer); in ZTEST_USER()
263 TIMER_ASSERT((tdata.expire_cnt == 1) in ZTEST_USER()
265 && (tdata.expire_cnt == 0)), &period0_timer); in ZTEST_USER()
266 TIMER_ASSERT(tdata.stop_cnt == 0, &period0_timer); in ZTEST_USER()
296 tdata.timestamp = k_uptime_get(); in ZTEST_USER()
302 TIMER_ASSERT((tdata.expire_cnt == 1) || in ZTEST_USER()
303 (INEXACT_MS_CONVERT && (tdata.expire_cnt == 0)), in ZTEST_USER()
305 TIMER_ASSERT(tdata.stop_cnt == 0, &period0_timer); in ZTEST_USER()
335 TIMER_ASSERT(tdata.expire_cnt == 0, &expire_timer); in ZTEST_USER()
337 TIMER_ASSERT(tdata.stop_cnt == 1, &expire_timer); in ZTEST_USER()
393 tdata.timestamp = k_uptime_get(); in ZTEST_USER()
400 delta = k_uptime_delta(&tdata.timestamp); in ZTEST_USER()
508 TIMER_ASSERT(tdata.expire_cnt == i, &status_sync_timer); in ZTEST_USER()
513 TIMER_ASSERT(tdata.expire_cnt == (i + 1), &status_sync_timer); in ZTEST_USER()
549 TIMER_ASSERT(tdata.expire_cnt == EXPIRE_TIMES, &ktimer); in ZTEST_USER()
550 TIMER_ASSERT(tdata.stop_cnt == 1, &ktimer); in ZTEST_USER()
565 tdata.timestamp = k_uptime_get(); in ZTEST_USER()
569 TIMER_ASSERT(tdata.expire_cnt == EXPIRE_TIMES, &ktimer); in ZTEST_USER()
570 TIMER_ASSERT(tdata.stop_cnt == 1, &ktimer); in ZTEST_USER()
696 TIMER_ASSERT(tdata.expire_cnt == 0, &remain_timer); in ZTEST_USER()
697 TIMER_ASSERT(tdata.stop_cnt == 1, &remain_timer); in ZTEST_USER()