Searched refs:rtc_from_bcd (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/rtc/ |
H A D | mc146818rtc.c | 77 static inline int rtc_from_bcd(MC146818RtcState *s, int a); 320 alarm_sec = rtc_from_bcd(s, s->cmos_data[RTC_SECONDS_ALARM]); in get_next_alarm() 321 alarm_min = rtc_from_bcd(s, s->cmos_data[RTC_MINUTES_ALARM]); in get_next_alarm() 322 alarm_hour = rtc_from_bcd(s, s->cmos_data[RTC_HOURS_ALARM]); in get_next_alarm() 325 cur_sec = rtc_from_bcd(s, s->cmos_data[RTC_SECONDS]); in get_next_alarm() 326 cur_min = rtc_from_bcd(s, s->cmos_data[RTC_MINUTES]); in get_next_alarm() 327 cur_hour = rtc_from_bcd(s, s->cmos_data[RTC_HOURS]); in get_next_alarm() 562 static inline int rtc_from_bcd(MC146818RtcState *s, int a) in rtc_from_bcd() function 576 tm->tm_sec = rtc_from_bcd(s, s->cmos_data[RTC_SECONDS]); in rtc_get_time() 577 tm->tm_min = rtc_from_bcd(s, s->cmos_data[RTC_MINUTES]); in rtc_get_time() [all …]
|