Searched refs:RTC_YEAR2 (Results 1 – 4 of 4) sorted by relevance
27 RTC_YEAR2, enumerator89 tm->tm_year = (buf[RTC_YEAR2] >> 4) * 1000 in tm_calc()90 + (buf[RTC_YEAR2] & 0xf) * 100 in tm_calc()124 buf[RTC_YEAR2] = (high << 4) + low; in data_calc()
31 RTC_YEAR2, enumerator63 tm->tm_year = bcd2bin(regs[RTC_YEAR2]) * 100 + in regs_to_tm()87 regs[RTC_YEAR2] = bin2bcd(high); in tm_to_regs()
69 RTC_YEAR2, enumerator95 tm->tm_year = bcd2bin(data[RTC_YEAR1]) + bcd2bin(data[RTC_YEAR2]) * 100; in max8998_data_to_tm()108 data[RTC_YEAR2] = bin2bcd((tm->tm_year + 1900) / 100); in max8998_tm_to_data()
351 tm->tm_year = bcd2bin(data[RTC_YEAR1]) + bcd2bin(data[RTC_YEAR2]) * 100; in s5m8763_data_to_tm()364 data[RTC_YEAR2] = bin2bcd((tm->tm_year + 1900) / 100); in s5m8763_tm_to_data()