Lines Matching refs:clkevt

436 	struct dmtimer_clockevent *clkevt = data;  in dmtimer_clockevent_interrupt()  local
437 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_interrupt()
440 clkevt->dev.event_handler(&clkevt->dev); in dmtimer_clockevent_interrupt()
448 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_next_event() local
449 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_next_event()
465 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_clockevent_shutdown() local
466 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_shutdown()
486 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_periodic() local
487 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_periodic()
495 writel_relaxed(clkevt->period, t->base + t->load); in dmtimer_set_periodic()
499 writel_relaxed(clkevt->period, t->base + t->counter); in dmtimer_set_periodic()
511 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in omap_clockevent_idle() local
512 struct dmtimer_systimer *t = &clkevt->t; in omap_clockevent_idle()
520 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in omap_clockevent_unidle() local
521 struct dmtimer_systimer *t = &clkevt->t; in omap_clockevent_unidle()
533 static int __init dmtimer_clkevt_init_common(struct dmtimer_clockevent *clkevt, in dmtimer_clkevt_init_common() argument
544 t = &clkevt->t; in dmtimer_clkevt_init_common()
545 dev = &clkevt->dev; in dmtimer_clkevt_init_common()
565 error = dmtimer_systimer_setup(np, &clkevt->t); in dmtimer_clkevt_init_common()
569 clkevt->period = 0xffffffff - DIV_ROUND_CLOSEST(t->rate, HZ); in dmtimer_clkevt_init_common()
579 IRQF_TIMER, name, clkevt); in dmtimer_clkevt_init_common()
600 struct dmtimer_clockevent *clkevt; in dmtimer_clockevent_init() local
603 clkevt = kzalloc(sizeof(*clkevt), GFP_KERNEL); in dmtimer_clockevent_init()
604 if (!clkevt) in dmtimer_clockevent_init()
607 error = dmtimer_clkevt_init_common(clkevt, np, in dmtimer_clockevent_init()
615 clockevents_config_and_register(&clkevt->dev, clkevt->t.rate, in dmtimer_clockevent_init()
621 clkevt->dev.suspend = omap_clockevent_idle; in dmtimer_clockevent_init()
622 clkevt->dev.resume = omap_clockevent_unidle; in dmtimer_clockevent_init()
628 kfree(clkevt); in dmtimer_clockevent_init()
638 struct dmtimer_clockevent *clkevt; in dmtimer_percpu_timer_init() local
648 clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); in dmtimer_percpu_timer_init()
650 error = dmtimer_clkevt_init_common(clkevt, np, CLOCK_EVT_FEAT_ONESHOT, in dmtimer_percpu_timer_init()
662 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); in omap_dmtimer_starting_cpu() local
663 struct clock_event_device *dev = &clkevt->dev; in omap_dmtimer_starting_cpu()
664 struct dmtimer_systimer *t = &clkevt->t; in omap_dmtimer_starting_cpu()
674 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, 0); in dmtimer_percpu_timer_startup() local
675 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_percpu_timer_startup()