Lines Matching refs:driver

7     driver::base::kobject::KObject,
21 driver::{driver_manager, Driver, DriverManager},
73 if dev.driver().is_some() { in do_device_attach()
92 for driver in bus.subsystem().drivers().iter() { in do_device_attach()
93 let r = self.do_device_attach_driver(&driver, &mut data); in do_device_attach()
145 driver: &Arc<dyn Driver>, in do_device_attach_driver()
148 if let Some(bus) = driver.bus().map(|bus| bus.upgrade()).flatten() { in do_device_attach_driver()
149 let r = bus.match_device(&data.dev, driver); in do_device_attach_driver()
168 let async_allowed = driver.allows_async_probing(); in do_device_attach_driver()
174 .probe_device(driver, &data.dev) in do_device_attach_driver()
188 if dev.driver().is_some() { in device_is_bound()
285 pub fn driver_attach(&self, driver: &Arc<dyn Driver>) -> Result<(), SystemError> { in driver_attach()
286 let bus = driver in driver_attach()
292 if self.do_driver_attach(&dev, &driver) { in driver_attach()
302 fn do_driver_attach(&self, device: &Arc<dyn Device>, driver: &Arc<dyn Driver>) -> bool { in do_driver_attach()
303 let r = self.match_device(driver, device).unwrap_or(false); in do_driver_attach()
309 if driver.allows_async_probing() { in do_driver_attach()
312 driver.name() in do_driver_attach()
316 if self.probe_device(driver, device).is_err() { in do_driver_attach()
326 driver: &Arc<dyn Driver>, in match_device()
329 return driver in match_device()
334 .match_device(device, driver); in match_device()
349 driver: &Arc<dyn Driver>, in probe_device()
352 let r = self.do_probe_device(driver, device); in probe_device()
359 driver: &Arc<dyn Driver>, in do_probe_device()
365 if device.driver().is_some() { in do_probe_device()
371 self.really_probe(driver, device)?; in do_probe_device()
379 driver: &Arc<dyn Driver>, in really_probe()
404 device.set_driver(Some(Arc::downgrade(driver))); in really_probe()
417 self.call_driver_probe(device, driver).map_err(|e| { in really_probe()
431 .add_groups(device, driver.dev_groups()) in really_probe()
468 let driver = device.driver().ok_or(SystemError::EINVAL)?; in add_to_sysfs() localVariable
478 let driver_kobj = driver.clone() as Arc<dyn KObject>; in add_to_sysfs()
513 driver: &Arc<dyn Driver>, in call_driver_probe()
539 driver.name(), in call_driver_probe()
548 driver.name(), in call_driver_probe()
566 let driver = device.driver().unwrap(); in driver_bound() localVariable
567 driver.add_device(device.clone()); in driver_bound()
581 if let Some(driver) = device.driver() { in driver_is_bound()
582 if driver.find_device_by_name(&device.name()).is_some() { in driver_is_bound()
649 let drv = dev.driver().ok_or(SystemError::EINVAL)?; in store()