Lines Matching refs:ccr
207 u8 ccr[8]; in isl12026_rtc_read_time() local
244 msgs[1].len = sizeof(ccr); in isl12026_rtc_read_time()
245 msgs[1].buf = ccr; in isl12026_rtc_read_time()
254 tm->tm_sec = bcd2bin(ccr[0] & 0x7F); in isl12026_rtc_read_time()
255 tm->tm_min = bcd2bin(ccr[1] & 0x7F); in isl12026_rtc_read_time()
256 if (ccr[2] & ISL12026_REG_HR_MIL) in isl12026_rtc_read_time()
257 tm->tm_hour = bcd2bin(ccr[2] & 0x3F); in isl12026_rtc_read_time()
259 tm->tm_hour = bcd2bin(ccr[2] & 0x1F) + in isl12026_rtc_read_time()
260 ((ccr[2] & 0x20) ? 12 : 0); in isl12026_rtc_read_time()
261 tm->tm_mday = bcd2bin(ccr[3] & 0x3F); in isl12026_rtc_read_time()
262 tm->tm_mon = bcd2bin(ccr[4] & 0x1F) - 1; in isl12026_rtc_read_time()
263 tm->tm_year = bcd2bin(ccr[5]); in isl12026_rtc_read_time()
264 if (bcd2bin(ccr[7]) == 20) in isl12026_rtc_read_time()
266 tm->tm_wday = ccr[6] & 0x07; in isl12026_rtc_read_time()