Lines Matching refs:mevt
361 static void exynos4_mct_tick_stop(struct mct_clock_event_device *mevt) in exynos4_mct_tick_stop() argument
365 unsigned long offset = mevt->base + MCT_L_TCON_OFFSET; in exynos4_mct_tick_stop()
375 struct mct_clock_event_device *mevt) in exynos4_mct_tick_start() argument
379 exynos4_mct_tick_stop(mevt); in exynos4_mct_tick_start()
384 exynos4_mct_write(tmp, mevt->base + MCT_L_ICNTB_OFFSET); in exynos4_mct_tick_start()
387 exynos4_mct_write(0x1, mevt->base + MCT_L_INT_ENB_OFFSET); in exynos4_mct_tick_start()
389 tmp = readl_relaxed(reg_base + mevt->base + MCT_L_TCON_OFFSET); in exynos4_mct_tick_start()
392 exynos4_mct_write(tmp, mevt->base + MCT_L_TCON_OFFSET); in exynos4_mct_tick_start()
395 static void exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) in exynos4_mct_tick_clear() argument
398 if (readl_relaxed(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) in exynos4_mct_tick_clear()
399 exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET); in exynos4_mct_tick_clear()
405 struct mct_clock_event_device *mevt; in exynos4_tick_set_next_event() local
407 mevt = container_of(evt, struct mct_clock_event_device, evt); in exynos4_tick_set_next_event()
408 exynos4_mct_tick_start(cycles, mevt); in exynos4_tick_set_next_event()
414 struct mct_clock_event_device *mevt; in set_state_shutdown() local
416 mevt = container_of(evt, struct mct_clock_event_device, evt); in set_state_shutdown()
417 exynos4_mct_tick_stop(mevt); in set_state_shutdown()
418 exynos4_mct_tick_clear(mevt); in set_state_shutdown()
424 struct mct_clock_event_device *mevt; in set_state_periodic() local
427 mevt = container_of(evt, struct mct_clock_event_device, evt); in set_state_periodic()
430 exynos4_mct_tick_stop(mevt); in set_state_periodic()
431 exynos4_mct_tick_start(cycles_per_jiffy, mevt); in set_state_periodic()
437 struct mct_clock_event_device *mevt = dev_id; in exynos4_mct_tick_isr() local
438 struct clock_event_device *evt = &mevt->evt; in exynos4_mct_tick_isr()
445 if (!clockevent_state_periodic(&mevt->evt)) in exynos4_mct_tick_isr()
446 exynos4_mct_tick_stop(mevt); in exynos4_mct_tick_isr()
448 exynos4_mct_tick_clear(mevt); in exynos4_mct_tick_isr()
457 struct mct_clock_event_device *mevt = in exynos4_mct_starting_cpu() local
459 struct clock_event_device *evt = &mevt->evt; in exynos4_mct_starting_cpu()
461 snprintf(mevt->name, sizeof(mevt->name), "mct_tick%d", cpu); in exynos4_mct_starting_cpu()
463 evt->name = mevt->name; in exynos4_mct_starting_cpu()
475 exynos4_mct_write(TICK_BASE_CNT, mevt->base + MCT_L_TCNTB_OFFSET); in exynos4_mct_starting_cpu()
495 struct mct_clock_event_device *mevt = in exynos4_mct_dying_cpu() local
497 struct clock_event_device *evt = &mevt->evt; in exynos4_mct_dying_cpu()
503 exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET); in exynos4_mct_dying_cpu()
605 struct mct_clock_event_device *mevt = per_cpu_ptr(&percpu_mct_tick, cpu); in exynos4_timer_interrupts() local
612 mevt->base = EXYNOS4_MCT_L_BASE(local_idx[cpu]); in exynos4_timer_interrupts()