Home
last modified time | relevance | path

Searched refs:hpet_offset (Results 1 – 2 of 2) sorted by relevance

/qemu/hw/timer/
H A Dhpet.c73 uint64_t hpet_offset; member
156 return ns_to_ticks(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + s->hpet_offset); in hpet_get_ticks()
161 return ticks_to_ns(tick) - s->hpet_offset; in hpet_get_ns()
269 s->hpet_offset = ticks_to_ns(s->hpet_counter) in hpet_post_load()
307 VMSTATE_UINT64(hpet_offset, HPETState),
500 s->hpet_offset = in hpet_ram_write()
652 s->hpet_offset = 0ULL; in hpet_reset()
/qemu/rust/hw/timer/hpet/src/
H A Ddevice.rs548 hpet_offset: BqlCell<u64>, field
590 ns_to_ticks(CLOCK_VIRTUAL.get_ns() + self.hpet_offset.get()) in is_timer_int_active()
594 ticks_to_ns(tick) - self.hpet_offset.get() in get_ticks()
631 self.hpet_offset in set_cfg_reg()
758 self.hpet_offset.set(0); in reset_hold()
864 self.hpet_offset in post_load()
986 vmstate_of!(HPETState, hpet_offset),