Searched refs:pit_state (Results 1 – 3 of 3) sorted by relevance
56 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_set_gate()79 return pit->pit_state.channels[channel].gate; in pit_get_gate()86 struct kvm_kpit_state *ps = &pit->pit_state; in __kpit_elapsed()117 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_get_count()144 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_get_out()176 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_latch_count()186 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_latch_status()200 return container_of(ps, struct kvm_pit, pit_state); in pit_state_to_pit()226 timer = &pit->pit_state.timer; in __kvm_migrate_pit_timer()227 mutex_lock(&pit->pit_state.lock); in __kvm_migrate_pit_timer()[all …]
45 struct kvm_kpit_state pit_state; member
4586 struct kvm_kpit_state *kps = &kvm->arch.vpit->pit_state; in kvm_vm_ioctl_get_pit()4601 mutex_lock(&pit->pit_state.lock); in kvm_vm_ioctl_set_pit()4602 memcpy(&pit->pit_state.channels, ps, sizeof(*ps)); in kvm_vm_ioctl_set_pit()4605 mutex_unlock(&pit->pit_state.lock); in kvm_vm_ioctl_set_pit()4611 mutex_lock(&kvm->arch.vpit->pit_state.lock); in kvm_vm_ioctl_get_pit2()4612 memcpy(ps->channels, &kvm->arch.vpit->pit_state.channels, in kvm_vm_ioctl_get_pit2()4614 ps->flags = kvm->arch.vpit->pit_state.flags; in kvm_vm_ioctl_get_pit2()4615 mutex_unlock(&kvm->arch.vpit->pit_state.lock); in kvm_vm_ioctl_get_pit2()4627 mutex_lock(&pit->pit_state.lock); in kvm_vm_ioctl_set_pit2()4628 prev_legacy = pit->pit_state.flags & KVM_PIT_FLAGS_HPET_LEGACY; in kvm_vm_ioctl_set_pit2()[all …]