Lines Matching refs:rtc_write
28 static void rtc_write (short reg, uchar val) in rtc_write() function
42 static void rtc_write (short reg, uchar val) in rtc_write() function
70 rtc_write(d++, *s++); in nvram_write()
87 rtc_write(RTC_CONTROLA, save_ctrl_a); in rtc_get()
99 rtc_write(RTC_CONTROLA, save_ctrl_a); in rtc_get()
141 rtc_write(RTC_CONTROLA, save_ctrl_a); /* disables the RTC to update the regs */ in rtc_set()
143 rtc_write (RTC_YEAR, bin2bcd(tmp->tm_year % 100)); in rtc_set()
144 rtc_write (RTC_MONTH, bin2bcd(tmp->tm_mon)); in rtc_set()
146 rtc_write (RTC_DAY_OF_WEEK, bin2bcd(tmp->tm_wday)); in rtc_set()
147 rtc_write (RTC_DAY_OF_MONTH, bin2bcd(tmp->tm_mday)); in rtc_set()
148 rtc_write (RTC_HOURS, bin2bcd(tmp->tm_hour)); in rtc_set()
149 rtc_write (RTC_MINUTES, bin2bcd(tmp->tm_min )); in rtc_set()
150 rtc_write (RTC_SECONDS, bin2bcd(tmp->tm_sec )); in rtc_set()
153 rtc_write(RTC_CONTROLA, save_ctrl_a); /* enables the RTC to update the regs */ in rtc_set()
168 rtc_write(RTC_CONTROLB, control_b); in rtc_reset()
176 rtc_write(RTC_WATCHDOG, wd_value); in rtc_set_watchdog()