Lines Matching refs:ced
38 struct clock_event_device ced; member
266 ch->ced.event_handler(&ch->ced); in sh_mtu2_interrupt()
270 static struct sh_mtu2_channel *ced_to_sh_mtu2(struct clock_event_device *ced) in ced_to_sh_mtu2() argument
272 return container_of(ced, struct sh_mtu2_channel, ced); in ced_to_sh_mtu2()
275 static int sh_mtu2_clock_event_shutdown(struct clock_event_device *ced) in sh_mtu2_clock_event_shutdown() argument
277 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced); in sh_mtu2_clock_event_shutdown()
279 if (clockevent_state_periodic(ced)) in sh_mtu2_clock_event_shutdown()
285 static int sh_mtu2_clock_event_set_periodic(struct clock_event_device *ced) in sh_mtu2_clock_event_set_periodic() argument
287 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced); in sh_mtu2_clock_event_set_periodic()
289 if (clockevent_state_periodic(ced)) in sh_mtu2_clock_event_set_periodic()
298 static void sh_mtu2_clock_event_suspend(struct clock_event_device *ced) in sh_mtu2_clock_event_suspend() argument
300 dev_pm_genpd_suspend(&ced_to_sh_mtu2(ced)->mtu->pdev->dev); in sh_mtu2_clock_event_suspend()
303 static void sh_mtu2_clock_event_resume(struct clock_event_device *ced) in sh_mtu2_clock_event_resume() argument
305 dev_pm_genpd_resume(&ced_to_sh_mtu2(ced)->mtu->pdev->dev); in sh_mtu2_clock_event_resume()
311 struct clock_event_device *ced = &ch->ced; in sh_mtu2_register_clockevent() local
313 ced->name = name; in sh_mtu2_register_clockevent()
314 ced->features = CLOCK_EVT_FEAT_PERIODIC; in sh_mtu2_register_clockevent()
315 ced->rating = 200; in sh_mtu2_register_clockevent()
316 ced->cpumask = cpu_possible_mask; in sh_mtu2_register_clockevent()
317 ced->set_state_shutdown = sh_mtu2_clock_event_shutdown; in sh_mtu2_register_clockevent()
318 ced->set_state_periodic = sh_mtu2_clock_event_set_periodic; in sh_mtu2_register_clockevent()
319 ced->suspend = sh_mtu2_clock_event_suspend; in sh_mtu2_register_clockevent()
320 ced->resume = sh_mtu2_clock_event_resume; in sh_mtu2_register_clockevent()
324 clockevents_register_device(ced); in sh_mtu2_register_clockevent()