Home
last modified time | relevance | path

Searched refs:UsbTransfer (Results 1 – 5 of 5) sorted by relevance

/external/crosvm/usb_util/src/
Dusb_transfer.rs133 type UsbTransferCompletionCallback<T> = dyn Fn(UsbTransfer<T>) + Send + 'static;
186 pub struct UsbTransfer<T: UsbTransferBuffer> { struct
191 pub fn control_transfer(timeout: u32) -> UsbTransfer<ControlTransferBuffer> { in control_transfer()
192 UsbTransfer::<ControlTransferBuffer>::new( in control_transfer()
201 pub fn bulk_transfer(endpoint: u8, timeout: u32, size: usize) -> UsbTransfer<BulkTransferBuffer> { in bulk_transfer()
202 UsbTransfer::<BulkTransferBuffer>::new( in bulk_transfer()
215 ) -> UsbTransfer<BulkTransferBuffer> { in interrupt_transfer()
216 UsbTransfer::<BulkTransferBuffer>::new( in interrupt_transfer()
224 impl<T: UsbTransferBuffer> UsbTransfer<T> { impl
240 raw_transfer.callback = Some(UsbTransfer::<T>::on_transfer_completed); in new()
[all …]
Ddevice_handle.rs11 use crate::usb_transfer::{UsbTransfer, UsbTransferBuffer};
144 transfer: UsbTransfer<T>, in submit_async_transfer()
/external/crosvm/devices/src/usb/host_backend/
Dusb_endpoint.rs21 bulk_transfer, interrupt_transfer, BulkTransferBuffer, TransferStatus, UsbTransfer,
127 mut usb_transfer: UsbTransfer<BulkTransferBuffer>, in do_handle_transfer()
144 let callback = move |t: UsbTransfer<BulkTransferBuffer>| { in do_handle_transfer()
172 move |t: UsbTransfer<BulkTransferBuffer>| match callback(t) { in do_handle_transfer()
195 let callback = move |t: UsbTransfer<BulkTransferBuffer>| { in do_handle_transfer()
234 move |t: UsbTransfer<BulkTransferBuffer>| match callback(t) { in do_handle_transfer()
Dutils.rs15 use usb_util::usb_transfer::{TransferStatus, UsbTransfer, UsbTransferBuffer};
20 usb_transfer: &UsbTransfer<T>, in update_transfer_state()
52 usb_transfer: UsbTransfer<T>, in submit_transfer()
Dhost_device.rs27 control_transfer, ControlTransferBuffer, TransferStatus, UsbTransfer,
194 let callback = move |t: UsbTransfer<ControlTransferBuffer>| { in execute_control_transfer()
235 move |t: UsbTransfer<ControlTransferBuffer>| match callback(t) { in execute_control_transfer()