Lines Matching refs:dyn
38 .set_bus(Some(Arc::downgrade(&(bus.clone() as Arc<dyn Bus>)))); in new()
53 fn dev_groups(&self) -> &'static [&'static dyn AttributeGroup] { in dev_groups()
61 fn probe(&self, device: &Arc<dyn Device>) -> Result<(), SystemError> { in probe()
63 let pdrv = drv.cast::<dyn PlatformDriver>().map_err(|_|{ in probe()
68 let pdev = device.clone().cast::<dyn PlatformDevice>().map_err(|_| { in probe()
79 fn remove(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in remove()
83 fn sync_state(&self, _device: &Arc<dyn Device>) { in sync_state()
87 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
91 fn resume(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in resume()
122 device: &Arc<dyn Device>, in match_device()
123 driver: &Arc<dyn Driver>, in match_device()
136 .cast::<dyn PlatformDevice>() in match_device()
147 fn root_device(&self) -> Option<Weak<dyn Device>> { in root_device()
148 let root_device = platform_bus_device() as Arc<dyn Device>; in root_device()
161 fn attrs(&self) -> &[&'static dyn Attribute] { in attrs()
166 fn is_visible(&self, _kobj: Arc<dyn KObject>, attr: &dyn Attribute) -> Option<ModeType> { in is_visible()