Lines Matching refs:h_m_s_ms

33 static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm)  in opal_to_tm()  argument
39 tm->tm_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm()
40 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff); in opal_to_tm()
41 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm()
46 static void tm_to_opal(struct rtc_time *tm, u32 *y_m_d, u64 *h_m_s_ms) in tm_to_opal() argument
53 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_hour)) << 56; in tm_to_opal()
54 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_min)) << 48; in tm_to_opal()
55 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_sec)) << 40; in tm_to_opal()
63 u64 h_m_s_ms; in opal_get_rtc_time() local
86 h_m_s_ms = be64_to_cpu(__h_m_s_ms); in opal_get_rtc_time()
87 opal_to_tm(y_m_d, h_m_s_ms, tm); in opal_get_rtc_time()
97 u64 h_m_s_ms = 0; in opal_set_rtc_time() local
99 tm_to_opal(tm, &y_m_d, &h_m_s_ms); in opal_set_rtc_time()
102 rc = opal_rtc_write(y_m_d, h_m_s_ms); in opal_set_rtc_time()
131 u64 h_m_s_ms; in opal_get_tpo_time() local
161 h_m_s_ms = ((u64)be32_to_cpu(__h_m) << 32); in opal_get_tpo_time()
164 if (y_m_d == 0 && h_m_s_ms == 0) { in opal_get_tpo_time()
169 pr_debug("Alarm set to %x %llx\n", y_m_d, h_m_s_ms); in opal_get_tpo_time()
172 opal_to_tm(y_m_d, h_m_s_ms, &alarm->time); in opal_get_tpo_time()
182 u64 h_m_s_ms = 0; in opal_set_tpo_time() local
189 tm_to_opal(&alarm->time, &y_m_d, &h_m_s_ms); in opal_set_tpo_time()
190 pr_debug("Alarm set to %x %llx\n", y_m_d, h_m_s_ms); in opal_set_tpo_time()
206 (u32)((h_m_s_ms >> 32) & 0xffff0000)); in opal_set_tpo_time()