Searched refs:clock_data (Results 1 – 3 of 3) sorted by relevance
/external/crosvm/tests/ |
D | plugin_vm_state.c | 119 struct kvm_clock_data clock_data = { .clock = 0, .flags = -1U, }; in main() local 120 ret = crosvm_get_clock(crosvm, &clock_data); in main() 126 if (clock_data.clock == 0 || clock_data.flags != 0) { in main() 128 clock_data.clock, clock_data.flags); in main() 131 clock_data.clock += 10000000; in main() 133 ret = crosvm_set_clock(crosvm, &clock_data); in main() 139 clock_data.flags = -1U; in main() 140 ret = crosvm_set_clock(crosvm, &clock_data); in main()
|
/external/crosvm/kvm/src/ |
D | lib.rs | 588 let mut clock_data = unsafe { std::mem::zeroed() }; in get_clock() localVariable 589 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_CLOCK(), &mut clock_data) }; in get_clock() 591 Ok(clock_data) in get_clock() 601 pub fn set_clock(&self, clock_data: &kvm_clock_data) -> Result<()> { in set_clock() 604 let ret = unsafe { ioctl_with_ref(self, KVM_SET_CLOCK(), clock_data) }; in set_clock() 1886 let mut clock_data = vm.get_clock().unwrap(); in clock_handling() localVariable 1887 clock_data.clock += 1000; in clock_handling() 1888 vm.set_clock(&clock_data).unwrap(); in clock_handling()
|
/external/crosvm/crosvm_plugin/src/ |
D | lib.rs | 1375 clock_data: *mut kvm_clock_data, in crosvm_get_clock() 1379 let state = from_raw_parts_mut(clock_data as *mut u8, size_of::<kvm_clock_data>()); in crosvm_get_clock() 1387 clock_data: *const kvm_clock_data, in crosvm_set_clock() 1391 let state = from_raw_parts(clock_data as *mut u8, size_of::<kvm_clock_data>()); in crosvm_set_clock()
|