Lines Matching refs:ce

43 	struct clock_event_device ce;  member
50 static inline struct rk_timer *rk_timer(struct clock_event_device *ce) in rk_timer() argument
52 return &container_of(ce, struct rk_clkevt, ce)->timer; in rk_timer()
78 struct clock_event_device *ce) in rk_timer_set_next_event() argument
80 struct rk_timer *timer = rk_timer(ce); in rk_timer_set_next_event()
89 static int rk_timer_shutdown(struct clock_event_device *ce) in rk_timer_shutdown() argument
91 struct rk_timer *timer = rk_timer(ce); in rk_timer_shutdown()
97 static int rk_timer_set_periodic(struct clock_event_device *ce) in rk_timer_set_periodic() argument
99 struct rk_timer *timer = rk_timer(ce); in rk_timer_set_periodic()
109 struct clock_event_device *ce = dev_id; in rk_timer_interrupt() local
110 struct rk_timer *timer = rk_timer(ce); in rk_timer_interrupt()
114 if (clockevent_state_oneshot(ce)) in rk_timer_interrupt()
117 ce->event_handler(ce); in rk_timer_interrupt()
207 struct clock_event_device *ce; in rk_clkevt_init() local
220 ce = &rk_clkevt->ce; in rk_clkevt_init()
221 ce->name = TIMER_NAME; in rk_clkevt_init()
222 ce->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT | in rk_clkevt_init()
224 ce->set_next_event = rk_timer_set_next_event; in rk_clkevt_init()
225 ce->set_state_shutdown = rk_timer_shutdown; in rk_clkevt_init()
226 ce->set_state_periodic = rk_timer_set_periodic; in rk_clkevt_init()
227 ce->irq = rk_clkevt->timer.irq; in rk_clkevt_init()
228 ce->cpumask = cpu_possible_mask; in rk_clkevt_init()
229 ce->rating = 250; in rk_clkevt_init()
232 TIMER_NAME, ce); in rk_clkevt_init()
239 clockevents_config_and_register(&rk_clkevt->ce, in rk_clkevt_init()