Searched refs:rtc_to_bcd (Results 1 – 1 of 1) sorted by relevance
/external/qemu/hw/ |
D | mc146818rtc.c | 267 static inline int rtc_to_bcd(RTCState *s, int a) in rtc_to_bcd() function 307 s->cmos_data[RTC_SECONDS] = rtc_to_bcd(s, tm->tm_sec); in rtc_copy_date() 308 s->cmos_data[RTC_MINUTES] = rtc_to_bcd(s, tm->tm_min); in rtc_copy_date() 311 s->cmos_data[RTC_HOURS] = rtc_to_bcd(s, tm->tm_hour); in rtc_copy_date() 314 s->cmos_data[RTC_HOURS] = rtc_to_bcd(s, tm->tm_hour % 12); in rtc_copy_date() 318 s->cmos_data[RTC_DAY_OF_WEEK] = rtc_to_bcd(s, tm->tm_wday + 1); in rtc_copy_date() 319 s->cmos_data[RTC_DAY_OF_MONTH] = rtc_to_bcd(s, tm->tm_mday); in rtc_copy_date() 320 s->cmos_data[RTC_MONTH] = rtc_to_bcd(s, tm->tm_mon + 1); in rtc_copy_date() 324 s->cmos_data[RTC_YEAR] = rtc_to_bcd(s, year); in rtc_copy_date() 504 val = rtc_to_bcd(s, (tm.tm_year / 100) + 19); in rtc_set_date_from_host()
|