Lines Matching defs:base
28 void __iomem *base = timer_of_base(to_timer_of(ce));
30 writel_relaxed(GX6605S_STATUS_CLR, base + TIMER_STATUS);
31 writel_relaxed(0, base + TIMER_INI);
40 void __iomem *base = timer_of_base(to_timer_of(ce));
43 writel_relaxed(GX6605S_CONTRL_RST, base + TIMER_CONTRL);
47 base + TIMER_CONFIG);
55 void __iomem *base = timer_of_base(to_timer_of(ce));
58 writel_relaxed(GX6605S_CONTRL_RST, base + TIMER_CONTRL);
61 writel_relaxed(ULONG_MAX - delta, base + TIMER_INI);
62 writel_relaxed(GX6605S_CONTRL_START, base + TIMER_CONTRL);
69 void __iomem *base = timer_of_base(to_timer_of(ce));
71 writel_relaxed(0, base + TIMER_CONTRL);
72 writel_relaxed(0, base + TIMER_CONFIG);
96 void __iomem *base;
98 base = timer_of_base(&to) + CLKSRC_OFFSET;
100 return (u64)readl_relaxed(base + TIMER_VALUE);
103 static void gx6605s_clkevt_init(void __iomem *base)
105 writel_relaxed(0, base + TIMER_DIV);
106 writel_relaxed(0, base + TIMER_CONFIG);
112 static int gx6605s_clksrc_init(void __iomem *base)
114 writel_relaxed(0, base + TIMER_DIV);
115 writel_relaxed(0, base + TIMER_INI);
117 writel_relaxed(GX6605S_CONTRL_RST, base + TIMER_CONTRL);
119 writel_relaxed(GX6605S_CONFIG_EN, base + TIMER_CONFIG);
121 writel_relaxed(GX6605S_CONTRL_START, base + TIMER_CONTRL);
125 return clocksource_mmio_init(base + TIMER_VALUE, "gx6605s",