Searched refs:spi_byte (Results 1 – 1 of 1) sorted by relevance
68 unsigned char spi_byte; /* Data Byte */ in rtc_get() local84 spi_byte = soft_spi_read (); /* Read Hours into temporary value */ in rtc_get()85 if (spi_byte & 0x40) { in rtc_get()87 if (spi_byte & 0x20) { in rtc_get()89 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) + 11; in rtc_get()92 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) - 1; in rtc_get()96 tmp->tm_hour = (bcd2bin (spi_byte & 0x3F)); in rtc_get()246 unsigned char spi_byte = 0; /* Return value, assume success */ in soft_spi_read() local258 spi_byte |= bitpos; /* Set data accordingly */ in soft_spi_read()264 return spi_byte; /* Return the byte read */ in soft_spi_read()