Lines Matching defs:timer

11  * ktime_to_tick() - Scale ktime_t to timer tick value.
27 enum hrtimer_restart kvm_swtimer_wakeup(struct hrtimer *timer)
31 vcpu = container_of(timer, struct kvm_vcpu, arch.swtimer);
39 * Initialise the timer to the specified frequency, zero it
50 * Restore soft timer state from saved context.
60 * Set guest stable timer cfg csr
61 * Disable timer before restore estat CSR register, avoid to
62 * get invalid timer interrupt for old timer cfg
70 /* Guest timer is disabled, just restore timer registers */
76 * Freeze the soft-timer and sync the guest stable timer with it.
83 * If oneshot timer is fired, CSR TVAL will be -1, there are two
85 * 1) timer is fired during exiting to host
86 * 2) timer is fired and vm is doing timer irq, and then exiting to
87 * host. Host should not inject timer irq to avoid spurious
88 * timer interrupt again
94 * Writing 0 to LOONGARCH_CSR_TVAL will inject timer irq
101 * timer interrupt, and CSR TVAL keeps unchanged with -1, it
102 * avoids spurious timer interrupt
123 * Inject timer here though sw timer should inject timer
124 * interrupt async already, since sw timer may be cancelled
134 * Save guest timer state and switch to software emulation of guest
135 * timer. The hard timer must already be in use, so preemption should be
149 * If period timer is fired, CSR TVAL will be reloaded from CSR TCFG
150 * If oneshot timer is fired, CSR TVAL will be -1
151 * Here judge one-shot timer fired by checking whether TVAL is larger
172 * Save guest timer state and switch to soft guest timer if hard timer was in
181 /* Save hard timer state */
187 /* Save timer-related state to vCPU context */