Searched refs:pit_state (Results 1 – 3 of 3) sorted by relevance
/external/crosvm/tests/ |
D | plugin_vm_state.c | 87 struct kvm_pit_state2 pit_state; in main() local 88 ret = crosvm_get_pit_state(crosvm, &pit_state); in main() 94 if (pit_state.flags & KVM_PIT_FLAGS_HPET_LEGACY) { in main() 99 pit_state.flags |= KVM_PIT_FLAGS_HPET_LEGACY; in main() 100 ret = crosvm_set_pit_state(crosvm, &pit_state); in main() 106 ret = crosvm_get_pit_state(crosvm, &pit_state); in main() 112 if (!(pit_state.flags & KVM_PIT_FLAGS_HPET_LEGACY)) { in main()
|
/external/crosvm/hypervisor/src/kvm/ |
D | x86_64.rs | 258 let mut pit_state = Default::default(); in get_pit_state() localVariable 259 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_PIT2(), &mut pit_state) }; in get_pit_state() 261 Ok(pit_state) in get_pit_state() 270 pub fn set_pit_state(&self, pit_state: &kvm_pit_state2) -> Result<()> { in set_pit_state() 273 let ret = unsafe { ioctl_with_ref(self, KVM_SET_PIT2(), pit_state) }; in set_pit_state() 1351 fn pit_state() { in pit_state() function
|
/external/crosvm/kvm/src/ |
D | lib.rs | 634 let mut pit_state = unsafe { std::mem::zeroed() }; in get_pit_state() localVariable 635 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_PIT2(), &mut pit_state) }; in get_pit_state() 637 Ok(pit_state) in get_pit_state() 647 pub fn set_pit_state(&self, pit_state: &kvm_pit_state2) -> Result<()> { in set_pit_state() 650 let ret = unsafe { ioctl_with_ref(self, KVM_SET_PIT2(), pit_state) }; in set_pit_state() 1879 let pit_state = vm.get_pit_state().unwrap(); in pit_handling() localVariable 1880 vm.set_pit_state(&pit_state).unwrap(); in pit_handling()
|