Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/rtc/
H A Dmx27rtc.c13 #define HOUR_SHIFT 8 macro
28 hour = (hour >> HOUR_SHIFT) & HOUR_MASK; in rtc_get()
51 hour = (hour & HOUR_MASK) << HOUR_SHIFT; in rtc_set()
/openbmc/linux/drivers/rtc/
H A Drtc-spear.c51 #define HOUR_SHIFT 0x10 /* hours units position */ macro
213 tm->tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_time()
239 (tm->tm_hour << HOUR_SHIFT); in spear_rtc_set_time()
267 alm->time.tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_alarm()
297 MINUTE_SHIFT) | (alm->time.tm_hour << HOUR_SHIFT); in spear_rtc_set_alarm()