Lines Matching refs:rtc_write

140 static void rtc_write(int reg, uint8_t value)  in rtc_write()  function
194 rtc_write(RTC_DATA, value | RTC_UCI_BIT); in rtc_mc146818_set_time()
199 rtc_write(RTC_SEC, (uint8_t)timeptr->tm_sec); in rtc_mc146818_set_time()
200 rtc_write(RTC_MIN, (uint8_t)timeptr->tm_min); in rtc_mc146818_set_time()
201 rtc_write(RTC_HOUR, (uint8_t)timeptr->tm_hour); in rtc_mc146818_set_time()
202 rtc_write(RTC_WDAY, (uint8_t)timeptr->tm_wday); in rtc_mc146818_set_time()
203 rtc_write(RTC_MDAY, (uint8_t)timeptr->tm_mday); in rtc_mc146818_set_time()
204 rtc_write(RTC_MONTH, (uint8_t)timeptr->tm_mon + 1); in rtc_mc146818_set_time()
205 rtc_write(RTC_YEAR, year); in rtc_mc146818_set_time()
206 rtc_write(RTC_CENTURY, cent); in rtc_mc146818_set_time()
209 rtc_write(RTC_DATA, value); in rtc_mc146818_set_time()
329 rtc_write(RTC_ALARM_SEC, timeptr->tm_sec); in rtc_mc146818_alarm_set_time()
331 rtc_write(RTC_ALARM_SEC, RTC_ALARM_DC); in rtc_mc146818_alarm_set_time()
335 rtc_write(RTC_ALARM_MIN, timeptr->tm_min); in rtc_mc146818_alarm_set_time()
337 rtc_write(RTC_ALARM_SEC, RTC_ALARM_DC); in rtc_mc146818_alarm_set_time()
340 rtc_write(RTC_ALARM_HOUR, timeptr->tm_hour); in rtc_mc146818_alarm_set_time()
342 rtc_write(RTC_ALARM_SEC, RTC_ALARM_DC); in rtc_mc146818_alarm_set_time()
345 rtc_write(RTC_DATA, rtc_read(RTC_DATA) | RTC_AIE_BIT); in rtc_mc146818_alarm_set_time()
413 rtc_write(RTC_DATA, (rtc_read(RTC_DATA) | RTC_AIE_BIT)); in rtc_mc146818_alarm_set_callback()
416 rtc_write(RTC_DATA, (rtc_read(RTC_DATA) & (~RTC_AIE_BIT))); in rtc_mc146818_alarm_set_callback()
455 rtc_write(RTC_DATA, (rtc_read(RTC_DATA) | RTC_UIE_BIT)); in rtc_mc146818_update_set_callback()
458 rtc_write(RTC_DATA, (rtc_read(RTC_DATA) & (~RTC_UIE_BIT))); in rtc_mc146818_update_set_callback()
517 rtc_write(RTC_REG_A, \
521 rtc_write(RTC_REG_B, RTC_DMODE_BIT | RTC_HFORMAT_BIT); \