Lines Matching refs:to

53 	struct timer_of		to;  member
106 struct timer_of *to = to_timer_of(clkevt); in rttm_timer_interrupt() local
108 rttm_ack_irq(to->of_base.base); in rttm_timer_interrupt()
109 RTTM_DEBUG(to->of_base.base); in rttm_timer_interrupt()
121 static void rttm_start_timer(struct timer_of *to, u32 mode) in rttm_start_timer() argument
123 rttm_set_counter(to->of_base.base, 0); in rttm_start_timer()
124 rttm_enable_timer(to->of_base.base, mode, to->of_clk.rate / RTTM_TICKS_PER_SEC); in rttm_start_timer()
129 struct timer_of *to = to_timer_of(clkevt); in rttm_next_event() local
131 RTTM_DEBUG(to->of_base.base); in rttm_next_event()
132 rttm_stop_timer(to->of_base.base); in rttm_next_event()
133 rttm_set_period(to->of_base.base, delta); in rttm_next_event()
134 rttm_start_timer(to, RTTM_CTRL_COUNTER); in rttm_next_event()
141 struct timer_of *to = to_timer_of(clkevt); in rttm_state_oneshot() local
143 RTTM_DEBUG(to->of_base.base); in rttm_state_oneshot()
144 rttm_stop_timer(to->of_base.base); in rttm_state_oneshot()
145 rttm_set_period(to->of_base.base, RTTM_TICKS_PER_SEC / HZ); in rttm_state_oneshot()
146 rttm_start_timer(to, RTTM_CTRL_COUNTER); in rttm_state_oneshot()
153 struct timer_of *to = to_timer_of(clkevt); in rttm_state_periodic() local
155 RTTM_DEBUG(to->of_base.base); in rttm_state_periodic()
156 rttm_stop_timer(to->of_base.base); in rttm_state_periodic()
157 rttm_set_period(to->of_base.base, RTTM_TICKS_PER_SEC / HZ); in rttm_state_periodic()
158 rttm_start_timer(to, RTTM_CTRL_TIMER); in rttm_state_periodic()
165 struct timer_of *to = to_timer_of(clkevt); in rttm_state_shutdown() local
167 RTTM_DEBUG(to->of_base.base); in rttm_state_shutdown()
168 rttm_stop_timer(to->of_base.base); in rttm_state_shutdown()
184 return rttm_get_counter(rcs->to.of_base.base); in rttm_read_clocksource()
208 rttm_disable_irq(rcs->to.of_base.base); in rttm_enable_clocksource()
209 rttm_setup_timer(rcs->to.of_base.base); in rttm_enable_clocksource()
210 rttm_enable_timer(rcs->to.of_base.base, RTTM_CTRL_TIMER, in rttm_enable_clocksource()
211 rcs->to.of_clk.rate / RTTM_TICKS_PER_SEC); in rttm_enable_clocksource()
217 .to = {
231 return rttm_get_counter(rttm_cs.to.of_base.base); in rttm_read_clock()
236 struct timer_of *to = per_cpu_ptr(&rttm_to, cpu); in rttm_cpu_starting() local
238 RTTM_DEBUG(to->of_base.base); in rttm_cpu_starting()
239 to->clkevt.cpumask = cpumask_of(cpu); in rttm_cpu_starting()
240 irq_force_affinity(to->of_irq.irq, to->clkevt.cpumask); in rttm_cpu_starting()
241 clockevents_config_and_register(&to->clkevt, RTTM_TICKS_PER_SEC, in rttm_cpu_starting()
243 rttm_enable_irq(to->of_base.base); in rttm_cpu_starting()
251 struct timer_of *to; in rttm_probe() local
256 to = per_cpu_ptr(&rttm_to, cpu); in rttm_probe()
257 to->of_irq.index = to->of_base.index = cpu; in rttm_probe()
258 if (timer_of_init(np, to)) { in rttm_probe()
262 rttm_setup_timer(to->of_base.base); in rttm_probe()
266 to = &rttm_cs.to; in rttm_probe()
267 to->of_base.index = clkidx; in rttm_probe()
268 timer_of_init(np, to); in rttm_probe()
269 if (rttm_cs.to.of_base.base && rttm_cs.to.of_clk.rate) { in rttm_probe()
284 to = per_cpu_ptr(&rttm_to, cpu_rollback); in rttm_probe()
285 timer_of_cleanup(to); in rttm_probe()