Lines Matching refs:rtc_write
22 static void rtc_write (uchar reg, uchar val);
34 rtc_write(0, ccr); in rtc_get()
47 rtc_write(0, ccr); in rtc_get()
83 rtc_write(0, ccr); in rtc_set()
85 rtc_write (0x07, bin2bcd(tmp->tm_year % 100)); in rtc_set()
86 rtc_write (0x06, bin2bcd(tmp->tm_mon)); in rtc_set()
87 rtc_write (0x05, bin2bcd(tmp->tm_mday)); in rtc_set()
90 rtc_write (0x04, bin2bcd(tmp->tm_wday) | century); in rtc_set()
92 rtc_write (0x03, bin2bcd(tmp->tm_hour)); in rtc_set()
93 rtc_write (0x02, bin2bcd(tmp->tm_min )); in rtc_set()
94 rtc_write (0x01, bin2bcd(tmp->tm_sec )); in rtc_set()
99 rtc_write(0, ccr); in rtc_set()
109 rtc_write (0x0, 0x80); /* No Read Lock or calibration */ in rtc_reset()
114 rtc_write(0x1, val); in rtc_reset()
119 rtc_write(0x4, val); in rtc_reset()
122 rtc_write(0x0, 0); in rtc_reset()
133 static void rtc_write (uchar reg, uchar val) in rtc_write() function