Lines Matching refs:rtc_read

130 static uint8_t rtc_read(int reg)  in rtc_read()  function
193 value = rtc_read(RTC_DATA); in rtc_mc146818_set_time()
232 if (!(rtc_read(RTC_REG_D) & RTC_VRT_BIT)) { in rtc_mc146818_get_time()
237 while (rtc_read(RTC_UIP) & RTC_UIP_BIT) { in rtc_mc146818_get_time()
241 cent = rtc_read(RTC_CENTURY); in rtc_mc146818_get_time()
242 year = rtc_read(RTC_YEAR); in rtc_mc146818_get_time()
243 timeptr->tm_mon = rtc_read(RTC_MONTH) - 1; in rtc_mc146818_get_time()
244 timeptr->tm_mday = rtc_read(RTC_MDAY); in rtc_mc146818_get_time()
245 timeptr->tm_wday = rtc_read(RTC_WDAY) - 1; in rtc_mc146818_get_time()
246 timeptr->tm_hour = rtc_read(RTC_HOUR); in rtc_mc146818_get_time()
247 timeptr->tm_min = rtc_read(RTC_MIN); in rtc_mc146818_get_time()
248 timeptr->tm_sec = rtc_read(RTC_SEC); in rtc_mc146818_get_time()
254 value = rtc_read(RTC_DATA); in rtc_mc146818_get_time()
345 rtc_write(RTC_DATA, rtc_read(RTC_DATA) | RTC_AIE_BIT); in rtc_mc146818_alarm_set_time()
373 value = rtc_read(RTC_ALARM_SEC); in rtc_mc146818_alarm_get_time()
379 value = rtc_read(RTC_ALARM_MIN); in rtc_mc146818_alarm_get_time()
385 value = rtc_read(RTC_ALARM_HOUR); in rtc_mc146818_alarm_get_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()
476 regc = rtc_read(RTC_FLAG); in rtc_mc146818_isr()