Home
last modified time | relevance | path

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

/openbmc/qemu/hw/rtc/
H A Dds1338.c28 #define HOURS_12 0x40 macro
69 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()
/openbmc/u-boot/drivers/rtc/
H A Drs5c372.c55 #define HOURS_12(n) bcd2bin((n) & 0x1F) macro
124 dt->tm_hour = HOURS_12(buf[3]); in rs5c372_convert_to_time()