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

/linux-4.1.27/drivers/rtc/
H A Drtc-ds1305.c37 #define DS1305_SEC 0x00 /* register addresses */ macro
177 u8 addr = DS1305_SEC; ds1305_get_time()
194 time->tm_sec = bcd2bin(buf[DS1305_SEC]); ds1305_get_time()
225 *bp++ = DS1305_WRITE | DS1305_SEC; ds1305_set_time()
298 addr = DS1305_ALM0(DS1305_SEC); ds1305_get_alarm()
305 "alm0 read", buf[DS1305_SEC], buf[DS1305_MIN], ds1305_get_alarm()
308 if ((DS1305_ALM_DISABLE & buf[DS1305_SEC]) ds1305_get_alarm()
317 alm->time.tm_sec = bcd2bin(buf[DS1305_SEC]); ds1305_get_alarm()
374 buf[0] = DS1305_WRITE | DS1305_ALM0(DS1305_SEC); ds1305_set_alarm()
375 buf[1 + DS1305_SEC] = bin2bcd(alm->time.tm_sec); ds1305_set_alarm()
381 "alm0 write", buf[1 + DS1305_SEC], buf[1 + DS1305_MIN], ds1305_set_alarm()

Completed in 37 milliseconds