Lines Matching refs:Arc

13     sync::{Arc, Weak},
33 subsys: Arc<KSet>,
41 devices: RwLock<Vec<Arc<dyn Device>>>,
43 drivers: RwLock<Vec<Arc<dyn Driver>>>,
45 bus_notifier: AtomicNotifierChain<BusNotifyEvent, Arc<dyn Device>>,
51 devices_kset: Option<Arc<KSet>>,
53 drivers_kset: Option<Arc<KSet>>,
90 pub fn subsys(&self) -> Arc<KSet> { in subsys()
120 pub fn devices(&self) -> RwLockReadGuard<Vec<Arc<dyn Device>>> { in devices()
124 pub fn drivers(&self) -> RwLockReadGuard<Vec<Arc<dyn Driver>>> { in drivers()
139 pub fn devices_kset(&self) -> Option<Arc<KSet>> { in devices_kset()
145 pub fn set_devices_kset(&self, devices_kset: Arc<KSet>) { in set_devices_kset()
151 pub fn drivers_kset(&self) -> Option<Arc<KSet>> { in drivers_kset()
155 pub fn set_drivers_kset(&self, drivers_kset: Arc<KSet>) { in set_drivers_kset()
159 pub fn bus_notifier(&self) -> &AtomicNotifierChain<BusNotifyEvent, Arc<dyn Device>> { in bus_notifier()
167 pub fn add_driver_to_vec(&self, driver: &Arc<dyn Driver>) -> Result<(), SystemError> { in add_driver_to_vec()
169 if drivers.iter().any(|d| Arc::ptr_eq(d, driver)) { in add_driver_to_vec()
176 pub fn remove_driver_from_vec(&self, driver: &Arc<dyn Driver>) { in remove_driver_from_vec()
178 let index = drivers.iter().position(|d| Arc::ptr_eq(d, 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()
186 if devices.iter().any(|d| Arc::ptr_eq(d, device)) { in add_device_to_vec()
194 pub fn remove_device_from_vec(&self, device: &Arc<dyn Device>) { in remove_device_from_vec()
196 let index = devices.iter().position(|d| Arc::ptr_eq(d, device)); in remove_device_from_vec()
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()