Searched refs:ABEOZ9_REG_HOURS (Results 1 – 1 of 1) sorted by relevance
51 #define ABEOZ9_REG_HOURS 0x0A macro145 if (regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC] & ABEOZ9_HOURS_PM) { in abeoz9_rtc_get_time()147 bcd2bin(regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC] & 0x1f); in abeoz9_rtc_get_time()148 if (regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC] & ABEOZ9_HOURS_PM) in abeoz9_rtc_get_time()151 tm->tm_hour = bcd2bin(regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC]); in abeoz9_rtc_get_time()171 regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC] = bin2bcd(tm->tm_hour); in abeoz9_rtc_set_time()