Lines Matching refs:date
105 unsigned char date[7]; in rx4581_get_datetime() local
133 date[0] = 0x80; in rx4581_get_datetime()
134 err = spi_write_then_read(spi, date, 1, date, 7); in rx4581_get_datetime()
156 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx4581_get_datetime()
158 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F); in rx4581_get_datetime()
159 tm->tm_min = bcd2bin(date[RX4581_REG_MN] & 0x7F); in rx4581_get_datetime()
160 tm->tm_hour = bcd2bin(date[RX4581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx4581_get_datetime()
161 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); in rx4581_get_datetime()
162 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F); in rx4581_get_datetime()
163 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx4581_get_datetime()
164 tm->tm_year = bcd2bin(date[RX4581_REG_YR]); in rx4581_get_datetime()