Lines Matching refs:DeviceError
4 Device, DeviceError, DeviceState, DeviceType, IdTable, KObject,
96 fn register_platform_driver(&self, driver: Arc<dyn PlatformDriver>) -> Result<(), DeviceError> { in register_platform_driver() argument
102 return Err(DeviceError::DriverExists); in register_platform_driver()
126 ) -> Result<(), DeviceError> { in register_platform_device() argument
131 return Err(DeviceError::DeviceExists); in register_platform_device()
152 fn driver_match_device(&self, driver: Arc<dyn PlatformDriver>) -> Result<i32, DeviceError> { in driver_match_device() argument
169 Err(_) => return Err(DeviceError::InitializeFailed), in driver_match_device()
175 return Err(DeviceError::NoDeviceForDriver); in driver_match_device()
185 fn device_match_driver(&self, device: Arc<dyn PlatformDevice>) -> Result<(), DeviceError> { in device_match_driver() argument
198 Err(_) => return Err(DeviceError::InitializeFailed), in device_match_driver()
202 return Err(DeviceError::NoDriverForDevice); in device_match_driver()