Lines Matching refs:ced

69 	struct clock_event_device ced;  member
82 struct clock_event_device *ced);
85 static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced) in to_imx_timer() argument
87 return container_of(ced, struct imx_timer, ced); in to_imx_timer()
170 struct clock_event_device *ced) in mx1_2_set_next_event() argument
172 struct imx_timer *imxtm = to_imx_timer(ced); in mx1_2_set_next_event()
184 struct clock_event_device *ced) in v2_set_next_event() argument
186 struct imx_timer *imxtm = to_imx_timer(ced); in v2_set_next_event()
198 static int mxc_shutdown(struct clock_event_device *ced) in mxc_shutdown() argument
200 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_shutdown()
229 static int mxc_set_oneshot(struct clock_event_device *ced) in mxc_set_oneshot() argument
231 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_set_oneshot()
243 if (!clockevent_state_oneshot(ced)) { in mxc_set_oneshot()
273 struct clock_event_device *ced = dev_id; in mxc_timer_interrupt() local
274 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_timer_interrupt()
281 ced->event_handler(ced); in mxc_timer_interrupt()
288 struct clock_event_device *ced = &imxtm->ced; in mxc_clockevent_init() local
291 ced->name = "mxc_timer1"; in mxc_clockevent_init()
292 ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_DYNIRQ; in mxc_clockevent_init()
293 ced->set_state_shutdown = mxc_shutdown; in mxc_clockevent_init()
294 ced->set_state_oneshot = mxc_set_oneshot; in mxc_clockevent_init()
295 ced->tick_resume = mxc_shutdown; in mxc_clockevent_init()
296 ced->set_next_event = imxtm->gpt->set_next_event; in mxc_clockevent_init()
297 ced->rating = 200; in mxc_clockevent_init()
298 ced->cpumask = cpumask_of(0); in mxc_clockevent_init()
299 ced->irq = imxtm->irq; in mxc_clockevent_init()
300 clockevents_config_and_register(ced, clk_get_rate(imxtm->clk_per), in mxc_clockevent_init()
306 act->dev_id = ced; in mxc_clockevent_init()