Searched refs:h_m_s_ms (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-opal.c | 21 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_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm() 28 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff); in opal_to_tm() 29 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm() 34 static void tm_to_opal(struct rtc_time *tm, u32 *y_m_d, u64 *h_m_s_ms) in tm_to_opal() argument 41 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_hour)) << 56; in tm_to_opal() 42 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_min)) << 48; in tm_to_opal() 43 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_sec)) << 40; in tm_to_opal() 51 u64 h_m_s_ms; in opal_get_rtc_time() local 74 h_m_s_ms in opal_get_rtc_time() 85 u64 h_m_s_ms = 0; opal_set_rtc_time() local 119 u64 h_m_s_ms; opal_get_tpo_time() local 170 u64 h_m_s_ms = 0; opal_set_tpo_time() local [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-opal.c | 21 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_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm() 28 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff); in opal_to_tm() 29 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm() 34 static void tm_to_opal(struct rtc_time *tm, u32 *y_m_d, u64 *h_m_s_ms) in tm_to_opal() argument 41 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_hour)) << 56; in tm_to_opal() 42 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_min)) << 48; in tm_to_opal() 43 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_sec)) << 40; in tm_to_opal() 51 u64 h_m_s_ms; in opal_get_rtc_time() local 74 h_m_s_ms in opal_get_rtc_time() 85 u64 h_m_s_ms = 0; opal_set_rtc_time() local 119 u64 h_m_s_ms; opal_get_tpo_time() local 170 u64 h_m_s_ms = 0; opal_set_tpo_time() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal-rtc.c | 21 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_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm() 28 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff); in opal_to_tm() 29 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm() 37 u64 h_m_s_ms; in opal_get_boot_time() local 58 h_m_s_ms = be64_to_cpu(__h_m_s_ms); in opal_get_boot_time() 59 opal_to_tm(y_m_d, h_m_s_ms, &tm); in opal_get_boot_time()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | opal-rtc.c | 22 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()
|
Completed in 2 milliseconds