Home
last modified time | relevance | path

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

/openbmc/linux/drivers/rtc/
H A Drtc-opal.c27 tm->tm_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm()
51 u64 h_m_s_ms; in opal_get_rtc_time() local
74 h_m_s_ms = be64_to_cpu(__h_m_s_ms); in opal_get_rtc_time()
75 opal_to_tm(y_m_d, h_m_s_ms, tm); in opal_get_rtc_time()
85 u64 h_m_s_ms = 0; in opal_set_rtc_time() local
87 tm_to_opal(tm, &y_m_d, &h_m_s_ms); in opal_set_rtc_time()
90 rc = opal_rtc_write(y_m_d, h_m_s_ms); in opal_set_rtc_time()
119 u64 h_m_s_ms; in opal_get_tpo_time() local
152 if (y_m_d == 0 && h_m_s_ms == 0) { in opal_get_tpo_time()
160 opal_to_tm(y_m_d, h_m_s_ms, &alarm->time); in opal_get_tpo_time()
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal-rtc.c22 static void __init opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) in opal_to_tm() argument
28 tm->tm_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm()
29 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff); in opal_to_tm()
30 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm()
38 u64 h_m_s_ms; in opal_get_boot_time() local
59 h_m_s_ms = be64_to_cpu(__h_m_s_ms); in opal_get_boot_time()
60 opal_to_tm(y_m_d, h_m_s_ms, &tm); in opal_get_boot_time()