Lines Matching refs:ced
39 struct clock_event_device ced; member
49 if (clockevent_state_oneshot(&p->ced)) in timer8_interrupt()
52 p->ced.event_handler(&p->ced); in timer8_interrupt()
98 static inline struct timer8_priv *ced_to_priv(struct clock_event_device *ced) in ced_to_priv() argument
100 return container_of(ced, struct timer8_priv, ced); in ced_to_priv()
109 static int timer8_clock_event_shutdown(struct clock_event_device *ced) in timer8_clock_event_shutdown() argument
111 timer8_stop(ced_to_priv(ced)); in timer8_clock_event_shutdown()
115 static int timer8_clock_event_periodic(struct clock_event_device *ced) in timer8_clock_event_periodic() argument
117 struct timer8_priv *p = ced_to_priv(ced); in timer8_clock_event_periodic()
119 pr_info("%s: used for periodic clock events\n", ced->name); in timer8_clock_event_periodic()
126 static int timer8_clock_event_oneshot(struct clock_event_device *ced) in timer8_clock_event_oneshot() argument
128 struct timer8_priv *p = ced_to_priv(ced); in timer8_clock_event_oneshot()
130 pr_info("%s: used for oneshot clock events\n", ced->name); in timer8_clock_event_oneshot()
138 struct clock_event_device *ced) in timer8_clock_event_next() argument
140 struct timer8_priv *p = ced_to_priv(ced); in timer8_clock_event_next()
142 BUG_ON(!clockevent_state_oneshot(ced)); in timer8_clock_event_next()
149 .ced = {
195 timer8_priv.ced.name, &timer8_priv) < 0) { in h8300_8timer_init()
200 clockevents_config_and_register(&timer8_priv.ced, in h8300_8timer_init()