y_m_d 21 arch/powerpc/platforms/powernv/opal-rtc.c static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) y_m_d 23 arch/powerpc/platforms/powernv/opal-rtc.c tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + y_m_d 24 arch/powerpc/platforms/powernv/opal-rtc.c bcd2bin((y_m_d >> 16) & 0xff)) - 1900; y_m_d 25 arch/powerpc/platforms/powernv/opal-rtc.c tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; y_m_d 26 arch/powerpc/platforms/powernv/opal-rtc.c tm->tm_mday = bcd2bin(y_m_d & 0xff); y_m_d 36 arch/powerpc/platforms/powernv/opal-rtc.c u32 y_m_d; y_m_d 57 arch/powerpc/platforms/powernv/opal-rtc.c y_m_d = be32_to_cpu(__y_m_d); y_m_d 59 arch/powerpc/platforms/powernv/opal-rtc.c opal_to_tm(y_m_d, h_m_s_ms, &tm); y_m_d 21 drivers/rtc/rtc-opal.c static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) y_m_d 23 drivers/rtc/rtc-opal.c tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + y_m_d 24 drivers/rtc/rtc-opal.c bcd2bin((y_m_d >> 16) & 0xff)) - 1900; y_m_d 25 drivers/rtc/rtc-opal.c tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; y_m_d 26 drivers/rtc/rtc-opal.c tm->tm_mday = bcd2bin(y_m_d & 0xff); y_m_d 34 drivers/rtc/rtc-opal.c static void tm_to_opal(struct rtc_time *tm, u32 *y_m_d, u64 *h_m_s_ms) y_m_d 36 drivers/rtc/rtc-opal.c *y_m_d |= ((u32)bin2bcd((tm->tm_year + 1900) / 100)) << 24; y_m_d 37 drivers/rtc/rtc-opal.c *y_m_d |= ((u32)bin2bcd((tm->tm_year + 1900) % 100)) << 16; y_m_d 38 drivers/rtc/rtc-opal.c *y_m_d |= ((u32)bin2bcd((tm->tm_mon + 1))) << 8; y_m_d 39 drivers/rtc/rtc-opal.c *y_m_d |= ((u32)bin2bcd(tm->tm_mday)); y_m_d 50 drivers/rtc/rtc-opal.c u32 y_m_d; y_m_d 73 drivers/rtc/rtc-opal.c y_m_d = be32_to_cpu(__y_m_d); y_m_d 75 drivers/rtc/rtc-opal.c opal_to_tm(y_m_d, h_m_s_ms, tm); y_m_d 84 drivers/rtc/rtc-opal.c u32 y_m_d = 0; y_m_d 87 drivers/rtc/rtc-opal.c tm_to_opal(tm, &y_m_d, &h_m_s_ms); y_m_d 90 drivers/rtc/rtc-opal.c rc = opal_rtc_write(y_m_d, h_m_s_ms); y_m_d 120 drivers/rtc/rtc-opal.c u32 y_m_d; y_m_d 148 drivers/rtc/rtc-opal.c y_m_d = be32_to_cpu(__y_m_d); y_m_d 152 drivers/rtc/rtc-opal.c if (y_m_d == 0 && h_m_s_ms == 0) { y_m_d 157 drivers/rtc/rtc-opal.c pr_debug("Alarm set to %x %llx\n", y_m_d, h_m_s_ms); y_m_d 160 drivers/rtc/rtc-opal.c opal_to_tm(y_m_d, h_m_s_ms, &alarm->time); y_m_d 172 drivers/rtc/rtc-opal.c u32 y_m_d = 0; y_m_d 177 drivers/rtc/rtc-opal.c tm_to_opal(&alarm->time, &y_m_d, &h_m_s_ms); y_m_d 178 drivers/rtc/rtc-opal.c pr_debug("Alarm set to %x %llx\n", y_m_d, h_m_s_ms); y_m_d 193 drivers/rtc/rtc-opal.c rc = opal_tpo_write(token, y_m_d,