Home
last modified time | relevance | path

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

/openbmc/qemu/hw/openrisc/
H A Dcputimer.c35 static OR1KTimerState *or1k_timer; variable
39 or1k_timer->ttcr = val; in cpu_openrisc_count_set()
44 return or1k_timer->ttcr; in cpu_openrisc_count_get()
56 or1k_timer->ttcr += (uint32_t)((now - or1k_timer->last_clk) in cpu_openrisc_count_update()
58 or1k_timer->last_clk = now; in cpu_openrisc_count_update()
72 now = or1k_timer->last_clk; in cpu_openrisc_timer_update()
75 wait = TTMR_TP - (or1k_timer->ttcr & TTMR_TP) + 1; in cpu_openrisc_timer_update()
113 or1k_timer->ttcr = 0; in openrisc_timer_cb()
140 or1k_timer->ttcr = 0x00000000; in openrisc_timer_reset()
160 if (or1k_timer == NULL) { in cpu_openrisc_clock_init()
[all …]