Home
last modified time | relevance | path

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

/openbmc/qemu/hw/rtc/
H A Dexynos4210_rtc.c115 struct tm current_tm; /* current time */ member
140 VMSTATE_INT32(current_tm.tm_sec, Exynos4210RTCState),
141 VMSTATE_INT32(current_tm.tm_min, Exynos4210RTCState),
142 VMSTATE_INT32(current_tm.tm_hour, Exynos4210RTCState),
143 VMSTATE_INT32(current_tm.tm_wday, Exynos4210RTCState),
144 VMSTATE_INT32(current_tm.tm_mday, Exynos4210RTCState),
145 VMSTATE_INT32(current_tm.tm_mon, Exynos4210RTCState),
146 VMSTATE_INT32(current_tm.tm_year, Exynos4210RTCState),
158 struct tm stm = s->current_tm; in check_alarm_raise()
295 rtc_next_second(&s->current_tm); in exynos4210_rtc_1Hz_tick()
[all …]
H A Dxlnx-zynqmp-rtc.c189 struct tm current_tm; in rtc_init() local
207 qemu_get_timedate(&current_tm, 0); in rtc_init()
208 s->tick_offset = mktimegm(&current_tm) - in rtc_init()
211 trace_xlnx_zynqmp_rtc_gettime(current_tm.tm_year, current_tm.tm_mon, in rtc_init()
212 current_tm.tm_mday, current_tm.tm_hour, in rtc_init()
213 current_tm.tm_min, current_tm.tm_sec); in rtc_init()
H A Dmc146818rtc.c866 static void rtc_get_date(Object *obj, struct tm *current_tm, Error **errp) in rtc_get_date() argument
871 rtc_get_time(s, current_tm); in rtc_get_date()
/openbmc/qemu/hw/arm/
H A Domap1.c2547 struct tm current_tm; member
2577 return to_bcd(s->current_tm.tm_sec); in omap_rtc_read()
2580 return to_bcd(s->current_tm.tm_min); in omap_rtc_read()
2584 return ((s->current_tm.tm_hour > 11) << 7) | in omap_rtc_read()
2585 to_bcd(((s->current_tm.tm_hour - 1) % 12) + 1); in omap_rtc_read()
2587 return to_bcd(s->current_tm.tm_hour); in omap_rtc_read()
2590 return to_bcd(s->current_tm.tm_mday); in omap_rtc_read()
2593 return to_bcd(s->current_tm.tm_mon + 1); in omap_rtc_read()
2596 return to_bcd(s->current_tm.tm_year % 100); in omap_rtc_read()
2599 return s->current_tm.tm_wday; in omap_rtc_read()
[all …]
/openbmc/qemu/hw/ppc/
H A Dspapr_rtc.c134 static void spapr_rtc_qom_date(Object *obj, struct tm *current_tm, Error **errp) in spapr_rtc_qom_date() argument
136 spapr_rtc_read(SPAPR_RTC(obj), current_tm, NULL); in spapr_rtc_qom_date()