Home
last modified time | relevance | path

Searched refs:RTC_YEAR1 (Results 1 – 4 of 4) sorted by relevance

/drivers/rtc/
Drtc-max8925.c23 RTC_YEAR1, enumerator
88 + (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()
Drtc-max8907.c27 RTC_YEAR1, enumerator
61 bcd2bin(regs[RTC_YEAR1]) - 1900; in regs_to_tm()
85 regs[RTC_YEAR1] = bin2bcd(low); in tm_to_regs()
Drtc-s5m.c38 RTC_YEAR1, enumerator
189 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()
Drtc-max8998.c62 RTC_YEAR1, enumerator
89 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()