/openbmc/qemu/hw/timer/ |
H A D | sifive_pwm.c | 96 s->tick_offset) & PWMCOUNT_MASK; in sifive_pwm_set_alarms() 128 uint64_t pwmcount = (s->tick_offset) & PWMCOUNT_MASK; in sifive_pwm_set_alarms() 168 s->tick_offset = now; in sifive_pwm_interrupt() 171 s->tick_offset = 0; in sifive_pwm_interrupt() 180 ((now & PWMCOUNT_MASK) < (s->tick_offset & PWMCOUNT_MASK))) { in sifive_pwm_interrupt() 189 s->tick_offset = (now - s->tick_offset) & PWMCOUNT_MASK; in sifive_pwm_interrupt() 235 cur_time = s->tick_offset; in sifive_pwm_read() 247 cur_time = s->tick_offset; in sifive_pwm_read() 328 s->tick_offset = (now - s->tick_offset) & PWMCOUNT_MASK; in sifive_pwm_write() 341 s->tick_offset = new_offset; in sifive_pwm_write() [all …]
|
H A D | stm32f2xx_timer.c | 86 ticks = s->tim_arr - (now_ticks - s->tick_offset); in stm32f2xx_timer_set_alarm() 121 s->tick_offset = stm32f2xx_ns_to_ticks(s, now); in stm32f2xx_timer_reset() 152 s->tick_offset; in stm32f2xx_timer_read() 223 timer_val = stm32f2xx_ns_to_ticks(s, now) - s->tick_offset; in stm32f2xx_timer_write() 263 s->tick_offset = stm32f2xx_ns_to_ticks(s, now) - timer_val; in stm32f2xx_timer_write() 278 VMSTATE_INT64(tick_offset, STM32F2XXTimerState),
|
/openbmc/qemu/hw/rtc/ |
H A D | goldfish_rtc.c | 62 return s->tick_offset + (uint64_t)qemu_clock_get_ns(rtc_clock); in goldfish_rtc_get_count() 86 timer_mod(s->timer, event - s->tick_offset); in goldfish_rtc_set_alarm() 147 s->tick_offset += new_tick - current_tick; in goldfish_rtc_write() 152 s->tick_offset += new_tick - current_tick; in goldfish_rtc_write() 194 s->tick_offset = s->tick_offset_vmstate - delta; in goldfish_rtc_post_load() 234 VMSTATE_UINT64_V(tick_offset, GoldfishRTCState, 3), 247 s->tick_offset = mktimegm(&tm); in goldfish_rtc_reset() 248 s->tick_offset *= NANOSECONDS_PER_SECOND; in goldfish_rtc_reset() 249 s->tick_offset -= qemu_clock_get_ns(rtc_clock); in goldfish_rtc_reset()
|
H A D | xlnx-zynqmp-rtc.c | 60 return s->tick_offset + now / NANOSECONDS_PER_SECOND; in rtc_get_count() 208 s->tick_offset = mktimegm(¤t_tm) - in rtc_init() 222 s->tick_offset = s->tick_offset + now; in rtc_pre_save() 236 s->tick_offset = s->tick_offset - now; in rtc_post_load() 249 VMSTATE_UINT32(tick_offset, XlnxZynqMPRTC),
|
H A D | pl031.c | 63 return s->tick_offset + now / NANOSECONDS_PER_SECOND; in pl031_get_count() 145 s->tick_offset += value - pl031_get_count(s); in pl031_write() 147 qemu_get_timedate(&tm, s->tick_offset); in pl031_write() 201 s->tick_offset = mktimegm(&tm) - in pl031_init() 238 s->tick_offset_vmstate = s->tick_offset + delta / NANOSECONDS_PER_SECOND; in pl031_pre_save() 266 s->tick_offset = s->tick_offset_vmstate - in pl031_post_load() 295 VMSTATE_UINT32(tick_offset, PL031State),
|
/openbmc/qemu/hw/misc/ |
H A D | imx7_snvs.c | 34 VMSTATE_UINT64(tick_offset, IMX7SNVSState), 44 return s->tick_offset + ticks; in imx7_snvs_get_count() 109 s->tick_offset += new_value - snvs_count; in imx7_snvs_write() 142 s->tick_offset = mktimegm(&tm) - in imx7_snvs_init()
|
H A D | mps2-fpgaio.c | 42 static uint32_t counter_from_tickoff(int64_t now, int64_t tick_offset, int frq) in counter_from_tickoff() argument 44 return muldiv64(now - tick_offset, frq, NANOSECONDS_PER_SECOND); in counter_from_tickoff()
|
H A D | mac_via.c | 473 time = v1s->tick_offset + (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) in via1_rtc_update() 1244 v1s->tick_offset = (uint32_t)mktimegm(&tm) + RTC_OFFSET; in mos6522_q800_via1_realize() 1299 VMSTATE_UINT32(tick_offset, MOS6522Q800VIA1State),
|
/openbmc/linux/tools/testing/selftests/timers/ |
H A D | freq-step.c | 97 int tick_offset; in set_frequency() local 99 tick_offset = 1e6 * freq / user_hz; in set_frequency() 102 txc.tick = 1000000 / user_hz + tick_offset; in set_frequency() 103 txc.freq = (1e6 * freq - user_hz * tick_offset) * (1 << 16); in set_frequency()
|
/openbmc/qemu/include/hw/misc/ |
H A D | imx7_snvs.h | 37 uint64_t tick_offset; member
|
H A D | mac_via.h | 52 uint32_t tick_offset; member
|
/openbmc/qemu/include/hw/rtc/ |
H A D | goldfish_rtc.h | 38 uint64_t tick_offset; member
|
H A D | pl031.h | 37 uint32_t tick_offset; member
|
H A D | xlnx-zynqmp-rtc.h | 86 uint32_t tick_offset; member
|
/openbmc/qemu/include/hw/timer/ |
H A D | sifive_pwm.h | 53 uint64_t tick_offset; member
|
H A D | stm32f2xx_timer.h | 78 int64_t tick_offset; member
|
/openbmc/qemu/hw/misc/macio/ |
H A D | cuda.c | 343 ti = s->tick_offset + (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) in cuda_cmd_get_time() 365 s->tick_offset = ti - (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) in cuda_cmd_set_time() 500 VMSTATE_UINT32(tick_offset, CUDAState), 534 s->tick_offset = (uint32_t)mktimegm(&tm) + RTC_OFFSET; in cuda_realize()
|
H A D | pmu.c | 313 ti = s->tick_offset + (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) in pmu_cmd_get_rtc() 338 s->tick_offset = ti - (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) in pmu_cmd_set_rtc() 696 VMSTATE_UINT32(tick_offset, PMUState), 734 s->tick_offset = (uint32_t)mktimegm(&tm) + RTC_OFFSET; in pmu_realize()
|
/openbmc/qemu/include/hw/misc/macio/ |
H A D | cuda.h | 84 uint32_t tick_offset; member
|
H A D | pmu.h | 224 uint32_t tick_offset; member
|