• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/rtc/

Lines Matching refs:regbase

92 	void __iomem		*regbase;
109 tmp = readb(rtc->regbase + RCR1);
112 writeb(tmp, rtc->regbase + RCR1);
125 tmp = readb(rtc->regbase + RCR1);
128 writeb(tmp, rtc->regbase + RCR1);
142 tmp = readb(rtc->regbase + RCR2);
145 writeb(tmp, rtc->regbase + RCR2);
226 tmp = readb(rtc->regbase + RCR2);
237 writeb(tmp, rtc->regbase + RCR2);
301 tmp = readb(rtc->regbase + RCR1);
308 writeb(tmp, rtc->regbase + RCR1);
318 tmp = readb(rtc->regbase + RCR1);
321 tmp = readb(rtc->regbase + RCR2);
335 tmp = readb(rtc->regbase + RCR1);
342 writeb(tmp, rtc->regbase + RCR1);
383 tmp = readb(rtc->regbase + RCR1);
386 writeb(tmp, rtc->regbase + RCR1);
388 sec128 = readb(rtc->regbase + R64CNT);
390 tm->tm_sec = bcd2bin(readb(rtc->regbase + RSECCNT));
391 tm->tm_min = bcd2bin(readb(rtc->regbase + RMINCNT));
392 tm->tm_hour = bcd2bin(readb(rtc->regbase + RHRCNT));
393 tm->tm_wday = bcd2bin(readb(rtc->regbase + RWKCNT));
394 tm->tm_mday = bcd2bin(readb(rtc->regbase + RDAYCNT));
395 tm->tm_mon = bcd2bin(readb(rtc->regbase + RMONCNT)) - 1;
398 yr = readw(rtc->regbase + RYRCNT);
402 yr = readb(rtc->regbase + RYRCNT);
408 sec2 = readb(rtc->regbase + R64CNT);
409 cf_bit = readb(rtc->regbase + RCR1) & RCR1_CF;
442 tmp = readb(rtc->regbase + RCR2);
445 writeb(tmp, rtc->regbase + RCR2);
447 writeb(bin2bcd(tm->tm_sec), rtc->regbase + RSECCNT);
448 writeb(bin2bcd(tm->tm_min), rtc->regbase + RMINCNT);
449 writeb(bin2bcd(tm->tm_hour), rtc->regbase + RHRCNT);
450 writeb(bin2bcd(tm->tm_wday), rtc->regbase + RWKCNT);
451 writeb(bin2bcd(tm->tm_mday), rtc->regbase + RDAYCNT);
452 writeb(bin2bcd(tm->tm_mon + 1), rtc->regbase + RMONCNT);
457 writew(year, rtc->regbase + RYRCNT);
460 writeb(bin2bcd(year), rtc->regbase + RYRCNT);
464 tmp = readb(rtc->regbase + RCR2);
467 writeb(tmp, rtc->regbase + RCR2);
479 byte = readb(rtc->regbase + reg_off);
506 wkalrm->enabled = (readb(rtc->regbase + RCR1) & RCR1_AIE) ? 1 : 0;
518 writeb(0, rtc->regbase + reg_off);
520 writeb(bin2bcd(value) | AR_ENB, rtc->regbase + reg_off);
573 rcr1 = readb(rtc->regbase + RCR1);
575 writeb(rcr1, rtc->regbase + RCR1);
590 writeb(rcr1, rtc->regbase + RCR1);
650 rtc->regbase = ioremap_nocache(rtc->res->start, rtc->regsize);
651 if (unlikely(!rtc->regbase)) {
762 iounmap(rtc->regbase);
788 iounmap(rtc->regbase);