/openbmc/qemu/system/ |
H A D | rtc.c | 46 QEMUClockType rtc_clock; variable 72 time_t ti = qemu_ref_timedate(rtc_clock); in qemu_get_timedate() 145 rtc_clock = QEMU_CLOCK_HOST; in configure_rtc() 164 rtc_clock = QEMU_CLOCK_HOST; in configure_rtc() 166 rtc_clock = QEMU_CLOCK_REALTIME; in configure_rtc() 168 rtc_clock = QEMU_CLOCK_VIRTUAL; in configure_rtc()
|
/openbmc/qemu/hw/rtc/ |
H A D | pl031.c | 62 int64_t now = qemu_clock_get_ns(rtc_clock); in pl031_get_count() 78 int64_t now = qemu_clock_get_ns(rtc_clock); in pl031_set_alarm() 202 qemu_clock_get_ns(rtc_clock) / NANOSECONDS_PER_SECOND; in pl031_init() 204 s->timer = timer_new_ns(rtc_clock, pl031_interrupt, s); in pl031_init() 237 int64_t delta = qemu_clock_get_ns(rtc_clock) - qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in pl031_pre_save() 264 int64_t delta = qemu_clock_get_ns(rtc_clock) - in pl031_post_load()
|
H A D | goldfish_rtc.c | 62 return s->tick_offset + (uint64_t)qemu_clock_get_ns(rtc_clock); in goldfish_rtc_get_count() 194 delta = qemu_clock_get_ns(rtc_clock) - in goldfish_rtc_pre_save() 210 delta = qemu_clock_get_ns(rtc_clock) - in goldfish_rtc_post_load() 266 s->tick_offset -= qemu_clock_get_ns(rtc_clock); in goldfish_rtc_reset() 286 s->timer = timer_new_ns(rtc_clock, goldfish_rtc_interrupt, s); in goldfish_rtc_realize()
|
H A D | mc146818rtc.c | 88 uint64_t guest_clock = qemu_clock_get_ns(rtc_clock); in get_guest_rtc_ns() 101 int64_t next_clock = qemu_clock_get_ns(rtc_clock) + in rtc_coalesced_timer_update() 268 next_update_time = qemu_clock_get_ns(rtc_clock) in check_update_timer() 416 if (qemu_clock_get_ns(rtc_clock) >= s->next_alarm_time) { in rtc_update_timer() 600 s->last_update = qemu_clock_get_ns(rtc_clock); in rtc_set_time() 655 if (qemu_clock_get_ns(rtc_clock) >= in update_in_progress() 755 s->last_update = qemu_clock_get_ns(rtc_clock); in rtc_set_date_from_host() 775 if (version_id <= 2 || rtc_clock == QEMU_CLOCK_REALTIME) { in rtc_post_load() 787 uint64_t now = qemu_clock_get_ns(rtc_clock); in rtc_post_load() 906 timer_new_ns(rtc_clock, rtc_coalesced_timer, s); in rtc_realizefn() [all …]
|
H A D | xlnx-zynqmp-rtc.c | 59 int64_t now = qemu_clock_get_ns(rtc_clock); in rtc_get_count() 209 qemu_clock_get_ns(rtc_clock) / NANOSECONDS_PER_SECOND; in rtc_init() 219 int64_t now = qemu_clock_get_ns(rtc_clock) / NANOSECONDS_PER_SECOND; in rtc_pre_save() 230 int64_t now = qemu_clock_get_ns(rtc_clock) / NANOSECONDS_PER_SECOND; in rtc_post_load()
|
H A D | ls7a_rtc.c | 91 return qemu_clock_get_ns(rtc_clock) * LS7A_RTC_FREQ / NANOSECONDS_PER_SECOND; in ls7a_rtc_ticks() 145 now = qemu_clock_get_ms(rtc_clock); in toymatch_write() 191 now = qemu_clock_get_ms(rtc_clock); in ls7a_toy_start() 400 d->toy_timer[i] = timer_new_ms(rtc_clock, toy_timer_cb, d); in ls7a_rtc_realize() 401 d->rtc_timer[i] = timer_new_ms(rtc_clock, rtc_timer_cb, d); in ls7a_rtc_realize()
|
H A D | twl92230.c | 84 s->rtc.next += qemu_clock_get_ms(rtc_clock); in menelaus_rtc_start() 91 s->rtc.next -= qemu_clock_get_ms(rtc_clock); in menelaus_rtc_stop() 786 s->rtc_next_vmstate = s->rtc.next - qemu_clock_get_ms(rtc_clock); in menelaus_pre_save() 848 s->rtc.hz_tm = timer_new_ms(rtc_clock, menelaus_rtc_hz, s); in twl92230_realize()
|
H A D | m48t59.c | 130 timer_mod(NVRAM->alrm_timer, qemu_clock_get_ns(rtc_clock) + in alarm_cb() 570 s->alrm_timer = timer_new_ns(rtc_clock, &alarm_cb, s); in m48t59_realize_common()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_rtc.c | 41 int64_t host_ns = qemu_clock_get_ns(rtc_clock); in spapr_rtc_read() 127 host_ns = qemu_clock_get_ns(rtc_clock); in rtas_set_time_of_day() 150 rtc_ns = qemu_clock_get_ns(rtc_clock); in spapr_rtc_realize()
|
/openbmc/qemu/hw/misc/ |
H A D | imx7_snvs.c | 42 uint64_t ticks = muldiv64(qemu_clock_get_ns(rtc_clock), RTC_FREQ, in imx7_snvs_get_count() 143 qemu_clock_get_ns(rtc_clock) / NANOSECONDS_PER_SECOND; in imx7_snvs_init()
|
/openbmc/qemu/target/alpha/ |
H A D | sys_helper.c | 62 return qemu_clock_get_ns(rtc_clock); in helper_get_walltime()
|
/openbmc/qemu/hw/arm/ |
H A D | pxa2xx.c | 856 int64_t rt = qemu_clock_get_ms(rtc_clock); in pxa2xx_rtc_hzupdate() 866 int64_t rt = qemu_clock_get_ms(rtc_clock); in pxa2xx_rtc_swupdate() 874 int64_t rt = qemu_clock_get_ms(rtc_clock); in pxa2xx_rtc_piupdate() 1001 ((qemu_clock_get_ms(rtc_clock) - s->last_hz) << 15) / in pxa2xx_rtc_read() 1005 ((qemu_clock_get_ms(rtc_clock) - s->last_hz) << 15) / in pxa2xx_rtc_read() 1012 (qemu_clock_get_ms(rtc_clock) - s->last_sw) / 10; in pxa2xx_rtc_read() 1169 s->rtc_hz = timer_new_ms(rtc_clock, pxa2xx_rtc_hz_tick, s); in pxa2xx_rtc_realize() 1170 s->rtc_rdal1 = timer_new_ms(rtc_clock, pxa2xx_rtc_rdal1_tick, s); in pxa2xx_rtc_realize() 1171 s->rtc_rdal2 = timer_new_ms(rtc_clock, pxa2xx_rtc_rdal2_tick, s); in pxa2xx_rtc_realize() 1172 s->rtc_swal1 = timer_new_ms(rtc_clock, pxa2xx_rtc_swal1_tick, s); in pxa2xx_rtc_realize() [all …]
|
H A D | strongarm.c | 275 int64_t rt = qemu_clock_get_ms(rtc_clock); in strongarm_rtc_hzupdate() 328 ((qemu_clock_get_ms(rtc_clock) - s->last_hz) << 15) / in strongarm_rtc_read() 399 s->last_hz = qemu_clock_get_ms(rtc_clock); in strongarm_rtc_init() 412 s->rtc_alarm = timer_new_ms(rtc_clock, strongarm_rtc_alarm_tick, s); in strongarm_rtc_realize() 413 s->rtc_hz = timer_new_ms(rtc_clock, strongarm_rtc_hz_tick, s); in strongarm_rtc_realize()
|
H A D | omap1.c | 2931 s->tick = qemu_clock_get_ms(rtc_clock); in omap_rtc_reset() 2951 s->clk = timer_new_ms(rtc_clock, omap_rtc_tick, s); in omap_rtc_init()
|
/openbmc/qemu/include/sysemu/ |
H A D | sysemu.h | 49 extern QEMUClockType rtc_clock;
|