Lines Matching refs:clkevt
438 struct dmtimer_clockevent *clkevt = data; in dmtimer_clockevent_interrupt() local
439 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_interrupt()
442 clkevt->dev.event_handler(&clkevt->dev); in dmtimer_clockevent_interrupt()
450 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_next_event() local
451 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_next_event()
467 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_clockevent_shutdown() local
468 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_shutdown()
488 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_periodic() local
489 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_periodic()
497 writel_relaxed(clkevt->period, t->base + t->load); in dmtimer_set_periodic()
501 writel_relaxed(clkevt->period, t->base + t->counter); in dmtimer_set_periodic()
513 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in omap_clockevent_idle() local
514 struct dmtimer_systimer *t = &clkevt->t; in omap_clockevent_idle()
522 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in omap_clockevent_unidle() local
523 struct dmtimer_systimer *t = &clkevt->t; in omap_clockevent_unidle()
535 static int __init dmtimer_clkevt_init_common(struct dmtimer_clockevent *clkevt, in dmtimer_clkevt_init_common() argument
546 t = &clkevt->t; in dmtimer_clkevt_init_common()
547 dev = &clkevt->dev; in dmtimer_clkevt_init_common()
567 error = dmtimer_systimer_setup(np, &clkevt->t); in dmtimer_clkevt_init_common()
571 clkevt->period = 0xffffffff - DIV_ROUND_CLOSEST(t->rate, HZ); in dmtimer_clkevt_init_common()
581 IRQF_TIMER, name, clkevt); in dmtimer_clkevt_init_common()
602 struct dmtimer_clockevent *clkevt; in dmtimer_clockevent_init() local
605 clkevt = kzalloc(sizeof(*clkevt), GFP_KERNEL); in dmtimer_clockevent_init()
606 if (!clkevt) in dmtimer_clockevent_init()
609 error = dmtimer_clkevt_init_common(clkevt, np, in dmtimer_clockevent_init()
617 clockevents_config_and_register(&clkevt->dev, clkevt->t.rate, in dmtimer_clockevent_init()
623 clkevt->dev.suspend = omap_clockevent_idle; in dmtimer_clockevent_init()
624 clkevt->dev.resume = omap_clockevent_unidle; in dmtimer_clockevent_init()
630 kfree(clkevt); in dmtimer_clockevent_init()
640 struct dmtimer_clockevent *clkevt; in dmtimer_percpu_timer_init() local
650 clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); in dmtimer_percpu_timer_init()
652 error = dmtimer_clkevt_init_common(clkevt, np, CLOCK_EVT_FEAT_ONESHOT, in dmtimer_percpu_timer_init()
664 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); in omap_dmtimer_starting_cpu() local
665 struct clock_event_device *dev = &clkevt->dev; in omap_dmtimer_starting_cpu()
666 struct dmtimer_systimer *t = &clkevt->t; in omap_dmtimer_starting_cpu()
676 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, 0); in dmtimer_percpu_timer_startup() local
677 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_percpu_timer_startup()