/external/crosvm/base/src/ |
D | tube.rs | 43 pub struct Tube { struct 48 impl Tube { impl 51 pub fn pair() -> Result<(Tube, Tube)> { in pair() 53 let tube1 = Tube::new(socket1); in pair() 54 let tube2 = Tube::new(socket2); in pair() 59 pub fn new(socket: UnixSeqpacket) -> Tube { in new() argument 60 Tube { in new() 127 impl AsRawDescriptor for Tube { implementation 133 impl AsRawFd for Tube { implementation 139 impl IntoAsync for Tube {} implementation [all …]
|
D | lib.rs | 32 pub use tube::{AsyncTube, Error as TubeError, Result as TubeResult, Tube};
|
/external/crosvm/devices/src/ |
D | proxy.rs | 11 use base::{error, AsRawDescriptor, RawDescriptor, Tube, TubeError}; 23 Tube(TubeError), enumerator 33 Tube(e) => write!(f, "Failed to configure tube: {}.", e), in fmt() 71 fn child_proc<D: BusDevice>(tube: Tube, device: &mut D) { in child_proc() argument 129 tube: Tube, 150 let (child_tube, parent_tube) = Tube::pair().map_err(Error::Tube)?; in new() 181 .map_err(Error::Tube)?; in new() 184 .map_err(Error::Tube)?; in new()
|
D | bat.rs | 8 error, warn, AsRawDescriptor, Descriptor, Event, PollToken, RawDescriptor, Tube, WaitContext, 108 tube: Option<Tube>, 145 tube: Tube, in command_monitor() argument 311 tube: Tube, in new() argument
|
/external/crosvm/x86_64/src/ |
D | test_integration.rs | 21 use base::{Event, Tube}; 32 VmMemory(Tube), 33 VmIrq(Tube), 80 FI: FnOnce(V, /* vcpu_count: */ usize, Tube) -> I, in simple_vm_test() 104 let (irqchip_tube, device_tube) = Tube::pair().expect("failed to create irq tube"); in simple_vm_test() 117 let (disk_host_tube, disk_device_tube) = Tube::pair().unwrap(); in simple_vm_test() 121 let (gpu_host_tube, _gpu_device_tube) = Tube::pair().unwrap(); in simple_vm_test()
|
/external/crosvm/src/ |
D | linux.rs | 351 Fs(Tube), 352 Vm(Tube), 353 VmMemory(Tube), 354 VmIrq(Tube), 355 VmMsync(Tube), 358 impl AsRef<Tube> for TaggedControlTube { 359 fn as_ref(&self) -> &Tube { in as_ref() argument 493 fn create_block_device(cfg: &Config, disk: &DiskOption, disk_device_tube: Tube) -> DeviceResult { in create_block_device() 762 fn create_balloon_device(cfg: &Config, tube: Tube) -> DeviceResult { in create_balloon_device() 855 gpu_device_tube: Tube, in create_gpu_device() argument [all …]
|
D | gdb.rs | 9 use base::{error, info, Tube, TubeError}; 92 vm_tube: Mutex<Tube>, 101 vm_tube: Tube, in new() argument
|
/external/crosvm/devices/src/usb/host_backend/ |
D | host_backend_device_provider.rs | 14 use base::{error, AsRawDescriptor, Descriptor, RawDescriptor, Tube, WatchingEvents}; 30 Created { control_tube: Mutex<Tube> }, 38 pub fn new() -> Result<(Tube, HostBackendDeviceProvider)> { in new() 39 let (child_tube, control_tube) = Tube::pair().map_err(Error::CreateControlTube)?; in new() 123 control_tube: Mutex<Tube>, 140 control_tube: Mutex<Tube>, in new() argument
|
/external/crosvm/devices/src/virtio/fs/ |
D | worker.rs | 11 use base::{error, Event, PollToken, SafeDescriptor, Tube, WaitContext}; 48 tube: Arc<Mutex<Tube>>, 53 fn new(tube: Arc<Mutex<Tube>>, slot: u32) -> Self { in new() argument 132 tube: Arc<Mutex<Tube>>, 142 tube: Arc<Mutex<Tube>>, in new() argument
|
D | mod.rs | 11 use base::{error, warn, AsRawDescriptor, Error as SysError, Event, RawDescriptor, Tube}; 135 tube: Option<Tube>, 145 tube: Tube, in new() argument
|
/external/crosvm/devices/src/virtio/ |
D | balloon.rs | 15 use base::{self, error, info, warn, AsRawDescriptor, AsyncTube, Event, RawDescriptor, Tube}; 194 command_tube: &Tube, in handle_stats_queue() argument 308 command_tube: Tube, in run_worker() argument 313 ) -> Tube { in run_worker() argument 388 command_tube: Option<Tube>, 392 worker_thread: Option<thread::JoinHandle<Tube>>, 397 pub fn new(base_features: u64, command_tube: Tube) -> Result<Balloon> { in new()
|
D | pmem.rs | 10 use base::{error, AsRawDescriptor, Event, PollToken, RawDescriptor, Tube, WaitContext}; 86 pmem_device_tube: Tube, 234 pmem_device_tube: Option<Tube>, 244 pmem_device_tube: Option<Tube>, in new() argument
|
D | resource_bridge.rs | 13 use base::{with_as_descriptor, Tube, TubeError}; 90 tube: &Tube, in get_resource_info() argument
|
D | wl.rs | 56 Tube, TubeError, WaitContext, 335 inner: Rc<Tube>, 339 fn new(vm_socket: Tube) -> VmRequester { in new() 871 resource_bridge: Option<Tube>, 888 vm_tube: Tube, in new() argument 891 resource_bridge: Option<Tube>, in new() argument 1480 vm_tube: Tube, in new() argument 1483 resource_bridge: Option<Tube>, in new() argument 1672 vm_socket: Option<Tube>, 1673 resource_bridge: Option<Tube>, [all …]
|
/external/crosvm/devices/src/virtio/video/ |
D | device.rs | 7 use base::{PollToken, Tube, WaitContext}; 104 resource_bridge: &Tube, in process_cmd() argument
|
D | mod.rs | 13 use base::{error, AsRawDescriptor, Error as SysError, Event, RawDescriptor, Tube}; 94 resource_bridge: Option<Tube>, 102 resource_bridge: Option<Tube>, in new() argument
|
D | worker.rs | 9 use base::{error, info, Event, Tube, WaitContext}; 29 pub resource_bridge: Tube,
|
/external/crosvm/devices/src/virtio/vhost/ |
D | worker.rs | 7 use base::{error, Error as SysError, Event, PollToken, Tube, WaitContext}; 23 pub response_tube: Option<Tube>, 34 response_tube: Option<Tube>, in new() argument
|
D | net.rs | 12 use base::{error, warn, AsRawDescriptor, Event, RawDescriptor, Tube}; 36 request_tube: Tube, 37 response_tube: Option<Tube>, 94 let (request_tube, response_tube) = Tube::pair().map_err(Error::CreateTube)?; in new()
|
/external/crosvm/devices/src/pci/ |
D | vfio_pci.rs | 10 RawDescriptor, Tube, 129 vm_socket_irq: Tube, 135 fn new(config: &VfioPciConfig, msi_cap_start: u32, vm_socket_irq: Tube) -> Self { in new() 319 fn new(config: &VfioPciConfig, msix_cap_start: u32, vm_socket_irq: Tube) -> Self { in new() 450 vm_socket_mem: Tube, 461 vfio_device_socket_msi: Tube, in new() argument 462 vfio_device_socket_msix: Tube, in new() argument 463 vfio_device_socket_mem: Tube, in new() argument
|
D | msix.rs | 6 use base::{error, AsRawDescriptor, Error as SysError, Event, RawDescriptor, Tube, TubeError}; 58 msi_device_socket: Tube, 97 pub fn new(msix_vectors: u16, vm_socket: Tube) -> Self { in new()
|
/external/crosvm/arch/src/ |
D | lib.rs | 20 use base::{syslog, AsRawDescriptor, Event, Tube}; 93 pub gdb: Option<(u32, Tube)>, // port and control tube. 117 pub gdb: Option<(u32, Tube)>, 442 ) -> Result<Tube, DeviceRegistrationError> { in add_goldfish_battery() argument 462 Tube::pair().map_err(DeviceRegistrationError::CreateTube)?; in add_goldfish_battery()
|
/external/crosvm/devices/src/virtio/gpu/ |
D | mod.rs | 25 RawDescriptor, Tube, WaitContext, 125 gpu_device_tube: Tube, in build() argument 228 fn process_resource_bridge(&mut self, resource_bridge: &Tube) { in process_resource_bridge() argument 685 resource_bridges: Vec<Tube>, 872 gpu_device_tube: Option<Tube>, 873 resource_bridges: Vec<Tube>, 895 gpu_device_tube: Option<Tube>, in new() argument 897 resource_bridges: Vec<Tube>, in new() argument
|
/external/crosvm/vm_control/src/ |
D | client.rs | 5 use base::{info, net::UnixSeqpacket, validate_raw_descriptor, RawDescriptor, Tube}; 187 let socket = Tube::new(s); in handle_request()
|
/external/crosvm/devices/src/virtio/video/decoder/ |
D | mod.rs | 12 use base::{error, IntoRawDescriptor, Tube, WaitContext}; 259 res_bridge: &Tube, in get_resource_info() argument 531 resource_bridge: &Tube, in queue_input_resource() argument 595 resource_bridge: &Tube, in queue_output_resource() argument 816 resource_bridge: &Tube, in process_cmd() argument
|