Searched defs:tod_read (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/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) {
526 bcopy(i2c_tp->i2c_rbuf, tod_read, 7);
539 if (bcmp(tod_read, i2c_tp->i2c_rbuf, 7) != 0) {
540 tod_read[0] = -1;
547 bcmp(&tod_read[1], &i2c_tp->i2c_rbuf[1], 6) != 0 &&
554 bcopy(i2c_tp->i2c_rbuf, tod_read, 7);
615 tod_read[0] = -1; /* invalidate saved data from read routine */
/illumos-gate/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) {
776 bcopy(i2c_tp->i2c_rbuf, tod_read, 7);
788 if (bcmp(tod_read, i2c_tp->i2c_rbuf, 7) != 0) {
789 tod_read[0] = -1;
796 bcmp(&tod_read[1], &i2c_tp->i2c_rbuf[1], 6) != 0 &&
803 bcopy(i2c_tp->i2c_rbuf, tod_read, 7);
862 tod_read[0] = -1; /* invalidate saved data from read routine */

Completed in 229 milliseconds