Lines Matching refs:vpit
3667 mutex_lock(&kvm->arch.vpit->pit_state.lock);
3668 memcpy(ps, &kvm->arch.vpit->pit_state, sizeof(struct kvm_pit_state));
3669 mutex_unlock(&kvm->arch.vpit->pit_state.lock);
3676 mutex_lock(&kvm->arch.vpit->pit_state.lock);
3677 memcpy(&kvm->arch.vpit->pit_state, ps, sizeof(struct kvm_pit_state));
3680 mutex_unlock(&kvm->arch.vpit->pit_state.lock);
3688 mutex_lock(&kvm->arch.vpit->pit_state.lock);
3689 memcpy(ps->channels, &kvm->arch.vpit->pit_state.channels,
3691 ps->flags = kvm->arch.vpit->pit_state.flags;
3692 mutex_unlock(&kvm->arch.vpit->pit_state.lock);
3702 mutex_lock(&kvm->arch.vpit->pit_state.lock);
3703 prev_legacy = kvm->arch.vpit->pit_state.flags & KVM_PIT_FLAGS_HPET_LEGACY;
3707 memcpy(&kvm->arch.vpit->pit_state.channels, &ps->channels,
3708 sizeof(kvm->arch.vpit->pit_state.channels));
3709 kvm->arch.vpit->pit_state.flags = ps->flags;
3711 kvm_pit_load_count(kvm, i, kvm->arch.vpit->pit_state.channels[i].count, start);
3712 mutex_unlock(&kvm->arch.vpit->pit_state.lock);
3719 if (!kvm->arch.vpit)
3721 mutex_lock(&kvm->arch.vpit->pit_state.lock);
3722 kvm->arch.vpit->pit_state.reinject = control->pit_reinject;
3723 mutex_unlock(&kvm->arch.vpit->pit_state.lock);
3916 if (kvm->arch.vpit)
3919 kvm->arch.vpit = kvm_create_pit(kvm, u.pit_config.flags);
3920 if (kvm->arch.vpit)
3975 if (!kvm->arch.vpit)
3991 if (!kvm->arch.vpit)
3998 if (!kvm->arch.vpit)
4014 if (!kvm->arch.vpit)