Lines Matching refs:ced
51 struct clock_event_device ced; member
243 if (ch->ced.mode == CLOCK_EVT_MODE_ONESHOT) in sh_tmu_interrupt()
249 ch->ced.event_handler(&ch->ced); in sh_tmu_interrupt()
342 static struct sh_tmu_channel *ced_to_sh_tmu(struct clock_event_device *ced) in ced_to_sh_tmu() argument
344 return container_of(ced, struct sh_tmu_channel, ced); in ced_to_sh_tmu()
349 struct clock_event_device *ced = &ch->ced; in sh_tmu_clock_event_start() local
353 clockevents_config(ced, ch->rate); in sh_tmu_clock_event_start()
362 struct clock_event_device *ced) in sh_tmu_clock_event_mode() argument
364 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); in sh_tmu_clock_event_mode()
368 switch (ced->mode) { in sh_tmu_clock_event_mode()
400 struct clock_event_device *ced) in sh_tmu_clock_event_next() argument
402 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); in sh_tmu_clock_event_next()
404 BUG_ON(ced->mode != CLOCK_EVT_MODE_ONESHOT); in sh_tmu_clock_event_next()
411 static void sh_tmu_clock_event_suspend(struct clock_event_device *ced) in sh_tmu_clock_event_suspend() argument
413 pm_genpd_syscore_poweroff(&ced_to_sh_tmu(ced)->tmu->pdev->dev); in sh_tmu_clock_event_suspend()
416 static void sh_tmu_clock_event_resume(struct clock_event_device *ced) in sh_tmu_clock_event_resume() argument
418 pm_genpd_syscore_poweron(&ced_to_sh_tmu(ced)->tmu->pdev->dev); in sh_tmu_clock_event_resume()
424 struct clock_event_device *ced = &ch->ced; in sh_tmu_register_clockevent() local
427 ced->name = name; in sh_tmu_register_clockevent()
428 ced->features = CLOCK_EVT_FEAT_PERIODIC; in sh_tmu_register_clockevent()
429 ced->features |= CLOCK_EVT_FEAT_ONESHOT; in sh_tmu_register_clockevent()
430 ced->rating = 200; in sh_tmu_register_clockevent()
431 ced->cpumask = cpu_possible_mask; in sh_tmu_register_clockevent()
432 ced->set_next_event = sh_tmu_clock_event_next; in sh_tmu_register_clockevent()
433 ced->set_mode = sh_tmu_clock_event_mode; in sh_tmu_register_clockevent()
434 ced->suspend = sh_tmu_clock_event_suspend; in sh_tmu_register_clockevent()
435 ced->resume = sh_tmu_clock_event_resume; in sh_tmu_register_clockevent()
440 clockevents_config_and_register(ced, 1, 0x300, 0xffffffff); in sh_tmu_register_clockevent()