Lines Matching refs:dyn
57 fn coredump(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in coredump()
66 fn devices(&self) -> Vec<Arc<dyn Device>>; in devices()
69 fn add_device(&self, device: Arc<dyn Device>); in add_device()
72 fn delete_device(&self, device: &Arc<dyn Device>); in delete_device()
83 fn __find_device_by_name_fast(&self, _name: &str) -> Option<Arc<dyn Device>> { in __find_device_by_name_fast()
97 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
101 fn set_bus(&self, bus: Option<Weak<dyn Bus>>); in set_bus()
103 fn groups(&self) -> &'static [&'static dyn AttributeGroup] { in groups()
107 fn dev_groups(&self) -> &'static [&'static dyn AttributeGroup] { in dev_groups()
119 pub devices: Vec<Arc<dyn Device>>,
120 pub bus: Option<Weak<dyn Bus>>,
124 pub fn push_device(&mut self, device: Arc<dyn Device>) { in push_device()
130 pub fn delete_device(&mut self, device: &Arc<dyn Device>) { in delete_device()
135 impl dyn Driver { impl
161 matcher: &dyn DeviceMatcher<T>, in find_device_slow()
163 ) -> Option<Arc<dyn Device>> { in find_device_slow()
174 pub fn find_device_by_name(&self, name: &str) -> Option<Arc<dyn Device>> { in find_device_by_name()
195 pub fn register(&self, driver: Arc<dyn Driver>) -> Result<(), SystemError> { in register()
228 pub fn unregister(&self, driver: &Arc<dyn Driver>) { in unregister()
234 pub fn driver_sysfs_add(&self, dev: &Arc<dyn Device>) -> Result<(), SystemError> { in driver_sysfs_add()
240 let driver_kobj = dev.driver().unwrap() as Arc<dyn KObject>; in driver_sysfs_add()
241 let device_kobj = dev.clone() as Arc<dyn KObject>; in driver_sysfs_add()
270 driver: &Arc<dyn Driver>, in add_groups()
271 groups: &'static [&dyn AttributeGroup], in add_groups()
273 let kobj = driver.clone() as Arc<dyn KObject>; in add_groups()
277 pub fn remove_groups(&self, driver: &Arc<dyn Driver>, groups: &'static [&dyn AttributeGroup]) { in remove_groups()
278 let kobj = driver.clone() as Arc<dyn KObject>; in remove_groups()
290 driver: &Arc<dyn Driver>, in create_attr_file()
291 attr: &'static dyn Attribute, in create_attr_file()
293 let kobj = driver.clone() as Arc<dyn KObject>; in create_attr_file()
305 pub fn remove_attr_file(&self, driver: &Arc<dyn Driver>, attr: &'static dyn Attribute) { in remove_attr_file()
306 let kobj = driver.clone() as Arc<dyn KObject>; in remove_attr_file()
320 fn match_driver(&self, driver: &Arc<dyn Driver>, data: T) -> bool; in match_driver()
329 fn match_driver(&self, driver: &Arc<dyn Driver>, data: &str) -> bool { in match_driver()