Lines Matching refs:clkevt
437 struct dmtimer_clockevent *clkevt = data; in dmtimer_clockevent_interrupt() local
438 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_interrupt()
441 clkevt->dev.event_handler(&clkevt->dev); in dmtimer_clockevent_interrupt()
449 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_next_event() local
450 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_next_event()
466 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_clockevent_shutdown() local
467 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_shutdown()
487 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_periodic() local
488 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_periodic()
496 writel_relaxed(clkevt->period, t->base + t->load); in dmtimer_set_periodic()
500 writel_relaxed(clkevt->period, t->base + t->counter); in dmtimer_set_periodic()
512 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in omap_clockevent_idle() local
513 struct dmtimer_systimer *t = &clkevt->t; in omap_clockevent_idle()
521 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in omap_clockevent_unidle() local
522 struct dmtimer_systimer *t = &clkevt->t; in omap_clockevent_unidle()
534 static int __init dmtimer_clkevt_init_common(struct dmtimer_clockevent *clkevt, in dmtimer_clkevt_init_common() argument
545 t = &clkevt->t; in dmtimer_clkevt_init_common()
546 dev = &clkevt->dev; in dmtimer_clkevt_init_common()
566 error = dmtimer_systimer_setup(np, &clkevt->t); in dmtimer_clkevt_init_common()
570 clkevt->period = 0xffffffff - DIV_ROUND_CLOSEST(t->rate, HZ); in dmtimer_clkevt_init_common()
580 IRQF_TIMER, name, clkevt); in dmtimer_clkevt_init_common()
601 struct dmtimer_clockevent *clkevt; in dmtimer_clockevent_init() local
604 clkevt = kzalloc(sizeof(*clkevt), GFP_KERNEL); in dmtimer_clockevent_init()
605 if (!clkevt) in dmtimer_clockevent_init()
608 error = dmtimer_clkevt_init_common(clkevt, np, in dmtimer_clockevent_init()
616 clockevents_config_and_register(&clkevt->dev, clkevt->t.rate, in dmtimer_clockevent_init()
622 clkevt->dev.suspend = omap_clockevent_idle; in dmtimer_clockevent_init()
623 clkevt->dev.resume = omap_clockevent_unidle; in dmtimer_clockevent_init()
629 kfree(clkevt); in dmtimer_clockevent_init()
639 struct dmtimer_clockevent *clkevt; in dmtimer_percpu_timer_init() local
649 clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); in dmtimer_percpu_timer_init()
651 error = dmtimer_clkevt_init_common(clkevt, np, CLOCK_EVT_FEAT_ONESHOT, in dmtimer_percpu_timer_init()
663 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); in omap_dmtimer_starting_cpu() local
664 struct clock_event_device *dev = &clkevt->dev; in omap_dmtimer_starting_cpu()
665 struct dmtimer_systimer *t = &clkevt->t; in omap_dmtimer_starting_cpu()
675 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, 0); in dmtimer_percpu_timer_startup() local
676 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_percpu_timer_startup()