Lines Matching refs:regbase

97 	void __iomem		*regbase;
114 tmp = readb(rtc->regbase + RCR1);
117 writeb(tmp, rtc->regbase + RCR1);
130 tmp = readb(rtc->regbase + RCR1);
133 writeb(tmp, rtc->regbase + RCR1);
145 tmp = readb(rtc->regbase + RCR2);
148 writeb(tmp, rtc->regbase + RCR2);
222 tmp = readb(rtc->regbase + RCR1);
229 writeb(tmp, rtc->regbase + RCR1);
239 tmp = readb(rtc->regbase + RCR1);
242 tmp = readb(rtc->regbase + RCR2);
256 tmp = readb(rtc->regbase + RCR1);
263 writeb(tmp, rtc->regbase + RCR1);
279 if (!(readb(rtc->regbase + RCR2) & RCR2_RTCEN))
287 tmp = readb(rtc->regbase + RCR1);
290 writeb(tmp, rtc->regbase + RCR1);
292 sec128 = readb(rtc->regbase + R64CNT);
294 tm->tm_sec = bcd2bin(readb(rtc->regbase + RSECCNT));
295 tm->tm_min = bcd2bin(readb(rtc->regbase + RMINCNT));
296 tm->tm_hour = bcd2bin(readb(rtc->regbase + RHRCNT));
297 tm->tm_wday = bcd2bin(readb(rtc->regbase + RWKCNT));
298 tm->tm_mday = bcd2bin(readb(rtc->regbase + RDAYCNT));
299 tm->tm_mon = bcd2bin(readb(rtc->regbase + RMONCNT)) - 1;
302 yr = readw(rtc->regbase + RYRCNT);
306 yr = readb(rtc->regbase + RYRCNT);
312 sec2 = readb(rtc->regbase + R64CNT);
313 cf_bit = readb(rtc->regbase + RCR1) & RCR1_CF;
345 tmp = readb(rtc->regbase + RCR2);
348 writeb(tmp, rtc->regbase + RCR2);
350 writeb(bin2bcd(tm->tm_sec), rtc->regbase + RSECCNT);
351 writeb(bin2bcd(tm->tm_min), rtc->regbase + RMINCNT);
352 writeb(bin2bcd(tm->tm_hour), rtc->regbase + RHRCNT);
353 writeb(bin2bcd(tm->tm_wday), rtc->regbase + RWKCNT);
354 writeb(bin2bcd(tm->tm_mday), rtc->regbase + RDAYCNT);
355 writeb(bin2bcd(tm->tm_mon + 1), rtc->regbase + RMONCNT);
360 writew(year, rtc->regbase + RYRCNT);
363 writeb(bin2bcd(year), rtc->regbase + RYRCNT);
367 tmp = readb(rtc->regbase + RCR2);
370 writeb(tmp, rtc->regbase + RCR2);
382 byte = readb(rtc->regbase + reg_off);
407 wkalrm->enabled = (readb(rtc->regbase + RCR1) & RCR1_AIE) ? 1 : 0;
419 writeb(0, rtc->regbase + reg_off);
421 writeb(bin2bcd(value) | AR_ENB, rtc->regbase + reg_off);
434 rcr1 = readb(rtc->regbase + RCR1);
436 writeb(rcr1, rtc->regbase + RCR1);
451 writeb(rcr1, rtc->regbase + RCR1);
507 rtc->regbase = devm_ioremap(&pdev->dev, rtc->res->start, rtc->regsize);
508 if (unlikely(!rtc->regbase))