Lines Matching +full:0 +full:xf

20 #define RTC_BASE	0xb0000000
21 #define RTC_SEC1 (RTC_BASE + 0)
49 sec = (__raw_readb(RTC_SEC1) & 0xf) + (__raw_readb(RTC_SEC10) & 0x7) * 10; in sh03_rtc_gettimeofday()
50 min = (__raw_readb(RTC_MIN1) & 0xf) + (__raw_readb(RTC_MIN10) & 0xf) * 10; in sh03_rtc_gettimeofday()
51 hour = (__raw_readb(RTC_HOU1) & 0xf) + (__raw_readb(RTC_HOU10) & 0xf) * 10; in sh03_rtc_gettimeofday()
52 day = (__raw_readb(RTC_DAY1) & 0xf) + (__raw_readb(RTC_DAY10) & 0xf) * 10; in sh03_rtc_gettimeofday()
53 mon = (__raw_readb(RTC_MON1) & 0xf) + (__raw_readb(RTC_MON10) & 0xf) * 10; in sh03_rtc_gettimeofday()
54 year = (__raw_readb(RTC_YEA1) & 0xf) + (__raw_readb(RTC_YEA10) & 0xf) * 10 in sh03_rtc_gettimeofday()
55 + (__raw_readb(RTC_YEA100 ) & 0xf) * 100 in sh03_rtc_gettimeofday()
56 + (__raw_readb(RTC_YEA1000) & 0xf) * 1000; in sh03_rtc_gettimeofday()
57 } while (sec != (__raw_readb(RTC_SEC1) & 0xf) + (__raw_readb(RTC_SEC10) & 0x7) * 10); in sh03_rtc_gettimeofday()
58 if (year == 0 || mon < 1 || mon > 12 || day > 31 || day < 1 || in sh03_rtc_gettimeofday()
65 __raw_writeb(0, RTC_SEC1); __raw_writeb(0, RTC_SEC10); in sh03_rtc_gettimeofday()
66 __raw_writeb(0, RTC_MIN1); __raw_writeb(0, RTC_MIN10); in sh03_rtc_gettimeofday()
67 __raw_writeb(0, RTC_HOU1); __raw_writeb(0, RTC_HOU10); in sh03_rtc_gettimeofday()
69 __raw_writeb(1, RTC_DAY1); __raw_writeb(0, RTC_DAY10); in sh03_rtc_gettimeofday()
70 __raw_writeb(1, RTC_MON1); __raw_writeb(0, RTC_MON10); in sh03_rtc_gettimeofday()
71 __raw_writeb(0, RTC_YEA1); __raw_writeb(0, RTC_YEA10); in sh03_rtc_gettimeofday()
72 __raw_writeb(0, RTC_YEA100); in sh03_rtc_gettimeofday()
74 __raw_writeb(0, RTC_CTL); in sh03_rtc_gettimeofday()
87 return 0; in sh03_rtc_gettimeofday()
92 int retval = 0; in set_rtc_mmss()
98 for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ in set_rtc_mmss()
101 cmos_minutes = (__raw_readb(RTC_MIN1) & 0xf) + (__raw_readb(RTC_MIN10) & 0xf) * 10; in set_rtc_mmss()