Lines Matching refs:rc_transfer
107 let mut rc_transfer = Arc::new(transfer); in submit_transfer() localVariable
115 let raw_transfer = (&*rc_transfer) as *const Transfer as usize; in submit_transfer()
116 match Arc::get_mut(&mut rc_transfer) { in submit_transfer()
124 let _ = Arc::into_raw(rc_transfer.clone()); in submit_transfer()
126 let urb_ptr = rc_transfer.urb.as_ptr() as *mut usb_sys::usbdevfs_urb; in submit_transfer()
134 let weak_transfer = Arc::downgrade(&rc_transfer); in submit_transfer()
168 let rc_transfer: Arc<Transfer> = in poll_transfers() localVariable
173 let mut transfer = Arc::try_unwrap(rc_transfer).map_err(|_| Error::RcUnwrapFailed)?; in poll_transfers()
429 let rc_transfer = match self.weak_transfer.upgrade() { in cancel() localVariable
431 Some(rc_transfer) => rc_transfer, in cancel()
434 let urb_ptr = rc_transfer.urb.as_ptr() as *mut usb_sys::usbdevfs_urb; in cancel()