Home
last modified time | relevance | path

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

/external/qemu/hw/
Dgoldfish_timer.c32 int64_t now_ns; member
43 qemu_put_be64(f, s->now_ns); /* in case the kernel is in the middle of a timer read */ in goldfish_timer_save()
46 int64_t now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_save() local
48 qemu_put_be64(f, alarm_ns - now_ns); in goldfish_timer_save()
59 s->now_ns = qemu_get_be64(f); in goldfish_timer_load()
81 s->now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_read()
82 return s->now_ns; in goldfish_timer_read()
84 return s->now_ns >> 32; in goldfish_timer_read()
94 int64_t alarm_ns, now_ns; in goldfish_timer_write() local
99 now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_write()
[all …]
/external/qemu/android/
Dhw-sensors.c293 int64_t now_ns; in _hwSensorClient_tick() local
340 now_ns = qemu_get_clock_ns(vm_clock); in _hwSensorClient_tick()
342 snprintf(buffer, sizeof buffer, "sync:%" PRId64, now_ns/1000); in _hwSensorClient_tick()
355 qemu_mod_timer(cl->timer, now_ns + delay); in _hwSensorClient_tick()