Lines Matching refs:dyn
36 bus: SpinLock<Option<Weak<dyn Bus>>>,
38 class: SpinLock<Option<Weak<dyn Class>>>,
41 devices: RwLock<Vec<Arc<dyn Device>>>,
43 drivers: RwLock<Vec<Arc<dyn Driver>>>,
44 interfaces: &'static [&'static dyn SubSysInterface],
45 bus_notifier: AtomicNotifierChain<BusNotifyEvent, Arc<dyn Device>>,
68 bus: Option<Weak<dyn Bus>>, in new()
69 class: Option<Weak<dyn Class>>, in new()
70 interfaces: &'static [&'static dyn SubSysInterface], in new()
96 pub fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
100 pub fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
106 pub fn class(&self) -> Option<Weak<dyn Class>> { in class()
116 pub fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
120 pub fn devices(&self) -> RwLockReadGuard<Vec<Arc<dyn Device>>> { in devices()
124 pub fn drivers(&self) -> RwLockReadGuard<Vec<Arc<dyn Driver>>> { in drivers()
159 pub fn bus_notifier(&self) -> &AtomicNotifierChain<BusNotifyEvent, Arc<dyn Device>> { in bus_notifier()
163 pub fn interfaces(&self) -> &'static [&'static dyn SubSysInterface] { in interfaces()
167 pub fn add_driver_to_vec(&self, driver: &Arc<dyn Driver>) -> Result<(), SystemError> { in add_driver_to_vec()
176 pub fn remove_driver_from_vec(&self, driver: &Arc<dyn Driver>) { in remove_driver_from_vec()
184 pub fn add_device_to_vec(&self, device: &Arc<dyn Device>) -> Result<(), SystemError> { in add_device_to_vec()
194 pub fn remove_device_from_vec(&self, device: &Arc<dyn Device>) { in remove_device_from_vec()
206 fn bus(&self) -> Option<Weak<dyn Bus>>; in bus()
207 fn set_bus(&self, bus: Option<Weak<dyn Bus>>); in set_bus()
208 fn add_device(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in add_device()
211 fn remove_device(&self, device: &Arc<dyn Device>); in remove_device()