Lines Matching refs:Arc
20 use std::sync::Arc;
68 fail_handle: Arc<dyn FailHandle>,
70 interrupter: Arc<Mutex<Interrupter>>,
71 command_ring_controller: Arc<CommandRingController>,
73 event_loop: Arc<EventLoop>,
79 intr_resample_handler: Arc<IntrResampleHandler>,
87 fail_handle: Arc<dyn FailHandle>, in new()
93 ) -> Result<Arc<Self>> { in new()
97 let interrupter = Arc::new(Mutex::new(Interrupter::new(mem.clone(), irq_evt, ®s))); in new()
98 let event_loop = Arc::new(event_loop); in new()
102 let hub = Arc::new(UsbHub::new(®s, interrupter.clone())); in new()
124 let xhci = Arc::new(Xhci { in new()
139 fn init_reg_callbacks(xhci: &Arc<Xhci>) { in init_reg_callbacks()
142 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()
151 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()
158 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()
167 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()
176 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()
184 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()
192 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()
200 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()
208 let xhci_weak = Arc::downgrade(xhci); in init_reg_callbacks()