Home
last modified time | relevance | path

Searched refs:remaining_ns (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/hw/timer/
H A Dnpcm7xx_timer.c86 t->expires_ns = now + t->remaining_ns; in npcm7xx_timer_start()
97 t->remaining_ns = t->expires_ns - now; in npcm7xx_timer_pause()
105 t->remaining_ns = 0; in npcm7xx_timer_clear()
177 t->base_timer.remaining_ns = ns; in npcm7xx_watchdog_timer_reset_cycles()
219 t->base_timer.remaining_ns = npcm7xx_timer_count_to_ns(t, t->ticr); in npcm7xx_timer_reached_zero()
239 t->base_timer.remaining_ns = npcm7xx_timer_count_to_ns(t, t->ticr); in npcm7xx_timer_restart()
256 return npcm7xx_timer_ns_to_count(t, t->base_timer.remaining_ns); in npcm7xx_timer_read_tdr()
288 t->base_timer.remaining_ns = npcm7xx_timer_count_to_ns(t, tdr); in npcm7xx_timer_write_tcsr()
308 if (t->base_timer.remaining_ns <= 0) { in npcm7xx_timer_write_tcsr()
643 VMSTATE_INT64(remaining_ns, NPCM7xxBaseTimer),
/openbmc/linux/drivers/pwm/
H A Dpwm-microchip-core.c115 s64 remaining_ns; in mchp_core_pwm_wait_for_sync_update() local
118 remaining_ns = ktime_to_ns(ktime_sub(mchp_core_pwm->update_timestamp, in mchp_core_pwm_wait_for_sync_update()
126 if (remaining_ns <= 0) in mchp_core_pwm_wait_for_sync_update()
129 delay_us = DIV_ROUND_UP_ULL(remaining_ns, NSEC_PER_USEC); in mchp_core_pwm_wait_for_sync_update()
/openbmc/qemu/include/hw/timer/
H A Dnpcm7xx_timer.h49 int64_t remaining_ns; member