Lines Matching refs:timer
230 static void __init sp804_clkevt_init(struct sp804_timer *timer, void __iomem *base) in sp804_clkevt_init() argument
238 timer_base = base + timer->timer_base[i]; in sp804_clkevt_init()
241 clkevt->load = timer_base + timer->load; in sp804_clkevt_init()
242 clkevt->load_h = timer_base + timer->load_h; in sp804_clkevt_init()
243 clkevt->value = timer_base + timer->value; in sp804_clkevt_init()
244 clkevt->value_h = timer_base + timer->value_h; in sp804_clkevt_init()
245 clkevt->ctrl = timer_base + timer->ctrl; in sp804_clkevt_init()
246 clkevt->intclr = timer_base + timer->intclr; in sp804_clkevt_init()
247 clkevt->width = timer->width; in sp804_clkevt_init()
251 static int __init sp804_of_init(struct device_node *np, struct sp804_timer *timer) in sp804_of_init() argument
271 timer1_base = base + timer->timer_base[0]; in sp804_of_init()
272 timer2_base = base + timer->timer_base[1]; in sp804_of_init()
275 writel(0, timer1_base + timer->ctrl); in sp804_of_init()
276 writel(0, timer2_base + timer->ctrl); in sp804_of_init()
297 sp804_clkevt_init(timer, base); in sp804_of_init()