Lines Matching refs:ced
74 struct clock_event_device ced; member
86 struct clock_event_device *ced);
89 static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced) in to_imx_timer() argument
91 return container_of(ced, struct imx_timer, ced); in to_imx_timer()
173 struct clock_event_device *ced) in mx1_2_set_next_event() argument
175 struct imx_timer *imxtm = to_imx_timer(ced); in mx1_2_set_next_event()
187 struct clock_event_device *ced) in v2_set_next_event() argument
189 struct imx_timer *imxtm = to_imx_timer(ced); in v2_set_next_event()
201 static int mxc_shutdown(struct clock_event_device *ced) in mxc_shutdown() argument
203 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_shutdown()
223 static int mxc_set_oneshot(struct clock_event_device *ced) in mxc_set_oneshot() argument
225 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_set_oneshot()
230 if (!clockevent_state_oneshot(ced)) { in mxc_set_oneshot()
259 struct clock_event_device *ced = dev_id; in mxc_timer_interrupt() local
260 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_timer_interrupt()
267 ced->event_handler(ced); in mxc_timer_interrupt()
274 struct clock_event_device *ced = &imxtm->ced; in mxc_clockevent_init() local
276 ced->name = "mxc_timer1"; in mxc_clockevent_init()
277 ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_DYNIRQ; in mxc_clockevent_init()
278 ced->set_state_shutdown = mxc_shutdown; in mxc_clockevent_init()
279 ced->set_state_oneshot = mxc_set_oneshot; in mxc_clockevent_init()
280 ced->tick_resume = mxc_shutdown; in mxc_clockevent_init()
281 ced->set_next_event = imxtm->gpt->set_next_event; in mxc_clockevent_init()
282 ced->rating = 200; in mxc_clockevent_init()
283 ced->cpumask = cpumask_of(0); in mxc_clockevent_init()
284 ced->irq = imxtm->irq; in mxc_clockevent_init()
285 clockevents_config_and_register(ced, clk_get_rate(imxtm->clk_per), in mxc_clockevent_init()
289 IRQF_TIMER | IRQF_IRQPOLL, "i.MX Timer Tick", ced); in mxc_clockevent_init()