Searched refs:RTC_HOUR (Results 1 – 9 of 9) sorted by relevance
/linux-4.19.296/drivers/rtc/ |
D | rtc-max8907.c | 26 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()
|
D | rtc-max8925.c | 22 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()
|
D | rtc-max8998.c | 58 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()
|
D | rtc-s5m.c | 34 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 …]
|
D | rtc-max8997.c | 56 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()
|
D | rtc-rx6110.c | 94 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()
|
D | rtc-max77686.c | 56 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()
|
D | rtc-ds1511.c | 77 #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()
|
D | rtc-da9063.c | 38 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()
|