Searched refs:y_m_d (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 23 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + in opal_to_tm() 24 bcd2bin((y_m_d >> 16) & 0xff)) - 1900; in opal_to_tm() 25 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; in opal_to_tm() 26 tm->tm_mday = bcd2bin(y_m_d & 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 36 *y_m_d |= ((u32)bin2bcd((tm->tm_year + 1900) / 100)) << 24; in tm_to_opal() 37 *y_m_d |= ((u32)bin2bcd((tm->tm_year + 1900) % 100)) << 16; in tm_to_opal() 38 *y_m_d |= ((u32)bin2bcd((tm->tm_mon + 1))) << 8; in tm_to_opal() 39 *y_m_d | in tm_to_opal() 50 u32 y_m_d; opal_get_rtc_time() local 84 u32 y_m_d = 0; opal_set_rtc_time() local 120 u32 y_m_d; opal_get_tpo_time() local 172 u32 y_m_d = 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 23 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + in opal_to_tm() 24 bcd2bin((y_m_d >> 16) & 0xff)) - 1900; in opal_to_tm() 25 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; in opal_to_tm() 26 tm->tm_mday = bcd2bin(y_m_d & 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 36 *y_m_d |= ((u32)bin2bcd((tm->tm_year + 1900) / 100)) << 24; in tm_to_opal() 37 *y_m_d |= ((u32)bin2bcd((tm->tm_year + 1900) % 100)) << 16; in tm_to_opal() 38 *y_m_d |= ((u32)bin2bcd((tm->tm_mon + 1))) << 8; in tm_to_opal() 39 *y_m_d | in tm_to_opal() 50 u32 y_m_d; opal_get_rtc_time() local 84 u32 y_m_d = 0; opal_set_rtc_time() local 120 u32 y_m_d; opal_get_tpo_time() local 172 u32 y_m_d = 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 23 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + in opal_to_tm() 24 bcd2bin((y_m_d >> 16) & 0xff)) - 1900; in opal_to_tm() 25 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; in opal_to_tm() 26 tm->tm_mday = bcd2bin(y_m_d & 0xff); in opal_to_tm() 36 u32 y_m_d; in opal_get_boot_time() local 57 y_m_d = be32_to_cpu(__y_m_d); 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 24 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + in opal_to_tm() 25 bcd2bin((y_m_d >> 16) & 0xff)) - 1900; in opal_to_tm() 26 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; in opal_to_tm() 27 tm->tm_mday = bcd2bin(y_m_d & 0xff); in opal_to_tm() 37 u32 y_m_d; in opal_get_boot_time() local 58 y_m_d = be32_to_cpu(__y_m_d); 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