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