Home
last modified time | relevance | path

Searched refs:ioctl_with_ref (Results 1 – 9 of 9) sorted by relevance

/external/crosvm/kvm/src/
Dlib.rs25 ioctl, ioctl_with_mut_ptr, ioctl_with_mut_ref, ioctl_with_ptr, ioctl_with_ref, ioctl_with_val,
88 let ret = ioctl_with_ref(fd, KVM_SET_USER_MEMORY_REGION(), &region); in set_user_memory_region()
533 let ret = unsafe { ioctl_with_ref(self, KVM_GET_DIRTY_LOG(), &dirty_log_kvm) }; in get_dirty_log()
573 unsafe { ioctl_with_ref(self, KVM_SET_IDENTITY_MAP_ADDR(), &(addr.offset() as u64)) }; in set_identity_map_addr()
604 let ret = unsafe { ioctl_with_ref(self, KVM_SET_CLOCK(), clock_data) }; in set_clock()
664 let ret = unsafe { ioctl_with_ref(self, KVM_SET_IRQCHIP(), &irqchip_state) }; in set_pic_state()
705 let ret = unsafe { ioctl_with_ref(self, KVM_SET_IRQCHIP(), &irqchip_state) }; in set_ioapic_state()
727 let ret = unsafe { ioctl_with_ref(self, KVM_IRQ_LINE(), &irq_level) }; in set_irq_line()
743 let ret = unsafe { ioctl_with_ref(self, KVM_CREATE_PIT2(), &pit_config) }; in create_pit()
774 let ret = unsafe { ioctl_with_ref(self, KVM_SET_PIT2(), pit_state) }; in set_pit_state()
[all …]
/external/crosvm/vhost/src/
Dvsock.rs10 use sys_util::{ioctl_with_ref, GuestMemory};
44 let ret = unsafe { ioctl_with_ref(&self.fd, VHOST_VSOCK_SET_GUEST_CID(), &cid) }; in set_cid()
63 let ret = unsafe { ioctl_with_ref(&self.fd, VHOST_VSOCK_SET_RUNNING(), &on) }; in set_running()
Dlib.rs20 use sys_util::{ioctl, ioctl_with_mut_ref, ioctl_with_ptr, ioctl_with_ref};
104 let ret = unsafe { ioctl_with_ref(self, virtio_sys::VHOST_SET_FEATURES(), &features) }; in set_features()
171 let ret = unsafe { ioctl_with_ref(self, virtio_sys::VHOST_SET_VRING_NUM(), &vring_state) }; in set_vring_num()
269 let ret = unsafe { ioctl_with_ref(self, virtio_sys::VHOST_SET_VRING_ADDR(), &vring_addr) }; in set_vring_addr()
289 let ret = unsafe { ioctl_with_ref(self, virtio_sys::VHOST_SET_VRING_BASE(), &vring_state) }; in set_vring_base()
309 let ret = unsafe { ioctl_with_ref(self, virtio_sys::VHOST_SET_VRING_CALL(), &vring_file) }; in set_vring_call()
330 let ret = unsafe { ioctl_with_ref(self, virtio_sys::VHOST_SET_VRING_KICK(), &vring_file) }; in set_vring_kick()
Dnet.rs13 use sys_util::{ioctl_with_ref, GuestMemory};
74 unsafe { ioctl_with_ref(&self.fd, virtio_sys::VHOST_NET_SET_BACKEND(), &vring_file) }; in set_backend()
/external/crosvm/net_util/src/
Dlib.rs18 use sys_util::{ioctl_with_mut_ref, ioctl_with_ref, ioctl_with_val};
314 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFADDR as c_ulong, &ifreq) }; in set_ip_addr()
353 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFNETMASK as c_ulong, &ifreq) }; in set_netmask()
397 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFHWADDR as c_ulong, &ifreq) }; in set_mac_address()
425 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFFLAGS as c_ulong, &ifreq) }; in enable()
435 let ret = unsafe { ioctl_with_ref(&self.tap_file, net_sys::TUNSETVNETHDRSZ(), &size) }; in set_vnet_hdr_size()
/external/crosvm/aarch64/src/
Dlib.rs449 sys_util::ioctl_with_ref(&vgic_fd, kvm_sys::KVM_SET_DEVICE_ATTR(), &cpu_if_attr) in create_irq_chip()
457 sys_util::ioctl_with_ref(&vgic_fd, kvm_sys::KVM_SET_DEVICE_ATTR(), &dist_attr) in create_irq_chip()
474 sys_util::ioctl_with_ref(&vgic_fd, kvm_sys::KVM_SET_DEVICE_ATTR(), &nr_irqs_attr) in create_irq_chip()
490 sys_util::ioctl_with_ref(&vgic_fd, kvm_sys::KVM_SET_DEVICE_ATTR(), &init_gic_attr) in create_irq_chip()
/external/crosvm/devices/src/virtio/input/
Devdev.rs8 use sys_util::{ioctl_ior_nr, ioctl_iow_nr, ioctl_with_mut_ref, ioctl_with_ptr, ioctl_with_ref};
237 ioctl_with_ref(fd, EVIOCGRAB(), &val) in grab_evdev()
/external/crosvm/sys_util/src/
Dioctl.rs155 pub unsafe fn ioctl_with_ref<F: AsRawFd, T>(fd: &F, nr: c_ulong, arg: &T) -> c_int { in ioctl_with_ref() function
/external/crosvm/devices/src/virtio/
Dwl.rs71 use sys_util::ioctl_with_ref;
794 if unsafe { ioctl_with_ref(fd, DMA_BUF_IOCTL_SYNC(), &sync) } < 0 { in dmabuf_sync()