Lines Matching refs:clkevt
42 struct clock_event_device clkevt;
50 container_of(x, struct sun5i_timer, clkevt)
92 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt)
94 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt);
100 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt)
102 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt);
109 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt)
111 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt);
120 struct clock_event_device *clkevt)
122 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt);
136 ce->clkevt.event_handler(&ce->clkevt);
161 clockevents_update_freq(&cs->clkevt, ndata->new_rate);
207 ce->clkevt.name = dev->of_node->name;
208 ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT;
209 ce->clkevt.set_next_event = sun5i_clkevt_next_event;
210 ce->clkevt.set_state_shutdown = sun5i_clkevt_shutdown;
211 ce->clkevt.set_state_periodic = sun5i_clkevt_set_periodic;
212 ce->clkevt.set_state_oneshot = sun5i_clkevt_set_oneshot;
213 ce->clkevt.tick_resume = sun5i_clkevt_shutdown;
214 ce->clkevt.rating = 340;
215 ce->clkevt.irq = irq;
216 ce->clkevt.cpumask = cpu_possible_mask;
222 clockevents_config_and_register(&ce->clkevt, rate,