Searched refs:ioctl_with_mut_ref (Results 1 – 6 of 6) sorted by relevance
/external/crosvm/devices/src/virtio/input/ |
D | evdev.rs | 8 use sys_util::{ioctl_ior_nr, ioctl_iow_nr, ioctl_with_mut_ref, ioctl_with_ptr, ioctl_with_ref}; 120 ioctl_with_mut_ref(fd, EVIOCGID(), &mut dev_id) in device_ids() 139 ioctl_with_mut_ref(fd, EVIOCGNAME(), &mut name) in name() 153 ioctl_with_mut_ref(fd, EVIOCGUNIQ(), &mut uniq) in serial_name() 167 ioctl_with_mut_ref(fd, EVIOCGPROP(), &mut props) in properties() 184 ioctl_with_mut_ref(fd, EVIOCGBIT(0), &mut evt_types) in supported_events() 201 ioctl_with_mut_ref(fd, EVIOCGBIT(ev as c_uint), &mut evt_codes) in supported_events() 221 ioctl_with_mut_ref(fd, EVIOCGABS(abs as c_uint), &mut abs_info) in abs_info()
|
/external/crosvm/gpu_buffer/src/ |
D | rendernode.rs | 13 use sys_util::{ioctl_iowr_nr, ioctl_with_mut_ref}; 55 if unsafe { ioctl_with_mut_ref(fd, DRM_IOCTL_VERSION(), &mut version) } < 0 { in get_drm_device_name() 74 if unsafe { ioctl_with_mut_ref(fd, DRM_IOCTL_VERSION(), &mut version) } < 0 { in get_drm_device_name()
|
/external/crosvm/net_util/src/ |
D | lib.rs | 18 use sys_util::{ioctl_with_mut_ref, ioctl_with_ref, ioctl_with_val}; 178 let ret = ioctl_with_mut_ref(&tap_file, net_sys::TUNGETIFF(), &mut ifreq); in from_raw_fd() 268 let ret = unsafe { ioctl_with_mut_ref(&tuntap, net_sys::TUNSETIFF(), &mut ifreq) }; in new() 293 ioctl_with_mut_ref(&sock, net_sys::sockios::SIOCGIFADDR as c_ulong, &mut ifreq) in ip_addr() 328 ioctl_with_mut_ref( in netmask() 367 ioctl_with_mut_ref( in mac_address()
|
/external/crosvm/kvm/src/ |
D | lib.rs | 25 ioctl, ioctl_with_mut_ptr, ioctl_with_mut_ref, ioctl_with_ptr, ioctl_with_ref, ioctl_with_val, 208 ioctl_with_mut_ref(self, KVM_GET_MSR_INDEX_LIST(), &mut msr_list[0]) in get_msr_index_list() 589 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_CLOCK(), &mut clock_data) }; in get_clock() 641 ioctl_with_mut_ref(self, KVM_GET_IRQCHIP(), &mut irqchip_state) in get_pic_state() 682 ioctl_with_mut_ref(self, KVM_GET_IRQCHIP(), &mut irqchip_state) in get_ioapic_state() 759 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_PIT2(), &mut pit_state) }; in get_pit_state() 1004 let ret = unsafe { ioctl_with_mut_ref(self, KVM_ARM_PREFERRED_TARGET(), kvi) }; in arm_preferred_target() 1306 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_REGS(), &mut regs) }; in get_regs() 1331 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_SREGS(), &mut regs) }; in get_sregs() 1356 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_FPU(), &mut regs) }; in get_fpu() [all …]
|
/external/crosvm/vhost/src/ |
D | lib.rs | 20 use sys_util::{ioctl, ioctl_with_mut_ref, ioctl_with_ptr, ioctl_with_ref}; 88 ioctl_with_mut_ref(self, virtio_sys::VHOST_GET_FEATURES(), &mut avail_features) in get_features()
|
/external/crosvm/sys_util/src/ |
D | ioctl.rs | 160 pub unsafe fn ioctl_with_mut_ref<F: AsRawFd, T>(fd: &F, nr: c_ulong, arg: &mut T) -> c_int { in ioctl_with_mut_ref() function
|