Lines Matching defs:clkevt
61 struct clock_event_device clkevt;
65 container_of(x, struct sun5i_timer_clkevt, clkevt)
107 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt)
109 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt);
115 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt)
117 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt);
124 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt)
126 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt);
135 struct clock_event_device *clkevt)
137 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt);
151 ce->clkevt.event_handler(&ce->clkevt);
257 clockevents_update_freq(&ce->clkevt, ndata->new_rate);
301 ce->clkevt.name = node->name;
302 ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT;
303 ce->clkevt.set_next_event = sun5i_clkevt_next_event;
304 ce->clkevt.set_state_shutdown = sun5i_clkevt_shutdown;
305 ce->clkevt.set_state_periodic = sun5i_clkevt_set_periodic;
306 ce->clkevt.set_state_oneshot = sun5i_clkevt_set_oneshot;
307 ce->clkevt.tick_resume = sun5i_clkevt_shutdown;
308 ce->clkevt.rating = 340;
309 ce->clkevt.irq = irq;
310 ce->clkevt.cpumask = cpu_possible_mask;
316 clockevents_config_and_register(&ce->clkevt, rate,