Lines Matching refs:mevt
349 static void exynos4_mct_tick_stop(struct mct_clock_event_device *mevt) in exynos4_mct_tick_stop() argument
353 unsigned long offset = mevt->base + MCT_L_TCON_OFFSET; in exynos4_mct_tick_stop()
363 struct mct_clock_event_device *mevt) in exynos4_mct_tick_start() argument
367 exynos4_mct_tick_stop(mevt); in exynos4_mct_tick_start()
372 exynos4_mct_write(tmp, mevt->base + MCT_L_ICNTB_OFFSET); in exynos4_mct_tick_start()
375 exynos4_mct_write(0x1, mevt->base + MCT_L_INT_ENB_OFFSET); in exynos4_mct_tick_start()
377 tmp = readl_relaxed(reg_base + mevt->base + MCT_L_TCON_OFFSET); in exynos4_mct_tick_start()
380 exynos4_mct_write(tmp, mevt->base + MCT_L_TCON_OFFSET); in exynos4_mct_tick_start()
386 struct mct_clock_event_device *mevt = this_cpu_ptr(&percpu_mct_tick); in exynos4_tick_set_next_event() local
388 exynos4_mct_tick_start(cycles, mevt); in exynos4_tick_set_next_event()
396 struct mct_clock_event_device *mevt = this_cpu_ptr(&percpu_mct_tick); in exynos4_tick_set_mode() local
399 exynos4_mct_tick_stop(mevt); in exynos4_tick_set_mode()
405 exynos4_mct_tick_start(cycles_per_jiffy, mevt); in exynos4_tick_set_mode()
416 static int exynos4_mct_tick_clear(struct mct_clock_event_device *mevt) in exynos4_mct_tick_clear() argument
418 struct clock_event_device *evt = &mevt->evt; in exynos4_mct_tick_clear()
426 exynos4_mct_tick_stop(mevt); in exynos4_mct_tick_clear()
429 if (readl_relaxed(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) { in exynos4_mct_tick_clear()
430 exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET); in exynos4_mct_tick_clear()
439 struct mct_clock_event_device *mevt = dev_id; in exynos4_mct_tick_isr() local
440 struct clock_event_device *evt = &mevt->evt; in exynos4_mct_tick_isr()
442 exynos4_mct_tick_clear(mevt); in exynos4_mct_tick_isr()
451 struct mct_clock_event_device *mevt; in exynos4_local_timer_setup() local
454 mevt = container_of(evt, struct mct_clock_event_device, evt); in exynos4_local_timer_setup()
456 mevt->base = EXYNOS4_MCT_L_BASE(cpu); in exynos4_local_timer_setup()
457 snprintf(mevt->name, sizeof(mevt->name), "mct_tick%d", cpu); in exynos4_local_timer_setup()
459 evt->name = mevt->name; in exynos4_local_timer_setup()
466 exynos4_mct_write(TICK_BASE_CNT, mevt->base + MCT_L_TCNTB_OFFSET); in exynos4_local_timer_setup()
498 struct mct_clock_event_device *mevt; in exynos4_mct_cpu_notify() local
506 mevt = this_cpu_ptr(&percpu_mct_tick); in exynos4_mct_cpu_notify()
507 exynos4_local_timer_setup(&mevt->evt); in exynos4_mct_cpu_notify()
510 mevt = this_cpu_ptr(&percpu_mct_tick); in exynos4_mct_cpu_notify()
511 exynos4_local_timer_stop(&mevt->evt); in exynos4_mct_cpu_notify()
525 struct mct_clock_event_device *mevt = this_cpu_ptr(&percpu_mct_tick); in exynos4_timer_resources() local
577 exynos4_local_timer_setup(&mevt->evt); in exynos4_timer_resources()