/external/qemu/hw/ |
D | mips_timer.c | 29 (uint32_t)muldiv64(qemu_get_clock(vm_clock), in cpu_mips_get_count() 38 now = qemu_get_clock(vm_clock); in cpu_mips_timer_update() 52 count - (uint32_t)muldiv64(qemu_get_clock(vm_clock), in cpu_mips_store_count() 77 env->CP0_Count += (uint32_t)muldiv64(qemu_get_clock(vm_clock), in cpu_mips_stop_count() 106 env->timer = qemu_new_timer_ns(vm_clock, &mips_timer_cb, env); in cpu_mips_clock_init()
|
D | goldfish_timer.c | 46 int64_t now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_save() 62 int64_t now_tks = qemu_get_clock(vm_clock); in goldfish_timer_load() 81 s->now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_read() 99 now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_write() 244 timer_state.timer = qemu_new_timer_ns(vm_clock, goldfish_timer_tick, &timer_state); in goldfish_timer_and_rtc_init()
|
D | mc146818rtc.c | 112 int64_t next_clock = qemu_get_clock_ns(vm_clock) + in rtc_coalesced_timer_update() 240 rtc_timer_update(s, qemu_get_clock_ns(vm_clock)); in cmos_ioport_write() 254 rtc_timer_update(s, qemu_get_clock_ns(vm_clock)); in cmos_ioport_write() 613 s->periodic_timer = qemu_new_timer_ns(vm_clock, in rtc_init_sqw() 617 s->coalesced_timer = qemu_new_timer_ns(vm_clock, rtc_coalesced_timer, s); in rtc_init_sqw() 619 s->second_timer = qemu_new_timer_ns(vm_clock, in rtc_init_sqw() 621 s->second_timer2 = qemu_new_timer_ns(vm_clock, in rtc_init_sqw() 624 s->next_second_time = qemu_get_clock_ns(vm_clock) + (get_ticks_per_sec() * 99) / 100; in rtc_init_sqw() 734 s->periodic_timer = qemu_new_timer_ns(vm_clock, in rtc_mm_init() 736 s->second_timer = qemu_new_timer_ns(vm_clock, in rtc_mm_init() [all …]
|
D | i8254.c | 69 d = muldiv64(qemu_get_clock_ns(vm_clock) - s->count_load_time, PIT_FREQ, get_ticks_per_sec()); in pit_get_count() 192 s->count_load_time = qemu_get_clock_ns(vm_clock); in pit_set_gate() 200 s->count_load_time = qemu_get_clock_ns(vm_clock); in pit_set_gate() 231 s->count_load_time = qemu_get_clock_ns(vm_clock); in pit_load_count() 265 s->status = (pit_get_out1(s, qemu_get_clock_ns(vm_clock)) << 7) | in pit_ioport_write() 495 s->irq_timer = qemu_new_timer_ns(vm_clock, pit_irq_timer, s); in pit_init()
|
D | armv7m_nvic.c | 67 s->systick.tick = qemu_get_clock_ns(vm_clock); in systick_reload() 139 t = qemu_get_clock(vm_clock); in nvic_readl() 276 int64_t now = qemu_get_clock(vm_clock); in nvic_writel() 399 s->systick.timer = qemu_new_timer_ns(vm_clock, systick_timer_tick, s); in armv7m_nvic_init()
|
D | apic.c | 602 d = (qemu_get_clock_ns(vm_clock) - s->initial_count_load_time) >> in apic_get_current_count() 809 apic_timer_update(s, qemu_get_clock_ns(vm_clock)); in apic_mem_writel() 814 s->initial_count_load_time = qemu_get_clock_ns(vm_clock); in apic_mem_writel() 959 s->timer = qemu_new_timer_ns(vm_clock, apic_timer, s); in apic_init()
|
D | bt-hci-csr.c | 91 qemu_mod_timer(s->out_tm, qemu_get_clock_ns(vm_clock) + s->baud_delay); in csrhci_fifo_wake() 449 s->out_tm = qemu_new_timer_ns(vm_clock, csrhci_out_tick, s); in uart_hci_init()
|
D | goldfish_pipe.c | 800 pipe->timer = qemu_new_timer_ns(vm_clock, throttlePipe_timerFunc, pipe); in throttlePipe_init() 844 int64_t now = qemu_get_clock_ns(vm_clock); in throttlePipe_timerFunc() 882 pipe->sendExpiration = qemu_get_clock_ns(vm_clock) + ret*pipe->sendRate; in throttlePipe_sendBuffers() 900 pipe->recvExpiration = qemu_get_clock_ns(vm_clock) + ret*pipe->recvRate; in throttlePipe_recvBuffers()
|
D | i8259.c | 202 irq_time[irq] = qemu_get_clock(vm_clock); in i8259_set_irq() 256 (double)(qemu_get_clock(vm_clock) - irq_time[irq]) * 1000000.0 / get_ticks_per_sec); in pic_read_irq()
|
D | bt-hci.c | 579 qemu_mod_timer(timer, qemu_get_clock_ns(vm_clock) + in bt_hci_mod_timer_1280ms() 660 qemu_new_timer_ns(vm_clock, bt_hci_mode_tick, link); in bt_hci_lmp_link_establish() 1087 qemu_mod_timer(link->acl_mode_timer, qemu_get_clock_ns(vm_clock) + in bt_hci_mode_change() 2148 s->lm.inquiry_done = qemu_new_timer_ns(vm_clock, bt_hci_inquiry_done, s); in bt_new_hci() 2149 s->lm.inquiry_next = qemu_new_timer_ns(vm_clock, bt_hci_inquiry_next, s); in bt_new_hci() 2151 qemu_new_timer_ns(vm_clock, bt_hci_conn_accept_timeout, s); in bt_new_hci()
|
D | usb-ohci.c | 1098 ohci->sof_time = qemu_get_clock_ns(vm_clock); in ohci_sof() 1182 ohci->eof_timer = qemu_new_timer_ns(vm_clock, in ohci_bus_start() 1307 tks = qemu_get_clock_ns(vm_clock) - ohci->sof_time; in ohci_get_frame_remaining()
|
/external/qemu/ |
D | qemu-timer.c | 294 cur_icount = qemu_get_clock_ns(vm_clock); in icount_adjust() 323 qemu_get_clock_ns(vm_clock) + get_ticks_per_sec() / 10); in icount_adjust_vm() 425 QEMUClock *vm_clock; variable 463 int64_t cur_icount = qemu_get_clock_ns(vm_clock); in icount_warp_rt() 468 qemu_get_clock_ns(vm_clock))) { in icount_warp_rt() 488 assert(clock == vm_clock); in qemu_clock_warp() 685 vm_clock = qemu_new_clock(QEMU_CLOCK_VIRTUAL); in init_clocks() 739 vm_clock->warp_timer = qemu_new_timer_ns(rt_clock, icount_warp_rt, NULL); in configure_icount() 762 icount_vm_timer = qemu_new_timer_ns(vm_clock, icount_adjust_vm, NULL); in configure_icount() 764 qemu_get_clock_ns(vm_clock) + get_ticks_per_sec() / 10); in configure_icount() [all …]
|
D | qemu-timer.h | 30 extern QEMUClock *vm_clock;
|
D | monitor.c | 1135 qemu_mod_timer(key_timer, qemu_get_clock_ms(vm_clock) + hold_time); in do_sendkey() 3086 key_timer = qemu_new_timer_ms(vm_clock, release_keys, NULL); in monitor_init()
|
D | savevm.c | 1294 sn->vm_clock_nsec = qemu_get_clock_ns(vm_clock); in do_savevm()
|
D | net.c | 1960 ts = muldiv64(qemu_get_clock(vm_clock), 1000000, get_ticks_per_sec()); in dump_receive()
|
D | net-android.c | 2064 ts = muldiv64(qemu_get_clock(vm_clock), 1000000, get_ticks_per_sec()); in dump_receive()
|
/external/qemu/audio/ |
D | noaudio.c | 49 now = qemu_get_clock (vm_clock); in no_run_out() 105 int64_t now = qemu_get_clock (vm_clock); in no_run_in()
|
D | wavaudio.c | 64 int64_t now = qemu_get_clock (vm_clock); in wav_out_run() 352 int64_t now = qemu_get_clock (vm_clock); in wav_in_run()
|
D | winaudio.c | 295 int64_t now = qemu_get_clock(vm_clock) - start_time; in winaudio_out_run() 620 start_time = qemu_get_clock(vm_clock); in winaudio_init()
|
D | audio.c | 1201 int64_t now = qemu_get_clock_ms(vm_clock); in audio_timer() 1230 qemu_mod_timer (s->ts, qemu_get_clock_ns (vm_clock) + conf.period.ticks); in audio_timer() 1253 qemu_mod_timer (s->ts, qemu_get_clock_ns (vm_clock) + 1); in audio_reset_timer() 1967 s->ts = qemu_new_timer_ns (vm_clock, audio_timer, s); in audio_init()
|
/external/qemu/android/ |
D | hw-sensors.c | 235 cl->timer = qemu_new_timer_ns(vm_clock, _hwSensorClient_tick, cl); in _hwSensorClient_new() 340 now_ns = qemu_get_clock_ns(vm_clock); in _hwSensorClient_tick()
|