Searched refs:virtio_input_event (Results 1 – 6 of 6) sorted by relevance
/external/crosvm/linux_input_sys/src/ |
D | lib.rs | 31 fn decode(data: &[u8]) -> virtio_input_event; in decode() argument 46 pub fn from_virtio_input_event(other: &virtio_input_event) -> input_event { in from_virtio_input_event() 59 fn decode(data: &[u8]) -> virtio_input_event { in decode() argument 64 virtio_input_event { in decode() 74 pub struct virtio_input_event { struct 81 unsafe impl DataInit for virtio_input_event {} implementation 83 impl InputEventDecoder for virtio_input_event { implementation 86 fn decode(data: &[u8]) -> virtio_input_event { in decode() argument 88 struct Aligner([u8; virtio_input_event::SIZE]); in decode() 89 let data_aligned = Aligner(*<[u8; virtio_input_event::SIZE]>::from_slice(data).unwrap()); in decode() [all …]
|
/external/crosvm/devices/src/virtio/input/ |
D | event_source.rs | 11 use linux_input_sys::{input_event, virtio_input_event, InputEventDecoder}; 38 fn pop_available_event(&mut self) -> Option<virtio_input_event>; in pop_available_event() argument 40 fn send_event(&mut self, vio_evt: &virtio_input_event) -> Result<()>; in send_event() 46 queue: VecDeque<virtio_input_event>, 96 fn pop_available_event(&mut self) -> Option<virtio_input_event> { in pop_available_event() argument 100 fn send_event(&mut self, vio_evt: &virtio_input_event, encoding: EventType) -> Result<()> { in send_event() argument 147 evt_source_impl: EventSourceImpl::new(source, 16 * virtio_input_event::SIZE), in new() 171 self.evt_source_impl.receive_events::<virtio_input_event>() in receive_events() 178 fn pop_available_event(&mut self) -> Option<virtio_input_event> { in pop_available_event() argument 182 fn send_event(&mut self, vio_evt: &virtio_input_event) -> Result<()> { in send_event() [all …]
|
D | mod.rs | 22 use linux_input_sys::{virtio_input_event, InputEventDecoder}; 359 while writer.available_bytes() >= virtio_input_event::SIZE { in fill_event_virtqueue() 415 while reader.available_bytes() >= virtio_input_event::SIZE { in read_event_virtqueue() 416 let evt: virtio_input_event = reader.read_obj().map_err(InputError::ReadQueue)?; in read_event_virtqueue()
|
/external/crosvm/gpu_display/src/ |
D | event_device.rs | 7 use linux_input_sys::{virtio_input_event, InputEventDecoder}; 13 const EVENT_SIZE: usize = virtio_input_event::SIZE; 96 pub fn send_report<E: IntoIterator<Item = virtio_input_event>>( in send_report() 114 .extend(virtio_input_event::syn().as_slice().iter()); in send_report() 121 pub fn send_event_encoded(&mut self, event: virtio_input_event) -> io::Result<bool> { in send_event_encoded() 140 pub fn recv_event_encoded(&self) -> io::Result<virtio_input_event> { in recv_event_encoded() argument 143 match virtio_input_event::from_slice(&event_bytes) { in recv_event_encoded()
|
D | gpu_display_x.rs | 14 use linux_input_sys::virtio_input_event; 337 events: &[virtio_input_event], in dispatch_to_event_devices() argument 354 let events = &[virtio_input_event::key( in handle_event() 369 virtio_input_event::touch(pressed), in handle_event() 370 virtio_input_event::absolute_x(max(0, button_event.x)), in handle_event() 371 virtio_input_event::absolute_y(max(0, button_event.y)), in handle_event() 379 virtio_input_event::touch(true), in handle_event() 380 virtio_input_event::absolute_x(max(0, motion.x)), in handle_event() 381 virtio_input_event::absolute_y(max(0, motion.y)), in handle_event()
|
/external/kernel-headers/original/uapi/linux/ |
D | virtio_input.h | 70 struct virtio_input_event { struct
|