Lines Matching refs:to
52 struct timer_of to; member
100 struct timer_of *to = to_timer_of(clkevt); in rttm_timer_interrupt() local
102 rttm_ack_irq(to->of_base.base); in rttm_timer_interrupt()
103 RTTM_DEBUG(to->of_base.base); in rttm_timer_interrupt()
131 static void rttm_start_timer(struct timer_of *to, u32 mode) in rttm_start_timer() argument
133 rttm_enable_timer(to->of_base.base, mode, to->of_clk.rate / RTTM_TICKS_PER_SEC); in rttm_start_timer()
138 struct timer_of *to = to_timer_of(clkevt); in rttm_next_event() local
140 RTTM_DEBUG(to->of_base.base); in rttm_next_event()
141 rttm_bounce_timer(to->of_base.base, RTTM_CTRL_COUNTER); in rttm_next_event()
142 rttm_disable_timer(to->of_base.base); in rttm_next_event()
143 rttm_set_period(to->of_base.base, delta); in rttm_next_event()
144 rttm_start_timer(to, RTTM_CTRL_COUNTER); in rttm_next_event()
151 struct timer_of *to = to_timer_of(clkevt); in rttm_state_oneshot() local
153 RTTM_DEBUG(to->of_base.base); in rttm_state_oneshot()
154 rttm_bounce_timer(to->of_base.base, RTTM_CTRL_COUNTER); in rttm_state_oneshot()
155 rttm_disable_timer(to->of_base.base); in rttm_state_oneshot()
156 rttm_set_period(to->of_base.base, RTTM_TICKS_PER_SEC / HZ); in rttm_state_oneshot()
157 rttm_start_timer(to, RTTM_CTRL_COUNTER); in rttm_state_oneshot()
164 struct timer_of *to = to_timer_of(clkevt); in rttm_state_periodic() local
166 RTTM_DEBUG(to->of_base.base); in rttm_state_periodic()
167 rttm_bounce_timer(to->of_base.base, RTTM_CTRL_TIMER); in rttm_state_periodic()
168 rttm_disable_timer(to->of_base.base); in rttm_state_periodic()
169 rttm_set_period(to->of_base.base, RTTM_TICKS_PER_SEC / HZ); in rttm_state_periodic()
170 rttm_start_timer(to, RTTM_CTRL_TIMER); in rttm_state_periodic()
177 struct timer_of *to = to_timer_of(clkevt); in rttm_state_shutdown() local
179 RTTM_DEBUG(to->of_base.base); in rttm_state_shutdown()
180 rttm_stop_timer(to->of_base.base); in rttm_state_shutdown()
196 return rttm_get_counter(rcs->to.of_base.base); in rttm_read_clocksource()
220 rttm_disable_irq(rcs->to.of_base.base); in rttm_enable_clocksource()
221 rttm_setup_timer(rcs->to.of_base.base); in rttm_enable_clocksource()
222 rttm_enable_timer(rcs->to.of_base.base, RTTM_CTRL_TIMER, in rttm_enable_clocksource()
223 rcs->to.of_clk.rate / RTTM_TICKS_PER_SEC); in rttm_enable_clocksource()
229 .to = {
243 return rttm_get_counter(rttm_cs.to.of_base.base); in rttm_read_clock()
248 struct timer_of *to = per_cpu_ptr(&rttm_to, cpu); in rttm_cpu_starting() local
250 RTTM_DEBUG(to->of_base.base); in rttm_cpu_starting()
251 to->clkevt.cpumask = cpumask_of(cpu); in rttm_cpu_starting()
252 irq_force_affinity(to->of_irq.irq, to->clkevt.cpumask); in rttm_cpu_starting()
253 clockevents_config_and_register(&to->clkevt, RTTM_TICKS_PER_SEC, in rttm_cpu_starting()
255 rttm_enable_irq(to->of_base.base); in rttm_cpu_starting()
263 struct timer_of *to; in rttm_probe() local
268 to = per_cpu_ptr(&rttm_to, cpu); in rttm_probe()
269 to->of_irq.index = to->of_base.index = cpu; in rttm_probe()
270 if (timer_of_init(np, to)) { in rttm_probe()
274 rttm_setup_timer(to->of_base.base); in rttm_probe()
278 to = &rttm_cs.to; in rttm_probe()
279 to->of_base.index = clkidx; in rttm_probe()
280 timer_of_init(np, to); in rttm_probe()
281 if (rttm_cs.to.of_base.base && rttm_cs.to.of_clk.rate) { in rttm_probe()
296 to = per_cpu_ptr(&rttm_to, cpu_rollback); in rttm_probe()
297 timer_of_cleanup(to); in rttm_probe()