Lines Matching refs:tm
25 static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) in opal_to_tm() argument
27 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + in opal_to_tm()
29 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; in opal_to_tm()
30 tm->tm_mday = bcd2bin(y_m_d & 0xff); in opal_to_tm()
31 tm->tm_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm()
32 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff); in opal_to_tm()
33 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm()
35 GregorianDay(tm); in opal_to_tm()
40 struct rtc_time tm; in opal_get_boot_time() local
62 opal_to_tm(y_m_d, h_m_s_ms, &tm); in opal_get_boot_time()
63 return mktime(tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in opal_get_boot_time()
64 tm.tm_hour, tm.tm_min, tm.tm_sec); in opal_get_boot_time()