Lines Matching refs:DeviceError
125 pub enum DeviceError { enum
134 impl Into<SystemError> for DeviceError { implementation
137 DeviceError::DriverExists => SystemError::EEXIST, in into()
138 DeviceError::DeviceExists => SystemError::EEXIST, in into()
139 DeviceError::InitializeFailed => SystemError::EIO, in into()
140 DeviceError::NoDeviceForDriver => SystemError::ENODEV, in into()
141 DeviceError::NoDriverForDevice => SystemError::ENODEV, in into()
142 DeviceError::RegisterError => SystemError::EIO, in into()
270 pub fn device_register<T: Device>(device: Arc<T>) -> Result<(), DeviceError> { in device_register() argument
277 Err(_) => Err(DeviceError::RegisterError), in device_register()
284 pub fn device_unregister<T: Device>(device: Arc<T>) -> Result<(), DeviceError> { in device_unregister() argument
291 Err(_) => Err(DeviceError::RegisterError), in device_unregister()