Lines Matching refs:pit_timer
112 if (!ps->pit_timer.period) in __kpit_elapsed()
124 remaining = hrtimer_get_remaining(&ps->pit_timer.timer); in __kpit_elapsed()
125 elapsed = ps->pit_timer.period - ktime_to_ns(remaining); in __kpit_elapsed()
126 elapsed = mod_64(elapsed, ps->pit_timer.period); in __kpit_elapsed()
242 value = atomic_dec_return(&ps->pit_timer.pending); in kvm_pit_ack_irq()
247 atomic_inc(&ps->pit_timer.pending); in kvm_pit_ack_irq()
265 timer = &pit->pit_state.pit_timer.timer; in __kvm_migrate_pit_timer()
272 hrtimer_cancel(&pit->pit_state.pit_timer.timer); in destroy_pit_timer()
279 pit_timer); in kpit_is_periodic()
343 struct kvm_timer *pt = &ps->pit_timer; in create_pit_timer()
643 atomic_set(&pit->pit_state.pit_timer.pending, 0); in kvm_pit_reset()
652 atomic_set(&pit->pit_state.pit_timer.pending, 0); in pit_mask_notifer()
702 hrtimer_init(&pit_state->pit_timer.timer, in kvm_create_pit()
707 pit_state->pit_timer.reinject = true; in kvm_create_pit()
755 timer = &kvm->arch.vpit->pit_state.pit_timer.timer; in kvm_free_pit()