Lines Matching refs:Arc
3 sync::{Arc, Weak},
29 static mut PCI_BUS_DEVICE: Option<Arc<PciBusDevice>> = None;
30 static mut PCI_BUS: Option<Arc<PciBus>> = None;
32 pub(super) fn set_pci_bus_device(device: Arc<PciBusDevice>) { in set_pci_bus_device()
38 pub(super) fn set_pci_bus(bus: Arc<PciBus>) { in set_pci_bus()
44 pub fn pci_bus_device() -> Arc<PciBusDevice> { in pci_bus_device()
50 pub fn pci_bus() -> Arc<PciBus> { in pci_bus()
65 pub fn new() -> Arc<Self> { in new()
68 let bus = Arc::new(Self { private }); in new()
90 fn probe(&self, device: &Arc<dyn Device>) -> Result<(), SystemError> { in probe()
111 fn remove(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in remove()
115 fn sync_state(&self, _device: &Arc<dyn Device>) { in sync_state()
119 fn shutdown(&self, _device: &Arc<dyn Device>) { in shutdown()
123 fn resume(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in resume()
129 device: &Arc<dyn Device>, in match_device()
130 driver: &Arc<dyn Driver>, in match_device()
156 let root_device = pci_bus_device() as Arc<dyn Device>; in root_device()
157 return Some(Arc::downgrade(&root_device)); in root_device()
175 _kobj: Arc<dyn crate::driver::base::kobject::KObject>, in is_visible()
183 let pci_bus_device: Arc<PciBusDevice> = PciBusDevice::new(Some(Arc::downgrade( in pci_bus_subsys_init()
184 &(sys_devices_kset() as Arc<dyn KObject>), in pci_bus_subsys_init()
193 let r = bus_register(pci_bus.clone() as Arc<dyn Bus>); in pci_bus_subsys_init()