Lines Matching refs:driver
8 driver::base::kobject::KObject,
22 driver::{driver_manager, Driver, DriverManager},
74 if dev.driver().is_some() { in do_device_attach()
97 for driver in bus.subsystem().drivers().iter() { in do_device_attach()
98 let r = self.do_device_attach_driver(driver, &mut data); in do_device_attach()
149 driver: &Arc<dyn Driver>, in do_device_attach_driver()
152 if let Some(bus) = driver.bus().and_then(|bus| bus.upgrade()) { in do_device_attach_driver()
153 let r = bus.match_device(&data.dev, driver); in do_device_attach_driver()
170 let async_allowed = driver.allows_async_probing(); in do_device_attach_driver()
176 .probe_device(driver, &data.dev) in do_device_attach_driver()
288 pub fn driver_attach(&self, driver: &Arc<dyn Driver>) -> Result<(), SystemError> { in driver_attach()
289 let bus = driver in driver_attach()
294 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()
333 .match_device(device, driver); in match_device()
348 driver: &Arc<dyn Driver>, in probe_device()
351 let r = self.do_probe_device(driver, device); in probe_device()
358 driver: &Arc<dyn Driver>, in do_probe_device()
364 if device.driver().is_some() { in do_probe_device()
370 self.really_probe(driver, device)?; in do_probe_device()
378 driver: &Arc<dyn Driver>, in really_probe()
403 device.set_driver(Some(Arc::downgrade(driver))); in really_probe()
416 self.call_driver_probe(device, driver).map_err(|e| { in really_probe()
430 .add_groups(device, driver.dev_groups()) in really_probe()
467 let driver = device.driver().ok_or(SystemError::EINVAL)?; in add_to_sysfs() localVariable
477 let driver_kobj = driver.clone() as Arc<dyn KObject>; in add_to_sysfs()
510 driver: &Arc<dyn Driver>, in call_driver_probe()
535 driver.name(), in call_driver_probe()
544 driver.name(), in call_driver_probe()
562 let driver = device.driver().unwrap(); in driver_bound() localVariable
563 driver.add_device(device.clone()); in driver_bound()
577 if let Some(driver) = device.driver() { in driver_is_bound()
578 if driver.find_device_by_name(&device.name()).is_some() { in driver_is_bound()
645 let drv = dev.driver().ok_or(SystemError::EINVAL)?; in store()