/external/crosvm/base/src/ |
D | ioctl.rs | 5 use crate::{AsRawDescriptor, IoctlNr}; 9 pub unsafe fn ioctl<F: AsRawDescriptor>(descriptor: &F, nr: IoctlNr) -> c_int { in ioctl() 14 pub unsafe fn ioctl_with_val(descriptor: &dyn AsRawDescriptor, nr: IoctlNr, arg: c_ulong) -> c_int { in ioctl_with_val() argument 19 pub unsafe fn ioctl_with_ref<T>(descriptor: &dyn AsRawDescriptor, nr: IoctlNr, arg: &T) -> c_int { in ioctl_with_ref() argument 30 nr: IoctlNr, in ioctl_with_mut_ref() argument 43 nr: IoctlNr, in ioctl_with_ptr() argument 52 nr: IoctlNr, in ioctl_with_mut_ptr() argument
|
/external/crosvm/sys_util/src/ |
D | ioctl.rs | 21 | ($size << $crate::ioctl::_IOC_SIZESHIFT)) as $crate::IoctlNr 30 pub const fn $name() -> $crate::IoctlNr { 36 pub const fn $name($($v: ::std::os::raw::c_uint),+) -> $crate::IoctlNr { 147 pub type IoctlNr = c_int; typedef 149 pub type IoctlNr = c_ulong; typedef 152 pub unsafe fn ioctl<F: AsRawFd>(fd: &F, nr: IoctlNr) -> c_int { in ioctl() 157 pub unsafe fn ioctl_with_val<F: AsRawFd>(fd: &F, nr: IoctlNr, arg: c_ulong) -> c_int { in ioctl_with_val() argument 162 pub unsafe fn ioctl_with_ref<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: &T) -> c_int { in ioctl_with_ref() argument 167 pub unsafe fn ioctl_with_mut_ref<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: &mut T) -> c_int { in ioctl_with_mut_ref() argument 172 pub unsafe fn ioctl_with_ptr<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: *const T) -> c_int { in ioctl_with_ptr() argument [all …]
|
/external/crosvm/net_util/src/ |
D | lib.rs | 21 FromRawDescriptor, IoctlNr, RawDescriptor, 330 ioctl_with_mut_ref(&sock, net_sys::sockios::SIOCGIFADDR as IoctlNr, &mut ifreq) in ip_addr() 351 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFADDR as IoctlNr, &ifreq) }; in set_ip_addr() 367 net_sys::sockios::SIOCGIFNETMASK as IoctlNr, in netmask() 390 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFNETMASK as IoctlNr, &ifreq) }; in set_netmask() 406 net_sys::sockios::SIOCGIFHWADDR as IoctlNr, in mac_address() 434 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFHWADDR as IoctlNr, &ifreq) }; in set_mac_address() 462 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFFLAGS as IoctlNr, &ifreq) }; in enable()
|
/external/crosvm/usb_util/src/ |
D | error.rs | 5 use base::IoctlNr; 19 IoctlFailed(IoctlNr, base::Error),
|
D | device.rs | 10 use base::{handle_eintr_errno, AsRawDescriptor, IoctlNr, RawDescriptor}; 71 unsafe fn ioctl(&self, nr: IoctlNr) -> Result<i32> { in ioctl() 79 unsafe fn ioctl_with_ref<T>(&self, nr: IoctlNr, arg: &T) -> Result<i32> { in ioctl_with_ref() argument 87 unsafe fn ioctl_with_mut_ref<T>(&self, nr: IoctlNr, arg: &mut T) -> Result<i32> { in ioctl_with_mut_ref() argument 95 unsafe fn ioctl_with_mut_ptr<T>(&self, nr: IoctlNr, arg: *mut T) -> Result<i32> { in ioctl_with_mut_ptr() argument
|
/external/crosvm/hypervisor/src/kvm/ |
D | x86_64.rs | 5 use base::IoctlNr; 29 kind: IoctlNr, in get_cpuid_with_initial_capacity() argument 63 pub fn get_cpuid(&self, kind: IoctlNr) -> Result<CpuId> { in get_cpuid()
|
/external/crosvm/kvm/src/ |
D | lib.rs | 37 ioctl_with_val, pagesize, signal, unblock_signal, warn, Error, Event, IoctlNr, MappedRegion, 139 fn get_cpuid(&self, kind: IoctlNr) -> Result<CpuId> { in get_cpuid()
|