Lines Matching refs:evt
83 struct clock_event_device evt; member
297 struct clock_event_device *evt) in exynos4_comp_set_next_event() argument
304 static int mct_set_state_shutdown(struct clock_event_device *evt) in mct_set_state_shutdown() argument
310 static int mct_set_state_periodic(struct clock_event_device *evt) in mct_set_state_periodic() argument
314 cycles_per_jiffy = (((unsigned long long)NSEC_PER_SEC / HZ * evt->mult) in mct_set_state_periodic()
315 >> evt->shift); in mct_set_state_periodic()
336 struct clock_event_device *evt = dev_id; in exynos4_mct_comp_isr() local
340 evt->event_handler(evt); in exynos4_mct_comp_isr()
403 struct clock_event_device *evt) in exynos4_tick_set_next_event() argument
407 mevt = container_of(evt, struct mct_clock_event_device, evt); in exynos4_tick_set_next_event()
412 static int set_state_shutdown(struct clock_event_device *evt) in set_state_shutdown() argument
416 mevt = container_of(evt, struct mct_clock_event_device, evt); in set_state_shutdown()
422 static int set_state_periodic(struct clock_event_device *evt) in set_state_periodic() argument
427 mevt = container_of(evt, struct mct_clock_event_device, evt); in set_state_periodic()
428 cycles_per_jiffy = (((unsigned long long)NSEC_PER_SEC / HZ * evt->mult) in set_state_periodic()
429 >> evt->shift); in set_state_periodic()
438 struct clock_event_device *evt = &mevt->evt; in exynos4_mct_tick_isr() local
445 if (!clockevent_state_periodic(&mevt->evt)) in exynos4_mct_tick_isr()
450 evt->event_handler(evt); in exynos4_mct_tick_isr()
459 struct clock_event_device *evt = &mevt->evt; in exynos4_mct_starting_cpu() local
463 evt->name = mevt->name; in exynos4_mct_starting_cpu()
464 evt->cpumask = cpumask_of(cpu); in exynos4_mct_starting_cpu()
465 evt->set_next_event = exynos4_tick_set_next_event; in exynos4_mct_starting_cpu()
466 evt->set_state_periodic = set_state_periodic; in exynos4_mct_starting_cpu()
467 evt->set_state_shutdown = set_state_shutdown; in exynos4_mct_starting_cpu()
468 evt->set_state_oneshot = set_state_shutdown; in exynos4_mct_starting_cpu()
469 evt->set_state_oneshot_stopped = set_state_shutdown; in exynos4_mct_starting_cpu()
470 evt->tick_resume = set_state_shutdown; in exynos4_mct_starting_cpu()
471 evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT | in exynos4_mct_starting_cpu()
473 evt->rating = MCT_CLKEVENTS_RATING; in exynos4_mct_starting_cpu()
479 if (evt->irq == -1) in exynos4_mct_starting_cpu()
482 irq_force_affinity(evt->irq, cpumask_of(cpu)); in exynos4_mct_starting_cpu()
483 enable_irq(evt->irq); in exynos4_mct_starting_cpu()
487 clockevents_config_and_register(evt, clk_rate / (TICK_BASE_CNT + 1), in exynos4_mct_starting_cpu()
497 struct clock_event_device *evt = &mevt->evt; in exynos4_mct_dying_cpu() local
499 evt->set_state_shutdown(evt); in exynos4_mct_dying_cpu()
501 if (evt->irq != -1) in exynos4_mct_dying_cpu()
502 disable_irq_nosync(evt->irq); in exynos4_mct_dying_cpu()
585 pcpu_mevt->evt.irq = -1; in exynos4_timer_interrupts()
600 pcpu_mevt->evt.irq = mct_irq; in exynos4_timer_interrupts()
633 if (pcpu_mevt->evt.irq != -1) { in exynos4_timer_interrupts()
634 free_irq(pcpu_mevt->evt.irq, pcpu_mevt); in exynos4_timer_interrupts()
635 pcpu_mevt->evt.irq = -1; in exynos4_timer_interrupts()