Lines Matching refs:dyn
45 pub fn device_add(&self, pci_dev: Arc<dyn PciDevice>) -> Result<(), SystemError> { in device_add()
48 pci_dev.set_dev_parent(Some(Arc::downgrade(&(pci_bus_device() as Arc<dyn Device>)))); in device_add()
51 pci_dev.set_bus(Some(Arc::downgrade(&(pci_bus() as Arc<dyn Bus>)))); in device_add()
53 device_manager().device_default_initialize(&(pci_dev.clone() as Arc<dyn Device>)); in device_add()
55 let r = device_manager().add_device(pci_dev.clone() as Arc<dyn Device>); in device_add()
100 pub fn new(parent: Option<Weak<dyn KObject>>) -> Arc<Self> { in new()
125 fn as_any_ref(&self) -> &dyn core::any::Any { in as_any_ref()
129 fn parent(&self) -> Option<alloc::sync::Weak<dyn KObject>> { in parent()
141 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type()
145 fn set_kobj_type(&self, ktype: Option<&'static dyn KObjType>) { in set_kobj_type()
179 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
193 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
197 fn set_bus(&self, bus: Option<alloc::sync::Weak<dyn Bus>>) { in set_bus()
201 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
209 fn set_driver(&self, driver: Option<alloc::sync::Weak<dyn Driver>>) { in set_driver()
221 fn set_class(&self, _class: Option<alloc::sync::Weak<dyn crate::driver::base::class::Class>>) { in set_class()
229 fn dev_parent(&self) -> Option<alloc::sync::Weak<dyn Device>> { in dev_parent()
233 fn set_dev_parent(&self, dev_parent: Option<alloc::sync::Weak<dyn Device>>) { in set_dev_parent()