Home
last modified time | relevance | path

Searched refs:tod_read (Results 1 – 2 of 2) sorted by relevance

/titanic_50/usr/src/uts/sun4u/snowbird/io/todds1307/
H A Dtodds1307.c480 static char tod_read[7] = {-1, -1, -1, -1, -1, -1, -1}; variable
524 while (tod_read[0] == -1 && counter > 0) { in todds1307_read_rtc()
526 bcopy(i2c_tp->i2c_rbuf, tod_read, 7); in todds1307_read_rtc()
539 if (bcmp(tod_read, i2c_tp->i2c_rbuf, 7) != 0) { in todds1307_read_rtc()
540 tod_read[0] = -1; in todds1307_read_rtc()
547 bcmp(&tod_read[1], &i2c_tp->i2c_rbuf[1], 6) != 0 && in todds1307_read_rtc()
554 bcopy(i2c_tp->i2c_rbuf, tod_read, 7); in todds1307_read_rtc()
615 tod_read[0] = -1; /* invalidate saved data from read routine */ in todds1307_write_rtc()
/titanic_50/usr/src/uts/sun4u/io/
H A Dtodds1337.c731 static char tod_read[7] = {-1, -1, -1, -1, -1, -1, -1}; variable
774 while (tod_read[0] == -1 && counter > 0) { in todds1337_read_rtc()
776 bcopy(i2c_tp->i2c_rbuf, tod_read, 7); in todds1337_read_rtc()
788 if (bcmp(tod_read, i2c_tp->i2c_rbuf, 7) != 0) { in todds1337_read_rtc()
789 tod_read[0] = -1; in todds1337_read_rtc()
796 bcmp(&tod_read[1], &i2c_tp->i2c_rbuf[1], 6) != 0 && in todds1337_read_rtc()
803 bcopy(i2c_tp->i2c_rbuf, tod_read, 7); in todds1337_read_rtc()
862 tod_read[0] = -1; /* invalidate saved data from read routine */ in todds1337_write_rtc()