Lines Matching defs:to

43  * When we disable a timer, we need to wait at least for 2 cycles of
85 struct timer_of *to = to_timer_of(evt);
87 sun4i_clkevt_time_stop(timer_of_base(to), 0);
94 struct timer_of *to = to_timer_of(evt);
96 sun4i_clkevt_time_stop(timer_of_base(to), 0);
97 sun4i_clkevt_time_start(timer_of_base(to), 0, false);
104 struct timer_of *to = to_timer_of(evt);
106 sun4i_clkevt_time_stop(timer_of_base(to), 0);
107 sun4i_clkevt_time_setup(timer_of_base(to), 0, timer_of_period(to));
108 sun4i_clkevt_time_start(timer_of_base(to), 0, true);
116 struct timer_of *to = to_timer_of(clkevt);
118 sun4i_clkevt_time_stop(timer_of_base(to), 0);
119 sun4i_clkevt_time_setup(timer_of_base(to), 0, evt - TIMER_SYNC_TICKS);
120 sun4i_clkevt_time_start(timer_of_base(to), 0, false);
133 struct timer_of *to = to_timer_of(evt);
135 sun4i_timer_clear_interrupt(timer_of_base(to));
141 static struct timer_of to = {
165 return ~readl(timer_of_base(&to) + TIMER_CNTVAL_REG(1));
173 ret = timer_of_init(node, &to);
177 writel(~0, timer_of_base(&to) + TIMER_INTVAL_REG(1));
180 timer_of_base(&to) + TIMER_CTL_REG(1));
191 timer_of_rate(&to));
193 ret = clocksource_mmio_init(timer_of_base(&to) + TIMER_CNTVAL_REG(1),
194 node->name, timer_of_rate(&to), 350, 32,
197 pr_err("Failed to register clocksource\n");
202 timer_of_base(&to) + TIMER_CTL_REG(0));
205 sun4i_clkevt_time_stop(timer_of_base(&to), 0);
208 sun4i_timer_clear_interrupt(timer_of_base(&to));
210 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to),
214 val = readl(timer_of_base(&to) + TIMER_IRQ_EN_REG);
215 writel(val | TIMER_IRQ_EN(0), timer_of_base(&to) + TIMER_IRQ_EN_REG);