Lines Matching defs:gpt_base
66 static __iomem void *gpt_base;
76 return (cycle_t) readw(gpt_base + COUNT(CLKSRC));
95 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC));
101 writew(0xFFFF, gpt_base + LOAD(CLKSRC));
103 val = readw(gpt_base + CR(CLKSRC));
106 writew(val, gpt_base + CR(CLKSRC));
129 val = readw(gpt_base + CR(CLKEVT));
131 writew(val, gpt_base + CR(CLKEVT));
137 writew(period, gpt_base + LOAD(CLKEVT));
139 val = readw(gpt_base + CR(CLKEVT));
142 writew(val, gpt_base + CR(CLKEVT));
146 val = readw(gpt_base + CR(CLKEVT));
148 writew(val, gpt_base + CR(CLKEVT));
167 writew(cycles, gpt_base + LOAD(CLKEVT));
169 val = readw(gpt_base + CR(CLKEVT));
171 writew(val, gpt_base + CR(CLKEVT));
180 writew(INT_STATUS, gpt_base + IR(CLKEVT));
198 writew(CTRL_PRESCALER16, gpt_base + CR(CLKEVT));
225 gpt_base = (void __iomem *)ioremap(SPEAR_GPT0_BASE, SZ_1K);
226 if (!gpt_base) {
251 iounmap(gpt_base);