Lines Matching refs:driver
6 driver::base::kobject::KObject,
176 pub fn register(&self, driver: Arc<dyn Driver>) -> Result<(), SystemError> { in register()
177 let bus = driver in register()
184 driver.name() in register()
189 let drv_name = driver.name(); in register()
199 bus_manager().add_driver(&driver)?; in register()
201 self.add_groups(&driver, driver.groups()).map_err(|e| { in register()
202 bus_manager().remove_driver(&driver); in register()
213 pub fn unregister(&self, driver: &Arc<dyn Driver>) { in unregister()
214 self.remove_groups(driver, driver.groups()); in unregister()
215 bus_manager().remove_driver(driver); in unregister()
225 driver: &Arc<dyn Driver>, in add_groups()
228 let kobj = driver.clone() as Arc<dyn KObject>; in add_groups()
232 pub fn remove_groups(&self, driver: &Arc<dyn Driver>, groups: &'static [&dyn AttributeGroup]) { in remove_groups()
233 let kobj = driver.clone() as Arc<dyn KObject>; in remove_groups()
245 driver: &Arc<dyn Driver>, in create_attr_file()
248 let kobj = driver.clone() as Arc<dyn KObject>; in create_attr_file()
260 pub fn remove_attr_file(&self, driver: &Arc<dyn Driver>, attr: &'static dyn Attribute) { in remove_attr_file()
261 let kobj = driver.clone() as Arc<dyn KObject>; in remove_attr_file()
275 fn match_driver(&self, driver: &Arc<dyn Driver>, data: T) -> bool; in match_driver()
284 fn match_driver(&self, driver: &Arc<dyn Driver>, data: &str) -> bool { in match_driver()
285 driver.name() == data in match_driver()