Home
last modified time | relevance | path

Searched refs:RTC_HOUR (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/rtc/
Drtc-max8907.c23 RTC_HOUR, enumerator
65 if (regs[RTC_HOUR] & HOUR_12) { in regs_to_tm()
66 tm->tm_hour = bcd2bin(regs[RTC_HOUR] & 0x01f); in regs_to_tm()
69 if (regs[RTC_HOUR] & HOUR_AM_PM) in regs_to_tm()
72 tm->tm_hour = bcd2bin(regs[RTC_HOUR] & 0x03f); in regs_to_tm()
89 regs[RTC_HOUR] = bin2bcd(tm->tm_hour); in tm_to_regs()
Drtc-max8925.c19 RTC_HOUR, enumerator
96 if (buf[RTC_HOUR] & HOUR_12) { in tm_calc()
97 tm->tm_hour = ((buf[RTC_HOUR] >> 4) & 0x1) * 10 in tm_calc()
98 + (buf[RTC_HOUR] & 0x0f); in tm_calc()
99 if (buf[RTC_HOUR] & HOUR_AM_PM) in tm_calc()
102 tm->tm_hour = ((buf[RTC_HOUR] >> 4) & 0x03) * 10 in tm_calc()
103 + (buf[RTC_HOUR] & 0x0f); in tm_calc()
139 buf[RTC_HOUR] = (high << 4) + low; in data_calc()
Drtc-max8998.c58 RTC_HOUR, enumerator
79 if (data[RTC_HOUR] & HOUR_12) { in max8998_data_to_tm()
80 tm->tm_hour = bcd2bin(data[RTC_HOUR] & 0x1f); in max8998_data_to_tm()
81 if (data[RTC_HOUR] & HOUR_PM) in max8998_data_to_tm()
84 tm->tm_hour = bcd2bin(data[RTC_HOUR] & 0x3f); in max8998_data_to_tm()
97 data[RTC_HOUR] = bin2bcd(tm->tm_hour); in max8998_tm_to_data()
Drtc-s5m.c34 RTC_HOUR, enumerator
179 tm->tm_hour = data[RTC_HOUR] & 0x1f; in s5m8767_data_to_tm()
181 tm->tm_hour = data[RTC_HOUR] & 0x0f; in s5m8767_data_to_tm()
182 if (data[RTC_HOUR] & HOUR_PM_MASK) in s5m8767_data_to_tm()
200 data[RTC_HOUR] = tm->tm_hour | HOUR_PM_MASK; in s5m8767_tm_to_data()
202 data[RTC_HOUR] = tm->tm_hour & ~HOUR_PM_MASK; in s5m8767_tm_to_data()
337 if (data[RTC_HOUR] & HOUR_12) { in s5m8763_data_to_tm()
338 tm->tm_hour = bcd2bin(data[RTC_HOUR] & 0x1f); in s5m8763_data_to_tm()
339 if (data[RTC_HOUR] & HOUR_PM) in s5m8763_data_to_tm()
342 tm->tm_hour = bcd2bin(data[RTC_HOUR] & 0x3f); in s5m8763_data_to_tm()
[all …]
Drtc-max8997.c56 RTC_HOUR, enumerator
80 tm->tm_hour = data[RTC_HOUR] & 0x1f; in max8997_rtc_data_to_tm()
82 tm->tm_hour = data[RTC_HOUR] & 0x0f; in max8997_rtc_data_to_tm()
83 if (data[RTC_HOUR] & HOUR_PM_MASK) in max8997_rtc_data_to_tm()
99 data[RTC_HOUR] = tm->tm_hour; in max8997_rtc_tm_to_data()
271 data[RTC_HOUR] |= (1 << ALARM_ENABLE_SHIFT); in max8997_rtc_start_alarm()
304 data[RTC_HOUR], data[RTC_MIN], data[RTC_SEC]); in max8997_rtc_set_alarm()
Drtc-rx6110.c89 RTC_HOUR, enumerator
124 data[RTC_HOUR] = bin2bcd(tm->tm_hour); in rx6110_rtc_tm_to_data()
144 tm->tm_hour = bcd2bin(data[RTC_HOUR] & 0x3f); in rx6110_data_to_rtc_tm()
Drtc-ds1511.c74 #define RTC_HOUR DS1511_HOUR macro
223 rtc_write(hrs, RTC_HOUR); in ds1511_rtc_set_time()
243 rtc_tm->tm_hour = rtc_read(RTC_HOUR) & 0x3f; in ds1511_rtc_read_time()
Drtc-da9063.c30 RTC_HOUR = 2, enumerator
173 tm->tm_hour = data[RTC_HOUR] & config->rtc_count_hour_mask; in da9063_data_to_tm()
188 data[RTC_HOUR] = tm->tm_hour & config->rtc_count_hour_mask; in da9063_tm_to_data()
Drtc-max77686.c54 RTC_HOUR, enumerator
300 tm->tm_hour = data[RTC_HOUR] & 0x1f; in max77686_rtc_data_to_tm()
323 data[RTC_HOUR] = tm->tm_hour; in max77686_rtc_tm_to_data()
575 data[RTC_HOUR] |= (1 << ALARM_ENABLE_SHIFT); in max77686_rtc_start_alarm()