Lines Matching refs:dyn
82 fn dev_groups(&self) -> &'static [&'static dyn AttributeGroup] { in dev_groups()
90 fn probe(&self, device: &Arc<dyn Device>) -> Result<(), SystemError> { in probe()
92 let pci_drv = drv.cast::<dyn PciDriver>().map_err(|_| { in probe()
99 let pci_dev = device.clone().cast::<dyn PciDevice>().map_err(|_| { in probe()
111 fn remove(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in remove()
115 fn sync_state(&self, _device: &Arc<dyn Device>) { in sync_state()
119 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
123 fn resume(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in resume()
129 device: &Arc<dyn Device>, in match_device()
130 driver: &Arc<dyn Driver>, in match_device()
133 let pci_driver = driver.clone().cast::<dyn PciDriver>().map_err(|_| { in match_device()
136 let pci_dev = device.clone().cast::<dyn PciDevice>().map_err(|_| { in match_device()
155 fn root_device(&self) -> Option<Weak<dyn Device>> { in root_device()
156 let root_device = pci_bus_device() as Arc<dyn Device>; in root_device()
169 fn attrs(&self) -> &[&'static dyn crate::filesystem::sysfs::Attribute] { in attrs()
175 _kobj: Arc<dyn crate::driver::base::kobject::KObject>, in is_visible()
176 attr: &'static dyn crate::filesystem::sysfs::Attribute, in is_visible()
184 &(sys_devices_kset() as Arc<dyn KObject>), in pci_bus_subsys_init()
193 let r = bus_register(pci_bus.clone() as Arc<dyn Bus>); in pci_bus_subsys_init()