Home
last modified time | relevance | path

Searched refs:SysError (Results 1 – 25 of 30) sorted by relevance

12

/external/crosvm/devices/src/utils/
Derror.rs5 use base::Error as SysError;
11 CreateEvent(SysError),
12 ReadEvent(SysError),
13 WriteEvent(SysError),
14 CreateWaitContext(SysError),
15 WaitContextAddDescriptor(SysError),
16 WaitContextDeleteDescriptor(SysError),
/external/crosvm/src/plugin/
Dmod.rs30 register_rt_signal_handler, validate_raw_descriptor, warn, AsRawDescriptor, Error as SysError,
49 CloneEvent(SysError),
51 CreateEvent(SysError),
52 CreateIrqChip(SysError),
54 CreateKvm(SysError),
55 CreateMainSocket(SysError),
56 CreatePIT(SysError),
60 CreateVcpu(SysError),
61 CreateVcpuSocket(SysError),
62 CreateVm(SysError),
[all …]
Dprocess.rs23 error, AsRawDescriptor, Error as SysError, Event, IntoRawDescriptor, Killable,
70 .ok_or(SysError::new(EINVAL))? in set_vm_state()
76 .ok_or(SysError::new(EINVAL))? in set_vm_state()
81 .ok_or(SysError::new(EINVAL))? in set_vm_state()
86 .ok_or(SysError::new(EINVAL))? in set_vm_state()
91 .ok_or(SysError::new(EINVAL))? in set_vm_state()
293 -1 => Err(SysError::last()), in try_wait()
331 _ => return Err(SysError::new(EINVAL)), in handle_io_event()
359 return Err(SysError::new(EPERM)); in handle_memory()
363 Some(end) if end > shm.size() => return Err(SysError::new(EINVAL)), in handle_memory()
[all …]
Dvcpu.rs104 vcpu.set_regs(&VcpuRegs::from_slice(state).ok_or(SysError::new(EINVAL))?.0) in set_vcpu_state()
107 vcpu.set_sregs(&VcpuSregs::from_slice(state).ok_or(SysError::new(EINVAL))?.0) in set_vcpu_state()
110 vcpu.set_fpu(&VcpuFpu::from_slice(state).ok_or(SysError::new(EINVAL))?.0) in set_vcpu_state()
114 .ok_or(SysError::new(EINVAL))? in set_vcpu_state()
119 .ok_or(SysError::new(EINVAL))? in set_vcpu_state()
124 .ok_or(SysError::new(EINVAL))? in set_vcpu_state()
129 .ok_or(SysError::new(EINVAL))? in set_vcpu_state()
134 .ok_or(SysError::new(EINVAL))? in set_vcpu_state()
180 return Err(SysError::new(EINVAL)); in reserve_range()
185 return Err(SysError::new(EPERM)); in reserve_range()
[all …]
/external/crosvm/devices/src/virtio/vhost/
Dmod.rs9 use base::{Error as SysError, TubeError};
28 CloneKillEvent(SysError),
30 CreateKillEvent(SysError),
34 CreateWaitContext(SysError),
52 VhostIrqCreate(SysError),
54 VhostIrqRead(SysError),
80 WaitError(SysError),
Dcontrol_socket.rs7 use base::Error as SysError;
20 Err(SysError),
Dworker.rs7 use base::{error, Error as SysError, Event, PollToken, Tube, WaitContext};
165 VhostDevResponse::Err(SysError::new(EIO)) in run()
177 VhostDevResponse::Err(SysError::new(EIO)) in run()
/external/crosvm/net_util/src/
Dlib.rs17 use base::Error as SysError;
27 CreateSocket(SysError),
29 OpenTun(SysError),
31 CreateTap(SysError),
33 IoctlError(SysError),
51 pub fn sys_error(&self) -> SysError { in sys_error() argument
89 return Err(Error::CreateSocket(SysError::last())); in create_socket()
185 return Err(Error::IoctlError(SysError::last())); in from_raw_descriptor()
205 return Err(Error::OpenTun(SysError::last())); in create_tap_with_ifreq()
215 let error = SysError::last(); in create_tap_with_ifreq()
[all …]
/external/crosvm/vm_control/src/
Dlib.rs29 error, with_as_descriptor, AsRawDescriptor, Error as SysError, Event, ExternalMapping, Fd,
194 Err(SysError),
337 .ok_or_else(|| VmMemoryResponse::Err(SysError::new(EINVAL))) in execute()
368 return VmMemoryResponse::Err(SysError::new(EINVAL)); in execute()
399 return VmMemoryResponse::Err(SysError::new(EINVAL)); in execute()
407 return VmMemoryResponse::Err(SysError::new(EINVAL)); in execute()
453 Err(_e) => return VmMemoryResponse::Err(SysError::new(EINVAL)), in execute()
481 Err(SysError),
526 VmIrqResponse::Err(SysError::new(EINVAL)) in execute()
554 Err(SysError),
[all …]
/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/
Dminigbm.rs17 use base::{AsRawDescriptor, Error as SysError, FromRawDescriptor};
58 return Err(RutabagaError::SysError(SysError::last())); in init()
98 return Err(RutabagaError::SysError(SysError::last())); in get_image_memory_requirements()
164 return Err(RutabagaError::SysError(SysError::last())); in allocate_memory()
/external/crosvm/rutabaga_gfx/src/
Drutabaga_utils.rs14 use base::{Error as SysError, ExternalMappingError, SafeDescriptor};
157 SysError(SysError), enumerator
214 SysError(e) => write!(f, "rutabaga received a system error: {}", e), in fmt()
239 impl From<SysError> for RutabagaError {
240 fn from(e: SysError) -> RutabagaError { in from()
241 RutabagaError::SysError(e) in from()
/external/crosvm/devices/src/virtio/
Dp9.rs11 use base::{error, warn, Error as SysError, Event, PollToken, RawDescriptor, WaitContext};
31 CreateWaitContext(SysError),
35 WaitError(SysError),
37 ReadQueueEvent(SysError),
43 SignalUsedQueue(SysError),
Dnet.rs14 use base::Error as SysError;
35 CreateKillEvent(SysError),
37 CreateWaitContext(SysError),
39 CloneKillEvent(SysError),
43 WaitContextDisableTap(SysError),
45 WaitContextEnableTap(SysError),
47 WaitError(SysError),
Dblock.rs15 use base::Error as SysError;
154 Timer(SysError),
353 return DiskControlResult::Err(SysError::new(libc::EROFS)); in resize()
360 return DiskControlResult::Err(SysError::new(libc::EIO)); in resize()
366 return DiskControlResult::Err(SysError::new(libc::EIO)); in resize()
542 return Err(SysError::new(libc::EINVAL)); in new()
Dpmem.rs11 use base::{Error as SysError, Result as SysResult};
247 return Err(SysError::new(libc::EOVERFLOW)); in new()
/external/crosvm/devices/src/virtio/fs/
Dmod.rs11 use base::{error, warn, AsRawDescriptor, Error as SysError, Event, RawDescriptor, Tube};
69 CreateWaitContext(SysError),
71 WaitError(SysError),
73 ReadQueueEvent(SysError),
79 SignalUsedQueue(SysError),
/external/crosvm/sys_util/src/
Dhandle_eintr.rs175 use crate::Error as SysError;
232 Err(SysError::new(EINTR)) in sys_eintr()
/external/crosvm/devices/src/virtio/video/
Dmod.rs13 use base::{error, AsRawDescriptor, Error as SysError, Event, RawDescriptor, Tube};
46 WaitContextCreationFailed(SysError),
52 WaitError(SysError),
/external/crosvm/devices/src/usb/xhci/
Dinterrupter.rs12 use base::{Error as SysError, Event};
22 SendInterrupt(SysError),
Dring_buffer_controller.rs12 use base::{error, Error as SysError, Event, WatchingEvents};
20 CreateEvent(SysError),
Dxhci_transfer.rs13 use base::{error, Error as SysError, Event};
29 WriteCompletionEvent(SysError),
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_streams.rs25 use sys_util::{Error as SysError, SharedMemory as SysSharedMemory};
174 return Err(Box::new(Error::DupError(SysError::last()))); in new()
/external/crosvm/devices/src/pci/
Dmsix.rs6 use base::{error, AsRawDescriptor, Error as SysError, Event, RawDescriptor, Tube, TubeError};
63 AddMsiRoute(SysError),
66 AllocateOneMsi(SysError),
/external/crosvm/gpu_display/src/
Dlib.rs10 use base::{AsRawDescriptor, Error as SysError, RawDescriptor};
33 CreateShm(SysError),
/external/crosvm/devices/src/
Dpit.rs13 error, warn, AsRawDescriptor, Descriptor, Error as SysError, Event, PollToken, WaitContext,
152 TimerCreateError(SysError),
154 CreateWaitContext(SysError),
156 WaitError(SysError),
160 CreateEvent(SysError),
162 CloneEvent(SysError),

12