Home
last modified time | relevance | path

Searched refs:RTC_DATE (Results 1 – 10 of 10) sorted by relevance

/drivers/rtc/
Drtc-max8997.c66 RTC_DATE, enumerator
94 tm->tm_mday = data[RTC_DATE] & 0x1f; in max8997_rtc_data_to_tm()
107 data[RTC_DATE] = tm->tm_mday; in max8997_rtc_tm_to_data()
283 if (data[RTC_DATE] & 0x1f) in max8997_rtc_start_alarm()
284 data[RTC_DATE] |= (1 << ALARM_ENABLE_SHIFT); in max8997_rtc_start_alarm()
309 data[RTC_YEAR] + 2000, data[RTC_MONTH], data[RTC_DATE], in max8997_rtc_set_alarm()
Drtc-max8925.c24 RTC_DATE, enumerator
96 tm->tm_mday = ((buf[RTC_DATE] >> 4) & 0x03) * 10 in tm_calc()
97 + (buf[RTC_DATE] & 0x0f); in tm_calc()
137 buf[RTC_DATE] = (high << 4) + low; in data_calc()
Drtc-max8907.c28 RTC_DATE, enumerator
66 tm->tm_mday = bcd2bin(regs[RTC_DATE] & 0x3f); in regs_to_tm()
90 regs[RTC_DATE] = bin2bcd(tm->tm_mday); in tm_to_regs()
Drtc-ds1742.c35 #define RTC_DATE 5 macro
75 writeb(bin2bcd(tm->tm_mday), ioaddr + RTC_DATE); in ds1742_rtc_set_time()
102 day = readb(ioaddr + RTC_DATE); in ds1742_rtc_read_time()
Drtc-max8998.c66 RTC_DATE, enumerator
93 tm->tm_mday = bcd2bin(data[RTC_DATE]); in max8998_data_to_tm()
105 data[RTC_DATE] = bin2bcd(tm->tm_mday); in max8998_tm_to_data()
Drtc-s5m.c184 tm->tm_mday = data[RTC_DATE] & 0x1f; in s5m8767_data_to_tm()
202 data[RTC_DATE] = tm->tm_mday; in s5m8767_tm_to_data()
349 tm->tm_mday = bcd2bin(data[RTC_DATE]); in s5m8763_data_to_tm()
361 data[RTC_DATE] = bin2bcd(tm->tm_mday); in s5m8763_tm_to_data()
576 if (data[RTC_DATE] & 0x1f) in s5m_rtc_start_alarm()
577 data[RTC_DATE] |= ALARM_ENABLE_MASK; in s5m_rtc_start_alarm()
Drtc-max77686.c66 RTC_DATE, enumerator
279 tm->tm_mday = data[RTC_DATE] & 0x1f; in max77686_rtc_data_to_tm()
300 data[RTC_DATE] = tm->tm_mday; in max77686_rtc_tm_to_data()
558 if (data[RTC_DATE] & 0x1f) in max77686_rtc_start_alarm()
559 data[RTC_DATE] |= (1 << ALARM_ENABLE_SHIFT); in max77686_rtc_start_alarm()
Drtc-stk17ta8.c42 #define RTC_DATE (RTC_OFFSET + 13) macro
88 writeb(bin2bcd(tm->tm_mday), ioaddr + RTC_DATE); in stk17ta8_rtc_set_time()
117 day = readb(ioaddr + RTC_DATE); in stk17ta8_rtc_read_time()
Drtc-ds1553.c39 #define RTC_DATE (RTC_OFFSET + 13) macro
88 writeb(bin2bcd(tm->tm_mday), ioaddr + RTC_DATE); in ds1553_rtc_set_time()
115 day = readb(ioaddr + RTC_DATE); in ds1553_rtc_read_time()
Drtc-ds1286.c188 tm->tm_mday = ds1286_rtc_read(priv, RTC_DATE); in ds1286_read_time()
255 ds1286_rtc_write(priv, day, RTC_DATE); in ds1286_set_time()