Lines Matching refs:date
73 unsigned char date[7]; in rx8581_rtc_read_time() local
103 err = regmap_bulk_read(rx8581->regmap, RX8581_REG_SC, date, in rx8581_rtc_read_time()
104 sizeof(date)); in rx8581_rtc_read_time()
117 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx8581_rtc_read_time()
119 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time()
120 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F); in rx8581_rtc_read_time()
121 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx8581_rtc_read_time()
122 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); in rx8581_rtc_read_time()
123 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_rtc_read_time()
124 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx8581_rtc_read_time()
125 tm->tm_year = bcd2bin(date[RX8581_REG_YR]) + 100; in rx8581_rtc_read_time()