Searched refs:ds1302_readbyte (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/rtc/
H A Drtc-ds1302.c120 static unsigned int ds1302_readbyte(unsigned int addr) ds1302_readbyte() function
146 tm->tm_sec = bcd2bin(ds1302_readbyte(RTC_ADDR_SEC)); ds1302_rtc_read_time()
147 tm->tm_min = bcd2bin(ds1302_readbyte(RTC_ADDR_MIN)); ds1302_rtc_read_time()
148 tm->tm_hour = bcd2bin(ds1302_readbyte(RTC_ADDR_HOUR)); ds1302_rtc_read_time()
149 tm->tm_wday = bcd2bin(ds1302_readbyte(RTC_ADDR_DAY)); ds1302_rtc_read_time()
150 tm->tm_mday = bcd2bin(ds1302_readbyte(RTC_ADDR_DATE)); ds1302_rtc_read_time()
151 tm->tm_mon = bcd2bin(ds1302_readbyte(RTC_ADDR_MON)) - 1; ds1302_rtc_read_time()
152 tm->tm_year = bcd2bin(ds1302_readbyte(RTC_ADDR_YEAR)); ds1302_rtc_read_time()
170 ds1302_writebyte(RTC_ADDR_SEC, ds1302_readbyte(RTC_ADDR_SEC) | 0x80); ds1302_rtc_set_time()
181 ds1302_writebyte(RTC_ADDR_SEC, ds1302_readbyte(RTC_ADDR_SEC) & ~0x80); ds1302_rtc_set_time()
229 if (ds1302_readbyte(RTC_ADDR_RAM0) != 0x42) { ds1302_rtc_probe()

Completed in 31 milliseconds