Searched refs:UsbControlResult (Results 1 – 5 of 5) sorted by relevance
/external/crosvm/devices/src/usb/host_backend/ |
D | host_backend_device_provider.rs | 21 UsbControlAttachedDevice, UsbControlCommand, UsbControlResult, USB_CONTROL_MAX_PORTS, 155 fn handle_attach_device(&self, usb_file: File) -> UsbControlResult { in handle_attach_device() argument 160 return UsbControlResult::NoSuchDevice; in handle_attach_device() 178 return UsbControlResult::FailedToOpenDevice; in handle_attach_device() 201 UsbControlResult::Ok { port } in handle_attach_device() 205 UsbControlResult::NoAvailablePort in handle_attach_device() 210 fn handle_detach_device(&self, port: u8) -> UsbControlResult { in handle_detach_device() argument 225 UsbControlResult::Ok { port } in handle_detach_device() 229 UsbControlResult::NoSuchDevice in handle_detach_device() 234 fn handle_list_devices(&self, ports: [u8; USB_CONTROL_MAX_PORTS]) -> UsbControlResult { in handle_list_devices() argument [all …]
|
/external/crosvm/vm_control/src/ |
D | client.rs | 34 UsbControl(UsbControlResult), 99 ) -> ModifyUsbResult<UsbControlResult> { in do_usb_attach() argument 109 .map_err(|_| ModifyUsbError::UsbControl(UsbControlResult::FailedToOpenDevice))? in do_usb_attach() 127 pub fn do_usb_detach(socket_path: &Path, port: u8) -> ModifyUsbResult<UsbControlResult> { in do_usb_detach() argument 137 pub fn do_usb_list(socket_path: &Path) -> ModifyUsbResult<UsbControlResult> { in do_usb_list() argument
|
D | lib.rs | 229 pub enum UsbControlResult { enum 238 impl Display for UsbControlResult { implementation 240 use self::UsbControlResult::*; in fmt() 243 UsbControlResult::Ok { port } => write!(f, "ok {}", port), in fmt() 1115 UsbResponse(UsbControlResult),
|
/external/crosvm/libcrosvm_control/src/ |
D | lib.rs | 17 UsbControlResult, VmRequest, VmResponse, 132 if let Ok(UsbControlResult::Devices(res)) = do_usb_list(&socket_path) { in crosvm_client_usb_list() 185 if let Ok(UsbControlResult::Ok { port }) = in crosvm_client_usb_attach()
|
/external/crosvm/src/ |
D | main.rs | 42 BalloonControlCommand, BatteryType, DiskControlCommand, UsbControlResult, VmRequest, 2233 fn usb_attach(mut args: std::env::Args) -> ModifyUsbResult<UsbControlResult> { in usb_attach() argument 2251 fn usb_detach(mut args: std::env::Args) -> ModifyUsbResult<UsbControlResult> { in usb_detach() argument 2265 fn usb_list(mut args: std::env::Args) -> ModifyUsbResult<UsbControlResult> { in usb_list() argument
|