timer_of_base
writel(timer_of_period(to) - 1, timer_of_base(to) + OSTM_CMP);
writeb(CTL_PERIODIC, timer_of_base(to) + OSTM_CTL);
writeb(TS, timer_of_base(to) + OSTM_TS);
if (readb(timer_of_base(to) + OSTM_TE) & TE) {
writeb(TT, timer_of_base(to) + OSTM_TT);
while (readb(timer_of_base(to) + OSTM_TE) & TE)
writel(0, timer_of_base(to) + OSTM_CMP);
writeb(CTL_FREERUN, timer_of_base(to) + OSTM_CTL);
writeb(TS, timer_of_base(to) + OSTM_TS);
return clocksource_mmio_init(timer_of_base(to) + OSTM_CNT,
system_clock = timer_of_base(to) + OSTM_CNT;
writel(delta, timer_of_base(to) + OSTM_CMP);
writeb(CTL_ONESHOT, timer_of_base(to) + OSTM_CTL);
writeb(TS, timer_of_base(to) + OSTM_TS);
gx6605s_clkevt_init(timer_of_base(&to));
return gx6605s_clksrc_init(timer_of_base(&to) + CLKSRC_OFFSET);
void __iomem *base = timer_of_base(to_timer_of(ce));
void __iomem *base = timer_of_base(to_timer_of(ce));
void __iomem *base = timer_of_base(to_timer_of(ce));
void __iomem *base = timer_of_base(to_timer_of(ce));
base = timer_of_base(&to) + CLKSRC_OFFSET;
base = timer_of_base(&to_sysctr);
void __iomem *base = timer_of_base(to);
void __iomem *base = timer_of_base(to);
void __iomem *base = timer_of_base(to);
timer_base = timer_of_base(&to_tpm);
ls1x_clocksource.reg_base = timer_of_base(to);
writel(period, timer_of_base(to) + PWM_LRC);
writel(period, timer_of_base(to) + PWM_HRC);
writel(0, timer_of_base(to) + PWM_CNTR);
writel((INT_EN | PWM_OE | CNT_EN), timer_of_base(to) + PWM_CTRL);
writel(0, timer_of_base(to) + PWM_CTRL);
val = readl(timer_of_base(to) + PWM_CTRL);
writel(val, timer_of_base(to) + PWM_CTRL);
writel(reg_idx, timer_of_base(to) + CPUX_IDX_REG);
return readl(timer_of_base(to) + CPUX_CON_REG);
writel(reg_idx, timer_of_base(to) + CPUX_IDX_REG);
writel(val, timer_of_base(to) + CPUX_CON_REG);
val = readl(timer_of_base(to) + GPT_CTRL_REG(timer));
writel(val & ~GPT_CTRL_ENABLE, timer_of_base(to) +
writel(delay, timer_of_base(to) + GPT_CMP_REG(timer));
writel(GPT_IRQ_ACK(timer), timer_of_base(to) + GPT_IRQ_ACK_REG);
val = readl(timer_of_base(to) + GPT_CTRL_REG(timer));
timer_of_base(to) + GPT_CTRL_REG(timer));
writel(GPT_IRQ_ACK(TIMER_CLK_EVT), timer_of_base(to) + GPT_IRQ_ACK_REG);
timer_of_base(to) + GPT_CTRL_REG(timer));
timer_of_base(to) + GPT_CLK_REG(timer));
writel(0x0, timer_of_base(to) + GPT_CMP_REG(timer));
timer_of_base(to) + GPT_CTRL_REG(timer));
writel(0x0, timer_of_base(to) + GPT_IRQ_EN_REG);
writel(0x3f, timer_of_base(to) + GPT_IRQ_ACK_REG);
val = readl(timer_of_base(to) + GPT_IRQ_EN_REG);
timer_of_base(to) + GPT_IRQ_EN_REG);
writel(0x0, timer_of_base(to) + GPT_IRQ_EN_REG);
writel(0x3f, timer_of_base(to) + GPT_IRQ_ACK_REG);
clocksource_mmio_init(timer_of_base(&to) + GPT_CNT_REG(TIMER_CLK_SRC),
gpt_sched_reg = timer_of_base(&to) + GPT_CNT_REG(TIMER_CLK_SRC);
#define SYST_CON_REG(to) (timer_of_base(to) + SYST_CON)
#define SYST_VAL_REG(to) (timer_of_base(to) + SYST_VAL)
writel_relaxed(val, timer_of_base(to) + MLB_TMR_SRC_TMCSR_OFS);
writel_relaxed(~0, timer_of_base(to) + MLB_TMR_SRC_TMRLR1_OFS);
writel_relaxed(~0, timer_of_base(to) + MLB_TMR_SRC_TMRLR2_OFS);
writel_relaxed(val, timer_of_base(to) + MLB_TMR_SRC_TMCSR_OFS);
writel_relaxed(0, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS);
return ~readl_relaxed(timer_of_base(&to) + MLB_TMR_SRC_TMR_OFS);
clocksource_mmio_init(timer_of_base(&to) + MLB_TMR_SRC_TMR_OFS,
val = readl_relaxed(timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS);
writel_relaxed(val, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS);
writel_relaxed(val, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS);
u32 val = readl_relaxed(timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS);
writel_relaxed(val, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS);
writel_relaxed(cnt, timer_of_base(to) + MLB_TMR_EVT_TMRLR1_OFS);
msc313e_timer_stop(timer_of_base(timer));
msc313e_timer_start(timer_of_base(timer), false);
msc313e_timer_stop(timer_of_base(timer));
msc313e_timer_setup(timer_of_base(timer), timer_of_period(timer));
msc313e_timer_start(timer_of_base(timer), true);
msc313e_timer_stop(timer_of_base(timer));
msc313e_timer_setup(timer_of_base(timer), evt);
msc313e_timer_start(timer_of_base(timer), false);
writew(MSC313E_CLK_DIVIDER - 1, timer_of_base(to) + MSC313E_REG_TIMER_DIVIDE);
msc313e_clksrc = timer_of_base(&to);
msc313e_delay.base = timer_of_base(&to);
return clocksource_mmio_init(timer_of_base(&to), TIMER_NAME, timer_of_rate(&to), 300, 32,
msc313e_timer_stop(timer_of_base(timer));
val = readl(timer_of_base(to) + NPCM7XX_REG_TCSR0);
writel(val, timer_of_base(to) + NPCM7XX_REG_TCSR0);
writel(evt, timer_of_base(to) + NPCM7XX_REG_TICR0);
val = readl(timer_of_base(to) + NPCM7XX_REG_TCSR0);
writel(val, timer_of_base(to) + NPCM7XX_REG_TCSR0);
writel(NPCM7XX_T0_CLR_INT, timer_of_base(to) + NPCM7XX_REG_TISR);
timer_of_base(&npcm7xx_to) + NPCM7XX_REG_TCSR0);
timer_of_base(&npcm7xx_to) + NPCM7XX_REG_TISR);
timer_of_base(&npcm7xx_to) + NPCM7XX_REG_TCSR1);
timer_of_base(&npcm7xx_to) + NPCM7XX_REG_TICR1);
val = readl(timer_of_base(&npcm7xx_to) + NPCM7XX_REG_TCSR1);
writel(val, timer_of_base(&npcm7xx_to) + NPCM7XX_REG_TCSR1);
clocksource_mmio_init(timer_of_base(&npcm7xx_to) +
timer_of_base(&npcm7xx_to), timer_of_irq(&npcm7xx_to));
val = readl(timer_of_base(to) + NPCM7XX_REG_TCSR0);
writel(val, timer_of_base(to) + NPCM7XX_REG_TCSR0);
val = readl(timer_of_base(to) + NPCM7XX_REG_TCSR0);
writel(val, timer_of_base(to) + NPCM7XX_REG_TCSR0);
val = readl(timer_of_base(to) + NPCM7XX_REG_TCSR0);
writel(val, timer_of_base(to) + NPCM7XX_REG_TCSR0);
writel(timer_of_period(to), timer_of_base(to) + NPCM7XX_REG_TICR0);
rda_ostimer_start(timer_of_base(to), false, evt);
timer_of_base(to) + RDA_TIMER_IRQ_CLR);
void __iomem *base = timer_of_base(&rda_ostimer_of);
rda_ostimer_stop(timer_of_base(to));
rda_ostimer_stop(timer_of_base(to));
rda_ostimer_stop(timer_of_base(to));
rda_ostimer_start(timer_of_base(to), true, cycles_per_jiffy);
systimer_base = timer_of_base(&rtk_timer_to);
sprd_timer_disable(timer_of_base(to));
sprd_timer_clear_interrupt(timer_of_base(to));
sprd_timer_disable(timer_of_base(to));
sprd_timer_enable_interrupt(timer_of_base(&to));
hi = readl_relaxed(timer_of_base(&suspend_to) +
lo = readl_relaxed(timer_of_base(&suspend_to) +
} while (hi != readl_relaxed(timer_of_base(&suspend_to) + TIMER_VALUE_SHDW_HI));
timer_of_base(&suspend_to) + TIMER_LOAD_LO);
timer_of_base(&suspend_to) + TIMER_LOAD_HI);
sprd_timer_enable(timer_of_base(&suspend_to),
sprd_timer_disable(timer_of_base(&suspend_to));
sprd_timer_disable(timer_of_base(to));
sprd_timer_update_counter(timer_of_base(to), cycles);
sprd_timer_enable(timer_of_base(to), 0);
sprd_timer_disable(timer_of_base(to));
sprd_timer_update_counter(timer_of_base(to), timer_of_period(to));
sprd_timer_enable(timer_of_base(to), TIMER_CTL_PERIOD_MODE);
writel_relaxed(0, timer_of_base(to) + TIM_DIER);
writel_relaxed(TIM_CR1_UDIS | TIM_CR1_CEN, timer_of_base(to) + TIM_CR1);
next = readl_relaxed(timer_of_base(to) + TIM_CNT) + evt;
writel_relaxed(next, timer_of_base(to) + TIM_CCR1);
now = readl_relaxed(timer_of_base(to) + TIM_CNT);
writel_relaxed(TIM_DIER_CC1IE, timer_of_base(to) + TIM_DIER);
writel_relaxed(0, timer_of_base(to) + TIM_SR);
writel_relaxed(UINT_MAX, timer_of_base(to) + TIM_ARR);
width = readl_relaxed(timer_of_base(to) + TIM_ARR);
writel_relaxed(prescaler - 1, timer_of_base(to) + TIM_PSC);
writel_relaxed(TIM_EGR_UG, timer_of_base(to) + TIM_EGR);
writel_relaxed(0, timer_of_base(to) + TIM_SR);
stm32_timer_cnt = timer_of_base(to) + TIM_CNT;
return clocksource_mmio_init(timer_of_base(to) + TIM_CNT, name,
sun4i_clkevt_time_stop(timer_of_base(to), 0);
sun4i_clkevt_time_setup(timer_of_base(to), 0, timer_of_period(to));
sun4i_clkevt_time_start(timer_of_base(to), 0, true);
sun4i_clkevt_time_stop(timer_of_base(to), 0);
sun4i_clkevt_time_setup(timer_of_base(to), 0, evt - TIMER_SYNC_TICKS);
sun4i_clkevt_time_start(timer_of_base(to), 0, false);
sun4i_timer_clear_interrupt(timer_of_base(to));
return ~readl(timer_of_base(&to) + TIMER_CNTVAL_REG(1));
writel(~0, timer_of_base(&to) + TIMER_INTVAL_REG(1));
timer_of_base(&to) + TIMER_CTL_REG(1));
ret = clocksource_mmio_init(timer_of_base(&to) + TIMER_CNTVAL_REG(1),
timer_of_base(&to) + TIMER_CTL_REG(0));
sun4i_clkevt_time_stop(timer_of_base(&to), 0);
sun4i_timer_clear_interrupt(timer_of_base(&to));
val = readl(timer_of_base(&to) + TIMER_IRQ_EN_REG);
writel(val | TIMER_IRQ_EN(0), timer_of_base(&to) + TIMER_IRQ_EN_REG);
sun4i_clkevt_time_stop(timer_of_base(to), 0);
sun4i_clkevt_time_stop(timer_of_base(to), 0);
sun4i_clkevt_time_start(timer_of_base(to), 0, false);
void __iomem *reg_base = timer_of_base(to_timer_of(evt));
writel_relaxed(0, timer_of_base(to) + TIMER_PTV);
writel_relaxed(TIMER_PCR_INTR_CLR, timer_of_base(to) + TIMER_PCR);
void __iomem *reg_base = timer_of_base(&suspend_rtc_to);
timer_reg_base = timer_of_base(to);
void __iomem *reg_base = timer_of_base(to_timer_of(evt));
void __iomem *reg_base = timer_of_base(to_timer_of(evt));
void __iomem *reg_base = timer_of_base(to_timer_of(evt));
void __iomem *reg_base = timer_of_base(to_timer_of(evt));