Lines Matching refs:ced
44 struct clock_event_device ced; member
84 if (clockevent_state_oneshot(&p->ced)) in timer8_interrupt()
86 p->ced.event_handler(&p->ced); in timer8_interrupt()
153 static inline struct timer8_priv *ced_to_priv(struct clock_event_device *ced) in ced_to_priv() argument
155 return container_of(ced, struct timer8_priv, ced); in ced_to_priv()
160 struct clock_event_device *ced = &p->ced; in timer8_clock_event_start() local
164 ced->shift = 32; in timer8_clock_event_start()
165 ced->mult = div_sc(p->rate, NSEC_PER_SEC, ced->shift); in timer8_clock_event_start()
166 ced->max_delta_ns = clockevent_delta2ns(0xffff, ced); in timer8_clock_event_start()
167 ced->min_delta_ns = clockevent_delta2ns(0x0001, ced); in timer8_clock_event_start()
172 static int timer8_clock_event_shutdown(struct clock_event_device *ced) in timer8_clock_event_shutdown() argument
174 timer8_stop(ced_to_priv(ced)); in timer8_clock_event_shutdown()
178 static int timer8_clock_event_periodic(struct clock_event_device *ced) in timer8_clock_event_periodic() argument
180 struct timer8_priv *p = ced_to_priv(ced); in timer8_clock_event_periodic()
189 static int timer8_clock_event_oneshot(struct clock_event_device *ced) in timer8_clock_event_oneshot() argument
191 struct timer8_priv *p = ced_to_priv(ced); in timer8_clock_event_oneshot()
201 struct clock_event_device *ced) in timer8_clock_event_next() argument
203 struct timer8_priv *p = ced_to_priv(ced); in timer8_clock_event_next()
205 BUG_ON(!clockevent_state_oneshot(ced)); in timer8_clock_event_next()
245 p->ced.name = pdev->name; in timer8_setup()
246 p->ced.features = CLOCK_EVT_FEAT_PERIODIC | in timer8_setup()
248 p->ced.rating = 200; in timer8_setup()
249 p->ced.cpumask = cpumask_of(0); in timer8_setup()
250 p->ced.set_next_event = timer8_clock_event_next; in timer8_setup()
251 p->ced.set_state_shutdown = timer8_clock_event_shutdown; in timer8_setup()
252 p->ced.set_state_periodic = timer8_clock_event_periodic; in timer8_setup()
253 p->ced.set_state_oneshot = timer8_clock_event_oneshot; in timer8_setup()
261 clockevents_register_device(&p->ced); in timer8_setup()