Searched refs:RTC_YEAR1 (Results 1 – 4 of 4) sorted by relevance
23 RTC_YEAR1, enumerator88 + (buf[RTC_YEAR1] >> 4) * 10 in tm_calc()89 + (buf[RTC_YEAR1] & 0xf); in tm_calc()126 buf[RTC_YEAR1] = (high << 4) + low; in data_calc()
27 RTC_YEAR1, enumerator61 bcd2bin(regs[RTC_YEAR1]) - 1900; in regs_to_tm()85 regs[RTC_YEAR1] = bin2bcd(low); in tm_to_regs()
38 RTC_YEAR1, enumerator189 tm->tm_year = (data[RTC_YEAR1] & 0x7f) + 100; in s5m8767_data_to_tm()207 data[RTC_YEAR1] = tm->tm_year - 100; in s5m8767_tm_to_data()348 tm->tm_year = bcd2bin(data[RTC_YEAR1]) + bcd2bin(data[RTC_YEAR2]) * 100; in s5m8763_data_to_tm()360 data[RTC_YEAR1] = bin2bcd(tm->tm_year % 100); in s5m8763_tm_to_data()563 if (data[RTC_YEAR1] & 0x7f) in s5m_rtc_start_alarm()564 data[RTC_YEAR1] |= ALARM_ENABLE_MASK; in s5m_rtc_start_alarm()
62 RTC_YEAR1, enumerator89 tm->tm_year = bcd2bin(data[RTC_YEAR1]) + bcd2bin(data[RTC_YEAR2]) * 100; in max8998_data_to_tm()101 data[RTC_YEAR1] = bin2bcd(tm->tm_year % 100); in max8998_tm_to_data()