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
164 return ~readl(timer_of_base(&to) + TIMER_CNTVAL_REG(1)); in sun4i_timer_sched_read()
172 ret = timer_of_init(node, &to); in sun4i_timer_init()
176 writel(~0, timer_of_base(&to) + TIMER_INTVAL_REG(1)); in sun4i_timer_init()
179 timer_of_base(&to) + TIMER_CTL_REG(1)); in sun4i_timer_init()
190 timer_of_rate(&to)); in sun4i_timer_init()
192 ret = clocksource_mmio_init(timer_of_base(&to) + TIMER_CNTVAL_REG(1), in sun4i_timer_init()
193 node->name, timer_of_rate(&to), 350, 32, in sun4i_timer_init()
201 timer_of_base(&to) + TIMER_CTL_REG(0)); in sun4i_timer_init()
204 sun4i_clkevt_time_stop(timer_of_base(&to), 0); in sun4i_timer_init()
207 sun4i_timer_clear_interrupt(timer_of_base(&to)); in sun4i_timer_init()
209 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to), in sun4i_timer_init()
213 val = readl(timer_of_base(&to) + TIMER_IRQ_EN_REG); in sun4i_timer_init()
214 writel(val | TIMER_IRQ_EN(0), timer_of_base(&to) + TIMER_IRQ_EN_REG); in sun4i_timer_init()