Lines Matching refs:to

85 	struct timer_of *to = to_timer_of(evt);  in sun4i_clkevt_shutdown()  local
87 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_shutdown()
94 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_oneshot() local
96 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_set_oneshot()
97 sun4i_clkevt_time_start(timer_of_base(to), 0, false); in sun4i_clkevt_set_oneshot()
104 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_periodic() local
106 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_set_periodic()
107 sun4i_clkevt_time_setup(timer_of_base(to), 0, timer_of_period(to)); in sun4i_clkevt_set_periodic()
108 sun4i_clkevt_time_start(timer_of_base(to), 0, true); in sun4i_clkevt_set_periodic()
116 struct timer_of *to = to_timer_of(clkevt); in sun4i_clkevt_next_event() local
118 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_next_event()
119 sun4i_clkevt_time_setup(timer_of_base(to), 0, evt - TIMER_SYNC_TICKS); in sun4i_clkevt_next_event()
120 sun4i_clkevt_time_start(timer_of_base(to), 0, false); in sun4i_clkevt_next_event()
133 struct timer_of *to = to_timer_of(evt); in sun4i_timer_interrupt() local
135 sun4i_timer_clear_interrupt(timer_of_base(to)); in sun4i_timer_interrupt()
141 static struct timer_of to = { variable
165 return ~readl(timer_of_base(&to) + TIMER_CNTVAL_REG(1)); in sun4i_timer_sched_read()
173 ret = timer_of_init(node, &to); in sun4i_timer_init()
177 writel(~0, timer_of_base(&to) + TIMER_INTVAL_REG(1)); in sun4i_timer_init()
180 timer_of_base(&to) + TIMER_CTL_REG(1)); in sun4i_timer_init()
191 timer_of_rate(&to)); in sun4i_timer_init()
193 ret = clocksource_mmio_init(timer_of_base(&to) + TIMER_CNTVAL_REG(1), in sun4i_timer_init()
194 node->name, timer_of_rate(&to), 350, 32, in sun4i_timer_init()
202 timer_of_base(&to) + TIMER_CTL_REG(0)); in sun4i_timer_init()
205 sun4i_clkevt_time_stop(timer_of_base(&to), 0); in sun4i_timer_init()
208 sun4i_timer_clear_interrupt(timer_of_base(&to)); in sun4i_timer_init()
210 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to), in sun4i_timer_init()
214 val = readl(timer_of_base(&to) + TIMER_IRQ_EN_REG); in sun4i_timer_init()
215 writel(val | TIMER_IRQ_EN(0), timer_of_base(&to) + TIMER_IRQ_EN_REG); in sun4i_timer_init()