Lines Matching refs:freq
38 unsigned long freq; member
186 period = DIV_ROUND_UP(timer->freq, HZ); in nios2_timer_set_periodic()
213 void __iomem **base, u32 *freq) in nios2_timer_get_base_and_freq() argument
221 if (of_property_read_u32(np, "clock-frequency", freq)) { in nios2_timer_get_base_and_freq()
246 u32 freq; in nios2_clockevent_init() local
249 ret = nios2_timer_get_base_and_freq(timer, &iobase, &freq); in nios2_clockevent_init()
260 nios2_ce.timer.freq = freq; in nios2_clockevent_init()
276 clockevents_config_and_register(&nios2_ce.ced, freq, 1, ULONG_MAX); in nios2_clockevent_init()
285 u32 freq; in nios2_clocksource_init() local
288 ret = nios2_timer_get_base_and_freq(timer, &iobase, &freq); 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()
307 lpj_fine = freq / HZ; in nios2_clocksource_init()