Lines Matching defs:to
31 * by adding 1 to 0x0fffffff the counter is reset to 0. When this happens and
33 * continue to count up.
48 * speeds is 3125000. Pin the timers to this 3.125 MHz reference frequency.
53 struct timer_of to;
106 struct timer_of *to = to_timer_of(clkevt);
108 rttm_ack_irq(to->of_base.base);
109 RTTM_DEBUG(to->of_base.base);
121 static void rttm_start_timer(struct timer_of *to, u32 mode)
123 rttm_set_counter(to->of_base.base, 0);
124 rttm_enable_timer(to->of_base.base, mode, to->of_clk.rate / RTTM_TICKS_PER_SEC);
129 struct timer_of *to = to_timer_of(clkevt);
131 RTTM_DEBUG(to->of_base.base);
132 rttm_stop_timer(to->of_base.base);
133 rttm_set_period(to->of_base.base, delta);
134 rttm_start_timer(to, RTTM_CTRL_COUNTER);
141 struct timer_of *to = to_timer_of(clkevt);
143 RTTM_DEBUG(to->of_base.base);
144 rttm_stop_timer(to->of_base.base);
145 rttm_set_period(to->of_base.base, RTTM_TICKS_PER_SEC / HZ);
146 rttm_start_timer(to, RTTM_CTRL_COUNTER);
153 struct timer_of *to = to_timer_of(clkevt);
155 RTTM_DEBUG(to->of_base.base);
156 rttm_stop_timer(to->of_base.base);
157 rttm_set_period(to->of_base.base, RTTM_TICKS_PER_SEC / HZ);
158 rttm_start_timer(to, RTTM_CTRL_TIMER);
165 struct timer_of *to = to_timer_of(clkevt);
167 RTTM_DEBUG(to->of_base.base);
168 rttm_stop_timer(to->of_base.base);
184 return rttm_get_counter(rcs->to.of_base.base);
208 rttm_disable_irq(rcs->to.of_base.base);
209 rttm_setup_timer(rcs->to.of_base.base);
210 rttm_enable_timer(rcs->to.of_base.base, RTTM_CTRL_TIMER,
211 rcs->to.of_clk.rate / RTTM_TICKS_PER_SEC);
217 .to = {
231 return rttm_get_counter(rttm_cs.to.of_base.base);
236 struct timer_of *to = per_cpu_ptr(&rttm_to, cpu);
238 RTTM_DEBUG(to->of_base.base);
239 to->clkevt.cpumask = cpumask_of(cpu);
240 irq_force_affinity(to->of_irq.irq, to->clkevt.cpumask);
241 clockevents_config_and_register(&to->clkevt, RTTM_TICKS_PER_SEC,
243 rttm_enable_irq(to->of_base.base);
251 struct timer_of *to;
256 to = per_cpu_ptr(&rttm_to, cpu);
257 to->of_irq.index = to->of_base.index = cpu;
258 if (timer_of_init(np, to)) {
262 rttm_setup_timer(to->of_base.base);
266 to = &rttm_cs.to;
267 to->of_base.index = clkidx;
268 timer_of_init(np, to);
269 if (rttm_cs.to.of_base.base && rttm_cs.to.of_clk.rate) {
284 to = per_cpu_ptr(&rttm_to, cpu_rollback);
285 timer_of_cleanup(to);