Lines Matching refs:Arc
3 sync::{Arc, Weak},
33 pub fn new() -> Arc<Self> { in new()
36 let bus = Arc::new(Self { private }); in new()
38 .set_bus(Some(Arc::downgrade(&(bus.clone() as Arc<dyn Bus>)))); in new()
61 fn probe(&self, device: &Arc<dyn Device>) -> Result<(), SystemError> { in probe()
79 fn remove(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in remove()
83 fn sync_state(&self, _device: &Arc<dyn Device>) { in sync_state()
87 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
91 fn resume(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in resume()
122 device: &Arc<dyn Device>, in match_device()
123 driver: &Arc<dyn Driver>, in match_device()
148 let root_device = platform_bus_device() as Arc<dyn Device>; in root_device()
149 return Some(Arc::downgrade(&root_device)); in root_device()
166 fn is_visible(&self, _kobj: Arc<dyn KObject>, attr: &dyn Attribute) -> Option<ModeType> { in is_visible()