Lines Matching refs:device
1 use super::device::{
125 device: Arc<dyn PlatformDevice>, in register_platform_device()
127 let id_table = device.id_table(); in register_platform_device()
133 devices.insert(id_table.clone(), device.clone()); in register_platform_device()
143 fn unregister_platform_device(&mut self, device: Arc<dyn PlatformDevice>) { in unregister_platform_device()
144 let id_table = device.id_table(); in unregister_platform_device()
156 for (_dev_id_table, device) in devices.iter() { in driver_match_device()
157 if device in driver_match_device()
161 if !device.is_initialized() { in driver_match_device()
163 match driver.probe(device.clone()) { in driver_match_device()
166 device.set_state(DeviceState::Initialized) in driver_match_device()
185 fn device_match_driver(&self, device: Arc<dyn PlatformDevice>) -> Result<(), DeviceError> { in device_match_driver()
190 .matches(&device.compatible_table()) in device_match_driver()
192 match driver.probe(device.clone()) { in device_match_driver()
195 device.set_state(DeviceState::Initialized); in device_match_driver()