Home
last modified time | relevance | path

Searched refs:ticks (Results 1 – 12 of 12) sorted by relevance

/illumos-kvm-cmd/hw/
H A Dpl031.c91 uint32_t ticks; in pl031_set_alarm() local
94 ticks = s->tick_offset + now / get_ticks_per_sec(); in pl031_set_alarm()
98 ticks = s->mr - ticks; in pl031_set_alarm()
99 DPRINTF("Alarm set in %ud ticks\n", ticks); in pl031_set_alarm()
100 if (ticks == 0) { in pl031_set_alarm()
104 qemu_mod_timer(s->timer, now + (int64_t)ticks * get_ticks_per_sec()); in pl031_set_alarm()
H A Dsb16.c756 int64_t ticks; in complete() local
761 ticks = muldiv64 (bytes, get_ticks_per_sec (), freq); in complete()
762 if (ticks < get_ticks_per_sec () / 1024) { in complete()
769 qemu_get_clock (vm_clock) + ticks in complete()
773 ldebug ("mix silence %d %d %" PRId64 "\n", samples, bytes, ticks); in complete()
H A Domap1.c565 int64_t now, ticks; in omap_ulpd_pm_write() local
591 ticks = muldiv64(now, 32768, get_ticks_per_sec()); in omap_ulpd_pm_write()
592 s->ulpd_pm_regs[0x00 >> 2] = (ticks >> 0) & 0xffff; in omap_ulpd_pm_write()
593 s->ulpd_pm_regs[0x04 >> 2] = (ticks >> 16) & 0xffff; in omap_ulpd_pm_write()
594 if (ticks >> 32) /* OVERFLOW_32K */ in omap_ulpd_pm_write()
598 ticks = muldiv64(now, 12000000, get_ticks_per_sec()); in omap_ulpd_pm_write()
599 s->ulpd_pm_regs[0x08 >> 2] = (ticks >> 0) & 0xffff; in omap_ulpd_pm_write()
600 s->ulpd_pm_regs[0x0c >> 2] = (ticks >> 16) & 0xffff; in omap_ulpd_pm_write()
601 if (ticks >> 32) /* OVERFLOW_HI_FREQ */ in omap_ulpd_pm_write()
3412 int64_t on, period = 1, ticks = 1000; in omap_lpg_update() local
[all …]
H A Ddp8393x.c284 uint32_t ticks; in set_next_tick() local
292 ticks = s->regs[SONIC_WT1] << 16 | s->regs[SONIC_WT0]; in set_next_tick()
294 delay = get_ticks_per_sec() * ticks / 5000000; in set_next_tick()
/illumos-kvm-cmd/audio/
H A Dnoaudio.c46 int64_t ticks; in no_run_out() local
50 ticks = now - no->old_ticks; in no_run_out()
51 bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); in no_run_out()
106 int64_t ticks = now - no->old_ticks; in no_run_in() local
108 muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); in no_run_in()
H A Dspiceaudio.c90 int64_t ticks; in rate_get_samples() local
95 ticks = now - rate->start_ticks; in rate_get_samples()
96 bytes = muldiv64 (ticks, info->bytes_per_second, get_ticks_per_sec ()); in rate_get_samples()
H A Dwavaudio.c56 int64_t ticks = now - wav->old_ticks; in wav_run_out() local
58 muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); in wav_run_out()
H A Daudio.c67 int64_t ticks; member
1891 conf.period.ticks = 1; in audio_init()
1893 conf.period.ticks = in audio_init()
/illumos-kvm-cmd/
H A Dqemu-timer.h285 static int64_t ticks = 0; in cpu_get_real_ticks() local
286 return ticks++; in cpu_get_real_ticks()
H A Dqemu-timer.c91 int64_t ticks; in cpu_get_ticks() local
92 ticks = cpu_get_real_ticks(); in cpu_get_ticks()
93 if (timers_state.cpu_ticks_prev > ticks) { in cpu_get_ticks()
96 timers_state.cpu_ticks_offset += timers_state.cpu_ticks_prev - ticks; in cpu_get_ticks()
98 timers_state.cpu_ticks_prev = ticks; in cpu_get_ticks()
99 return ticks + timers_state.cpu_ticks_offset; in cpu_get_ticks()
H A Dqemu-options.hx2099 " set the RTC base and clock, enable drift fix for clock ticks (x86 only)\n",
2125 " enable virtual instruction counter with 2^N clock ticks per\n" \
/illumos-kvm-cmd/linux-user/
H A Dsyscall.c806 static inline abi_long host_to_target_clock_t(long ticks) in host_to_target_clock_t() argument
809 return ticks; in host_to_target_clock_t()
811 return ((int64_t)ticks * TARGET_HZ) / HOST_HZ; in host_to_target_clock_t()

Completed in 68 milliseconds