Lines Matching refs:Arc
23 use std::sync::Arc;
87 fail_handle: Arc<dyn FailHandle>,
88 hub: Arc<UsbHub>,
89 slots: Vec<Arc<DeviceSlot>>,
94 fail_handle: Arc<dyn FailHandle>, in new()
96 hub: Arc<UsbHub>, in new()
97 interrupter: Arc<Mutex<Interrupter>>, in new()
98 event_loop: Arc<EventLoop>, in new()
103 slots.push(Arc::new(DeviceSlot::new( in new()
120 pub fn slot(&self, slot_id: u8) -> Option<Arc<DeviceSlot>> { in slot()
249 hub: Arc<UsbHub>,
250 interrupter: Arc<Mutex<Interrupter>>,
251 event_loop: Arc<EventLoop>,
254 transfer_ring_controllers: Mutex<Vec<Option<Arc<TransferRingController>>>>,
262 hub: Arc<UsbHub>, in new()
263 interrupter: Arc<Mutex<Interrupter>>, in new()
264 event_loop: Arc<EventLoop>, in new()
281 fn get_trc(&self, i: usize) -> Option<Arc<TransferRingController>> { in get_trc()
286 fn set_trc(&self, i: usize, trc: Option<Arc<TransferRingController>>) { in set_trc()
359 fail_handle: Arc<dyn FailHandle>, in disable()
360 slot: &Arc<DeviceSlot>, in disable()
364 let slot_weak = Arc::downgrade(slot); in disable()
583 fail_handle: Arc<dyn FailHandle>, in reset_slot()
584 slot: &Arc<DeviceSlot>, in reset_slot()
587 let weak_s = Arc::downgrade(&slot); in reset_slot()
620 fail_handle: Arc<dyn FailHandle>, in stop_endpoint()