Home
last modified time | relevance | path

Searched refs:QEMU_CLOCK_VIRTUAL (Results 1 – 25 of 192) sorted by relevance

12345678

/openbmc/qemu/accel/tcg/
H A Dicount-common.c219 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + in icount_adjust_vm()
277 if (qemu_clock_expired(QEMU_CLOCK_VIRTUAL)) { in icount_warp_rt()
278 qemu_clock_notify(QEMU_CLOCK_VIRTUAL); in icount_warp_rt()
327 qemu_clock_notify(QEMU_CLOCK_VIRTUAL); in icount_start_warp_timer()
335 deadline = qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL, in icount_start_warp_timer()
366 qemu_clock_notify(QEMU_CLOCK_VIRTUAL); in icount_start_warp_timer()
388 qemu_clock_notify(QEMU_CLOCK_VIRTUAL); in icount_start_warp_timer()
485 timers_state.icount_vm_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, in icount_configure()
488 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + in icount_configure()
499 qemu_clock_notify(QEMU_CLOCK_VIRTUAL); in icount_notify_exit()
H A Dtcg-accel-ops-icount.c46 deadline = qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL, in icount_get_limit()
72 qemu_clock_notify(QEMU_CLOCK_VIRTUAL); in icount_notify_aio_contexts()
73 qemu_clock_run_timers(QEMU_CLOCK_VIRTUAL); in icount_notify_aio_contexts()
79 int64_t deadline = qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL, in icount_handle_deadline()
/openbmc/qemu/target/mips/sysemu/
H A Dcp0_timer.c33 now_ns = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_mips_get_count_val()
43 now_ns = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_mips_timer_update()
70 now_ns = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_mips_get_count()
93 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in cpu_mips_store_count()
120 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in cpu_mips_stop_count()
145 env->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, &mips_timer_cb, env); in cpu_mips_clock_init()
/openbmc/qemu/hw/acpi/
H A Dich9_timer.c30 expire_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + 1500000LL; in ich9_pm_update_swsmi_timer()
32 expire_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + in ich9_pm_update_swsmi_timer()
56 timer_new_ns(QEMU_CLOCK_VIRTUAL, ich9_pm_swsmi_timer_expired, pm); in ich9_pm_swsmi_timer_init()
68 expire_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + in ich9_pm_update_periodic_timer()
92 timer_new_ns(QEMU_CLOCK_VIRTUAL, ich9_pm_periodic_timer_expired, pm); in ich9_pm_periodic_timer_init()
/openbmc/qemu/hw/timer/
H A Dmips_gictimer.c49 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in gic_vptimer_cb()
59 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mips_gictimer_get_sh_count()
80 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mips_gictimer_store_sh_count()
100 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in mips_gictimer_store_vp_compare()
121 (uint32_t)(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) / TIMER_PERIOD); in mips_gictimer_stop_count()
140 gictimer->vptimers[i].qtimer = timer_new_ns(QEMU_CLOCK_VIRTUAL, in mips_gictimer_init()
H A Dpxa2xx_timer.c195 return s->clock + muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - in pxa2xx_timer_read()
218 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - in pxa2xx_timer_read()
228 muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - in pxa2xx_timer_read()
286 pxa2xx_timer_update(s, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in pxa2xx_timer_write()
306 pxa2xx_timer_update4(s, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), tm); in pxa2xx_timer_write()
310 s->lastload = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in pxa2xx_timer_write()
332 s->tm4[tm].lastload = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in pxa2xx_timer_write()
366 pxa2xx_timer_update4(s, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), tm); in pxa2xx_timer_write()
385 pxa2xx_timer_update4(s, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), tm); in pxa2xx_timer_write()
432 pxa2xx_timer_update4(i, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), t->tm.num - 4); in pxa2xx_timer_tick4()
[all …]
H A Dsifive_pwm.c88 uint64_t now_ns = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sifive_pwm_set_alarms()
150 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in sifive_pwm_interrupt()
227 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in sifive_pwm_read()
279 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in sifive_pwm_write()
377 uint64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sifive_pwm_reset()
432 timer_init_ns(&s->timer[0], QEMU_CLOCK_VIRTUAL, in sifive_pwm_realize()
435 timer_init_ns(&s->timer[1], QEMU_CLOCK_VIRTUAL, in sifive_pwm_realize()
438 timer_init_ns(&s->timer[2], QEMU_CLOCK_VIRTUAL, in sifive_pwm_realize()
441 timer_init_ns(&s->timer[3], QEMU_CLOCK_VIRTUAL, in sifive_pwm_realize()
H A Di8254.c57 d = muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - s->count_load_time, PIT_FREQ, in pit_get_count()
91 sc->count_load_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in pit_set_channel_gate()
99 sc->count_load_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in pit_set_channel_gate()
112 s->count_load_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in pit_load_count()
149 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)) << 7) | in pit_ioport_write()
306 pit_irq_timer_update(s, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in pit_irq_control()
342 s->irq_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, pit_irq_timer, s); in pit_realizefn()
H A Drenesas_cmt.c73 next_time += qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in update_events()
79 int64_t delta, now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in read_cmcnt()
194 cmt->tick[ch] = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in timer_events()
237 timer_init_ns(&cmt->timer[0], QEMU_CLOCK_VIRTUAL, timer_event0, cmt); in rcmt_init()
238 timer_init_ns(&cmt->timer[1], QEMU_CLOCK_VIRTUAL, timer_event1, cmt); in rcmt_init()
H A Dstm32f2xx_timer.c93 timer_mod(s->timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + s->hit_time); in stm32f2xx_timer_set_alarm()
100 int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in stm32f2xx_timer_reset()
151 return stm32f2xx_ns_to_ticks(s, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)) - in stm32f2xx_timer_read()
184 int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in stm32f2xx_timer_write()
321 s->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, stm32f2xx_timer_interrupt, s); in stm32f2xx_timer_realize()
H A Dsse-counter.c171 return sse_counter_for_timestamp(s, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in sse_cntcv()
180 uint64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sse_write_cntcv()
271 uint64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sse_counter_control_write()
384 s->ns_then = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sse_counter_reset()
401 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sse_clk_callback()
H A Dibex_timer.c57 return muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), in cpu_riscv_read_rtc()
93 next = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + in ibex_timer_update_irqs()
98 if (next < qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)) { in ibex_timer_update_irqs()
121 s->mtimer = timer_new_ns(QEMU_CLOCK_VIRTUAL, in ibex_timer_reset()
H A Dbcm2835_systmr.c56 r = qemu_clock_get_us(QEMU_CLOCK_VIRTUAL); in bcm2835_systmr_read()
93 now = qemu_clock_get_us(QEMU_CLOCK_VIRTUAL); in bcm2835_systmr_write()
140 timer_init_us(&s->tmr[i].timer, QEMU_CLOCK_VIRTUAL, in bcm2835_systmr_realize()
/openbmc/qemu/hw/ppc/
H A Dppc.c524 tb = cpu_ppc_get_tb(tb_env, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), in cpu_ppc_load_tbl()
536 tb = cpu_ppc_get_tb(tb_env, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), in _cpu_ppc_load_tbu()
563 int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_ppc_store_tbl()
574 int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in _cpu_ppc_store_tbu()
593 tb = cpu_ppc_get_tb(tb_env, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), in cpu_ppc_load_atbl()
605 tb = cpu_ppc_get_tb(tb_env, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), in cpu_ppc_load_atbu()
615 int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_ppc_store_atbl()
626 int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_ppc_store_atbu()
649 return cpu_ppc_get_tb(tb_env, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), in cpu_ppc_load_vtb()
657 cpu_ppc_store_tb(tb_env, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), in cpu_ppc_store_vtb()
[all …]
/openbmc/qemu/target/loongarch/tcg/
H A Dconstant_timer.c20 return qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) / TIMER_PERIOD; in cpu_loongarch_get_constant_timer_counter()
27 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_loongarch_get_constant_timer_ticks()
41 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_loongarch_store_constant_timer_config()
56 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in loongarch_constant_timer_cb()
/openbmc/qemu/util/
H A Dqemu-timer.c131 clock->enabled = (type == QEMU_CLOCK_VIRTUAL ? false : true); in qemu_clock_init()
138 return !(icount_enabled() && (type == QEMU_CLOCK_VIRTUAL)); in qemu_clock_use_for_deadline()
508 case QEMU_CLOCK_VIRTUAL: in timerlist_run_timers()
546 && timer_list->clock->type == QEMU_CLOCK_VIRTUAL in timerlist_run_timers()
625 case QEMU_CLOCK_VIRTUAL: in qemu_clock_get_ns()
672 int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in qemu_clock_advance_virtual_time()
678 deadline = qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL, in qemu_clock_advance_virtual_time()
687 qemu_virtual_clock_set_ns(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + warp); in qemu_clock_advance_virtual_time()
689 qemu_clock_run_timers(QEMU_CLOCK_VIRTUAL); in qemu_clock_advance_virtual_time()
690 timerlist_run_timers(aio_context->tlg.tl[QEMU_CLOCK_VIRTUAL]); in qemu_clock_advance_virtual_time()
[all …]
/openbmc/qemu/hw/openrisc/
H A Dcputimer.c42 or1k_timer->clk_offset = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_openrisc_count_set()
58 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_openrisc_count_update()
74 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_openrisc_timer_update()
104 timer_expired(cpu->env.timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL))) { in openrisc_timer_cb()
161 cpu->env.timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, &openrisc_timer_cb, cpu); in cpu_openrisc_clock_init()
/openbmc/qemu/hw/sparc64/
H A Dsparc64.c94 timer->clock_offset = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_timer_create()
96 timer->qtimer = timer_new_ns(QEMU_CLOCK_VIRTUAL, cb, cpu); in cpu_timer_create()
104 timer->clock_offset = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_timer_reset()
202 int64_t vm_clock_offset = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - in cpu_tick_set_count()
216 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - timer->clock_offset, in cpu_tick_get_count()
232 int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_tick_set_limit()
/openbmc/qemu/hw/misc/
H A Dmps2-fpgaio.c59 int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in resync_counter()
152 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mps2_fpgaio_read()
156 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mps2_fpgaio_read()
227 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mps2_fpgaio_write()
231 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mps2_fpgaio_write()
259 int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mps2_fpgaio_reset()
H A Dsifive_e_aon.c56 now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sifive_e_aon_wdt_update_wdogcount()
93 int64_t next = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sifive_e_aon_wdt_update_state()
175 r->wdog_restart_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sifive_e_aon_wdt_write()
186 r->wdog_restart_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sifive_e_aon_wdt_write()
197 r->wdog_restart_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sifive_e_aon_wdt_write()
286 r->wdog_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, in sifive_e_aon_init()
H A Dmos6522.c196 d = muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - ti->load_time, in get_next_irq_time()
275 return muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - ti->load_time, in mos6522_get_counter_value()
281 uint64_t load_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mos6522_get_load_time()
301 int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in mos6522_read()
435 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in mos6522_write()
445 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in mos6522_write()
451 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in mos6522_write()
470 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in mos6522_write()
491 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in mos6522_write()
493 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in mos6522_write()
[all …]
/openbmc/qemu/hw/input/
H A Dadb.c143 qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + in adb_set_autopoll_enabled()
157 qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + in adb_set_autopoll_rate_ms()
168 qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + in adb_set_autopoll_mask()
193 qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + in adb_autopoll_unblock()
209 qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + in adb_autopoll()
247 adb_bus->autopoll_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, adb_autopoll, in adb_bus_realize()
/openbmc/qemu/tests/unit/
H A Dtest-throttle.c167 throttle_timers_init(tt, ctx, QEMU_CLOCK_VIRTUAL, in test_init()
171 g_assert(tt->clock_type == QEMU_CLOCK_VIRTUAL); in test_init()
199 throttle_timers_init(tt, ctx, QEMU_CLOCK_VIRTUAL, in test_init_readonly()
203 g_assert(tt->clock_type == QEMU_CLOCK_VIRTUAL); in test_init_readonly()
231 throttle_timers_init(tt, ctx, QEMU_CLOCK_VIRTUAL, in test_init_writeonly()
235 g_assert(tt->clock_type == QEMU_CLOCK_VIRTUAL); in test_init_writeonly()
255 throttle_timers_init(tt, ctx, QEMU_CLOCK_VIRTUAL, in test_destroy()
296 throttle_timers_init(tt, ctx, QEMU_CLOCK_VIRTUAL, in test_config_functions()
300 throttle_config(&ts, QEMU_CLOCK_VIRTUAL, &orig_cfg); in test_config_functions()
573 throttle_timers_init(tt, ctx, QEMU_CLOCK_VIRTUAL, in test_have_timer()
[all …]
/openbmc/qemu/target/riscv/
H A Dtime_helper.c117 next = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + ns_diff; in riscv_timer_write_timecmp()
137 env->stimer = timer_new_ns(QEMU_CLOCK_VIRTUAL, &riscv_stimer_cb, cpu); in riscv_timer_init()
140 env->vstimer = timer_new_ns(QEMU_CLOCK_VIRTUAL, &riscv_vstimer_cb, cpu); in riscv_timer_init()
/openbmc/qemu/net/
H A Dfilter-buffer.c55 qemu_clock_get_us(QEMU_CLOCK_VIRTUAL) + s->interval); in filter_buffer_release_timer()
107 timer_init_us(&s->release_timer, QEMU_CLOCK_VIRTUAL, in filter_buffer_setup_timer()
111 qemu_clock_get_us(QEMU_CLOCK_VIRTUAL) + s->interval); in filter_buffer_setup_timer()

12345678