Home
last modified time | relevance | path

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

/linux-6.1.9/arch/nios2/kernel/
Dtime.c86 struct nios2_clocksource *nios2_cs = to_nios2_clksource(cs); in nios2_timer_read() local
91 count = read_timersnapshot(&nios2_cs->timer); in nios2_timer_read()
98 static struct nios2_clocksource nios2_cs = { variable
111 if (nios2_cs.timer.base) in get_cycles()
112 return nios2_timer_read(&nios2_cs.cs); in get_cycles()
292 nios2_cs.timer.base = iobase; in nios2_clocksource_init()
293 nios2_cs.timer.freq = freq; in nios2_clocksource_init()
295 ret = clocksource_register_hz(&nios2_cs.cs, freq); in nios2_clocksource_init()
299 timer_writew(&nios2_cs.timer, USHRT_MAX, ALTERA_TIMER_PERIODL_REG); in nios2_clocksource_init()
300 timer_writew(&nios2_cs.timer, USHRT_MAX, ALTERA_TIMER_PERIODH_REG); in nios2_clocksource_init()
[all …]