Lines Matching refs:Arc
3 sync::{Arc, Weak},
33 pub fn new() -> Arc<I8042Driver> { in new()
34 let r = Arc::new(Self { in new()
47 r.inner.lock().self_ref = Arc::downgrade(&r); in new()
56 kset: Option<Arc<KSet>>,
58 kernfs_inode: Option<Arc<KernFSInode>>,
59 devices: Vec<Arc<dyn Device>>,
67 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in probe()
81 fn remove(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in remove()
86 fn shutdown(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in shutdown()
90 fn suspend(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in suspend()
95 fn resume(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in resume()
106 fn devices(&self) -> Vec<Arc<dyn Device>> { in devices()
110 fn add_device(&self, device: Arc<dyn Device>) { in add_device()
113 if guard.devices.iter().any(|dev| Arc::ptr_eq(dev, &device)) { in add_device()
120 fn delete_device(&self, device: &Arc<dyn Device>) { in delete_device()
122 guard.devices.retain(|dev| !Arc::ptr_eq(dev, device)); in delete_device()
139 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
143 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
155 fn kset(&self) -> Option<Arc<KSet>> { in kset()
159 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset()