Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/rtc/
Drtc-rs5c348.c30 #define RS5C348_REG_HOURS 2 macro
80 txp[RS5C348_REG_HOURS] = bin2bcd(tm->tm_hour); in rs5c348_rtc_set_time()
83 txp[RS5C348_REG_HOURS] = bin2bcd((tm->tm_hour + 11) % 12 + 1) | in rs5c348_rtc_set_time()
121 tm->tm_hour = bcd2bin(rxbuf[RS5C348_REG_HOURS] & RS5C348_HOURS_MASK); in rs5c348_rtc_read_time()
123 if (rxbuf[RS5C348_REG_HOURS] & RS5C348_BIT_PM) { in rs5c348_rtc_read_time()