Home
last modified time | relevance | path

Searched refs:cnt2 (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/kernel/sched/metairq/src/
Dmain.c95 int cnt1, cnt2; in coop_thread1() local
104 cnt2 = coop_cnt2; in coop_thread1()
105 zassert_equal(cnt2, LOOP_CNT, "Unexpected cnt2 at start: %d", cnt2); in coop_thread1()
113 cnt2 = coop_cnt2; in coop_thread1()
114 zassert_equal(cnt2, LOOP_CNT, "Unexpected cnt2 at end: %d", cnt2); in coop_thread1()
126 int cnt1, cnt2; in coop_thread2() local
135 cnt2 = coop_cnt2; in coop_thread2()
136 zassert_equal(cnt2, 0, "Unexpected cnt2 at start: %d", cnt2); in coop_thread2()
155 cnt2 = coop_cnt2; in coop_thread2()
156 zassert_equal(cnt2, LOOP_CNT, "Unexpected cnt2 at end: %d", cnt2); in coop_thread2()
/Zephyr-latest/drivers/timer/
Dnpcx_itim_timer.c218 uint32_t cnt1, cnt2; in npcx_itim_get_evt_cyc32() local
229 : [c1] "=&r"(cnt1), [c2] "=&r"(cnt2) in npcx_itim_get_evt_cyc32()
233 return cnt2; in npcx_itim_get_evt_cyc32()
240 uint32_t cnt2 = npcx_itim_get_evt_cyc32(); in npcx_itim_evt_elapsed_cyc32() local
243 if (IS_BIT_SET(sys_cts, NPCX_ITCTSXX_TO_STS) || (cnt2 > cnt1)) { in npcx_itim_evt_elapsed_cyc32()
244 cnt2 = cyc_evt_timeout; in npcx_itim_evt_elapsed_cyc32()
246 cnt2 = cyc_evt_timeout - cnt2 - 1; in npcx_itim_evt_elapsed_cyc32()
250 return cnt2; in npcx_itim_evt_elapsed_cyc32()