Home
last modified time | relevance | path

Searched refs:rtc_to_bcd (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/rtc/
H A Dmc146818rtc.c553 static inline int rtc_to_bcd(MC146818RtcState *s, int a) in rtc_to_bcd() function
609 s->cmos_data[RTC_SECONDS] = rtc_to_bcd(s, tm->tm_sec); in rtc_set_cmos()
610 s->cmos_data[RTC_MINUTES] = rtc_to_bcd(s, tm->tm_min); in rtc_set_cmos()
613 s->cmos_data[RTC_HOURS] = rtc_to_bcd(s, tm->tm_hour); in rtc_set_cmos()
617 s->cmos_data[RTC_HOURS] = rtc_to_bcd(s, h); in rtc_set_cmos()
621 s->cmos_data[RTC_DAY_OF_WEEK] = rtc_to_bcd(s, tm->tm_wday + 1); in rtc_set_cmos()
622 s->cmos_data[RTC_DAY_OF_MONTH] = rtc_to_bcd(s, tm->tm_mday); in rtc_set_cmos()
623 s->cmos_data[RTC_MONTH] = rtc_to_bcd(s, tm->tm_mon + 1); in rtc_set_cmos()
625 s->cmos_data[RTC_YEAR] = rtc_to_bcd(s, year % 100); in rtc_set_cmos()
626 s->cmos_data[RTC_CENTURY] = rtc_to_bcd(s, year / 100); in rtc_set_cmos()