• Home
  • Raw
  • Download

Lines Matching refs:from_raw_parts

28 use std::slice::{from_raw_parts, from_raw_parts_mut};
1549 let ret = self_.set_irq_routing(slice::from_raw_parts(routes, route_count as usize)); in crosvm_set_irq_routing()
1569 let hints = slice::from_raw_parts(hints, hints_count as usize); in crosvm_set_hypercall_hint()
1583 slice::from_raw_parts(hint.details, hint.details_count as usize), in crosvm_set_hypercall_hint()
1619 let state = from_raw_parts(state as *mut u8, size_of::<kvm_pic_state>()); in crosvm_set_pic_state()
1643 let state = from_raw_parts(state as *mut u8, size_of::<kvm_ioapic_state>()); in crosvm_set_ioapic_state()
1667 let state = from_raw_parts(state as *mut u8, size_of::<kvm_pit_state2>()); in crosvm_set_pit_state()
1691 let state = from_raw_parts(clock_data as *mut u8, size_of::<kvm_clock_data>()); in crosvm_set_clock()
1790 let regs = from_raw_parts(regs as *mut u8, size_of::<kvm_regs>()); in crosvm_vcpu_set_regs()
1826 let sregs = from_raw_parts(sregs as *mut u8, size_of::<kvm_sregs>()); in crosvm_vcpu_set_sregs()
1845 let fpu = from_raw_parts(fpu as *mut u8, size_of::<kvm_fpu>()); in crosvm_vcpu_set_fpu()
1880 let dregs = from_raw_parts(dregs as *mut u8, size_of::<kvm_debugregs>()); in crosvm_vcpu_set_debugregs()
1905 let xcrs = from_raw_parts(xcrs as *mut u8, size_of::<kvm_xcrs>()); in crosvm_vcpu_set_xcrs()
1950 let msr_entries = from_raw_parts(msr_entries, msr_count as usize); in crosvm_vcpu_set_msrs()
1963 let cpuid_entries = from_raw_parts(cpuid_entries, cpuid_count as usize); in crosvm_vcpu_set_cpuid()
1977 let args = slice::from_raw_parts(args, 4); in crosvm_vcpu_enable_capability()
2006 let state = from_raw_parts(state as *mut u8, size_of::<kvm_lapic_state>()); in crosvm_vcpu_set_lapic_state()
2030 let state = from_raw_parts(state as *mut u8, size_of::<kvm_mp_state>()); in crosvm_vcpu_set_mp_state()
2054 let events = from_raw_parts(events as *mut u8, size_of::<kvm_vcpu_events>()); in crosvm_vcpu_set_vcpu_events()