Lines Matching refs:rtc_read

108 rtc_read(enum ds1511reg reg)  in rtc_read()  function
116 rtc_write((rtc_read(RTC_CMD) & ~RTC_TE), RTC_CMD); in rtc_disable_update()
122 rtc_write((rtc_read(RTC_CMD) | RTC_TE), RTC_CMD); in rtc_enable_update()
151 rtc_write(rtc_read(RTC_CMD) | DS1511_WDE | DS1511_WDS, RTC_CMD); in ds1511_wdog_set()
160 rtc_write(rtc_read(RTC_CMD) & ~(DS1511_WDE | DS1511_WDS), RTC_CMD); in ds1511_wdog_disable()
221 rtc_write((rtc_read(RTC_MON) & 0xe0) | mon, RTC_MON); in ds1511_rtc_set_time()
241 rtc_tm->tm_sec = rtc_read(RTC_SEC) & 0x7f; in ds1511_rtc_read_time()
242 rtc_tm->tm_min = rtc_read(RTC_MIN) & 0x7f; in ds1511_rtc_read_time()
243 rtc_tm->tm_hour = rtc_read(RTC_HOUR) & 0x3f; in ds1511_rtc_read_time()
244 rtc_tm->tm_mday = rtc_read(RTC_DOM) & 0x3f; in ds1511_rtc_read_time()
245 rtc_tm->tm_wday = rtc_read(RTC_DOW) & 0x7; in ds1511_rtc_read_time()
246 rtc_tm->tm_mon = rtc_read(RTC_MON) & 0x1f; in ds1511_rtc_read_time()
247 rtc_tm->tm_year = rtc_read(RTC_YEAR) & 0x7f; in ds1511_rtc_read_time()
248 century = rtc_read(RTC_CENTURY); in ds1511_rtc_read_time()
300 rtc_write(rtc_read(RTC_CMD) | (pdata->irqen ? RTC_TIE : 0), RTC_CMD); in ds1511_rtc_update_alarm()
301 rtc_read(RTC_CMD1); /* clear interrupts */ in ds1511_rtc_update_alarm()
351 if (rtc_read(RTC_CMD1) & DS1511_IRQF) { in ds1511_interrupt()
353 if (rtc_read(RTC_ALARM_SEC) & 0x80) in ds1511_interrupt()
392 *(char *)buf++ = rtc_read(DS1511_RAMDATA); in ds1511_nvram_read()
451 if (rtc_read(RTC_CMD1) & DS1511_BLF1) in ds1511_rtc_probe()
474 rtc_read(RTC_CMD1); in ds1511_rtc_probe()