Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/rtc/
Drtc-max8907.c26 RTC_HOUR, enumerator
68 if (regs[RTC_HOUR] & HOUR_12) { in regs_to_tm()
69 tm->tm_hour = bcd2bin(regs[RTC_HOUR] & 0x01f); in regs_to_tm()
72 if (regs[RTC_HOUR] & HOUR_AM_PM) in regs_to_tm()
75 tm->tm_hour = bcd2bin(regs[RTC_HOUR] & 0x03f); in regs_to_tm()
92 regs[RTC_HOUR] = bin2bcd(tm->tm_hour); in tm_to_regs()
Drtc-max8925.c22 RTC_HOUR, enumerator
99 if (buf[RTC_HOUR] & HOUR_12) { in tm_calc()
100 tm->tm_hour = ((buf[RTC_HOUR] >> 4) & 0x1) * 10 in tm_calc()
101 + (buf[RTC_HOUR] & 0x0f); in tm_calc()
102 if (buf[RTC_HOUR] & HOUR_AM_PM) in tm_calc()
105 tm->tm_hour = ((buf[RTC_HOUR] >> 4) & 0x03) * 10 in tm_calc()
106 + (buf[RTC_HOUR] & 0x0f); in tm_calc()
142 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()
343 if (data[RTC_HOUR] & HOUR_12) { in s5m8763_data_to_tm()
344 tm->tm_hour = bcd2bin(data[RTC_HOUR] & 0x1f); in s5m8763_data_to_tm()
345 if (data[RTC_HOUR] & HOUR_PM) in s5m8763_data_to_tm()
348 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.c94 RTC_HOUR, enumerator
131 data[RTC_HOUR] = bin2bcd(tm->tm_hour); in rx6110_rtc_tm_to_data()
151 tm->tm_hour = bcd2bin(data[RTC_HOUR] & 0x3f); in rx6110_data_to_rtc_tm()
Drtc-max77686.c56 RTC_HOUR, enumerator
264 tm->tm_hour = data[RTC_HOUR] & 0x1f; in max77686_rtc_data_to_tm()
266 tm->tm_hour = data[RTC_HOUR] & 0x0f; in max77686_rtc_data_to_tm()
267 if (data[RTC_HOUR] & HOUR_PM_MASK) in max77686_rtc_data_to_tm()
292 data[RTC_HOUR] = tm->tm_hour; in max77686_rtc_tm_to_data()
544 data[RTC_HOUR] |= (1 << ALARM_ENABLE_SHIFT); in max77686_rtc_start_alarm()
Drtc-ds1511.c77 #define RTC_HOUR DS1511_HOUR macro
232 rtc_write(hrs, RTC_HOUR); in ds1511_rtc_set_time()
252 rtc_tm->tm_hour = rtc_read(RTC_HOUR) & 0x3f; in ds1511_rtc_read_time()
Drtc-da9063.c38 RTC_HOUR = 2, enumerator
181 tm->tm_hour = data[RTC_HOUR] & config->rtc_count_hour_mask; in da9063_data_to_tm()
196 data[RTC_HOUR] = tm->tm_hour & config->rtc_count_hour_mask; in da9063_tm_to_data()