Searched refs:HOURS_12 (Results 1 – 2 of 2) sorted by relevance
28 #define HOURS_12 0x40 macro69 if (s->nvram[2] & HOURS_12) { in capture_current_time()75 s->nvram[2] = HOURS_12 | to_bcd(tmp); in capture_current_time()77 s->nvram[2] = HOURS_12 | HOURS_PM | to_bcd(tmp - 12); in capture_current_time()155 if (data & HOURS_12) { in ds1338_send()165 now.tm_hour = from_bcd(data & (HOURS_12 - 1)); in ds1338_send()
55 #define HOURS_12(n) bcd2bin((n) & 0x1F) macro124 dt->tm_hour = HOURS_12(buf[3]); in rs5c372_convert_to_time()