Lines Matching refs:base
40 void __iomem *base; member
47 void *base = data->base; in stm32_clock_event_shutdown() local
49 writel_relaxed(0, base + TIM_CR1); in stm32_clock_event_shutdown()
57 void *base = data->base; in stm32_clock_event_set_periodic() local
59 writel_relaxed(data->periodic_top, base + TIM_ARR); in stm32_clock_event_set_periodic()
60 writel_relaxed(TIM_CR1_ARPE | TIM_CR1_CEN, base + TIM_CR1); in stm32_clock_event_set_periodic()
70 writel_relaxed(evt, data->base + TIM_ARR); in stm32_clock_event_set_next_event()
72 data->base + TIM_CR1); in stm32_clock_event_set_next_event()
81 writel_relaxed(0, data->base + TIM_SR); in stm32_clock_event_handler()
131 data->base = of_iomap(np, 0); in stm32_clockevent_init()
132 if (!data->base) { in stm32_clockevent_init()
144 writel_relaxed(~0U, data->base + TIM_ARR); in stm32_clockevent_init()
145 max_delta = readl_relaxed(data->base + TIM_ARR); in stm32_clockevent_init()
153 writel_relaxed(0, data->base + TIM_ARR); in stm32_clockevent_init()
155 writel_relaxed(prescaler - 1, data->base + TIM_PSC); in stm32_clockevent_init()
156 writel_relaxed(TIM_EGR_UG, data->base + TIM_EGR); in stm32_clockevent_init()
157 writel_relaxed(TIM_DIER_UIE, data->base + TIM_DIER); in stm32_clockevent_init()
158 writel_relaxed(0, data->base + TIM_SR); in stm32_clockevent_init()
179 iounmap(data->base); in stm32_clockevent_init()