Home
last modified time | relevance | path

Searched refs:ResourceResponse (Results 1 – 3 of 3) sorted by relevance

/external/crosvm/devices/src/virtio/
Dresource_bridge.rs46 pub enum ResourceResponse { enum
98 Ok(ResourceResponse::Resource(info)) => Ok(info), in get_resource_info()
99 Ok(ResourceResponse::Invalid) => Err(ResourceBridgeError::InvalidResource(request)), in get_resource_info()
/external/crosvm/devices/src/virtio/gpu/
Dvirtio_gpu.rs12 use crate::virtio::resource_bridge::{BufferInfo, PlaneInfo, ResourceInfo, ResourceResponse};
438 pub fn export_resource(&mut self, resource_id: u32) -> ResourceResponse { in export_resource() argument
441 Err(_) => return ResourceResponse::Invalid, in export_resource()
446 Err(_) => return ResourceResponse::Invalid, in export_resource()
449 ResourceResponse::Resource(ResourceInfo::Buffer(BufferInfo { in export_resource()
474 pub fn export_fence(&self, fence_id: u32) -> ResourceResponse { in export_fence() argument
476 Ok(handle) => ResourceResponse::Resource(ResourceInfo::Fence { in export_fence()
479 Err(_) => ResourceResponse::Invalid, in export_fence()
Dmod.rs236 Err(_) => ResourceResponse::Invalid, in process_resource_bridge()