Lines Matching refs:event
129 struct vtinput_event event; member
200 struct vtinput_event event; in pci_vtinput_notify_statusq() local
201 memcpy(&event, iov.iov_base, sizeof(event)); in pci_vtinput_notify_statusq()
214 if (event.type == EV_MSC) { in pci_vtinput_notify_statusq()
215 vq_relchain(vq, req.idx, sizeof(event)); in pci_vtinput_notify_statusq()
221 host_event.type = event.type; in pci_vtinput_notify_statusq()
222 host_event.code = event.code; in pci_vtinput_notify_statusq()
223 host_event.value = event.value; in pci_vtinput_notify_statusq()
231 vq_relchain(vq, req.idx, sizeof(event)); in pci_vtinput_notify_statusq()
487 struct vtinput_event *event = &queue->events[queue->idx].event; in vtinput_eventqueue_add_event() local
488 event->type = e->type; in vtinput_eventqueue_add_event()
489 event->code = e->code; in vtinput_eventqueue_add_event()
490 event->value = e->value; in vtinput_eventqueue_add_event()
559 struct vtinput_event_elem event = queue->events[i]; in vtinput_eventqueue_send_events() local
560 memcpy(event.iov.iov_base, &event.event, in vtinput_eventqueue_send_events()
562 vq_relchain(vq, event.idx, sizeof(struct vtinput_event)); in vtinput_eventqueue_send_events()
571 vtinput_read_event_from_host(int fd, struct input_event *event) in vtinput_read_event_from_host() argument
573 const int len = read(fd, event, sizeof(struct input_event)); in vtinput_read_event_from_host()
598 struct input_event event; in vtinput_read_event() local
599 while (vtinput_read_event_from_host(sc->vsc_fd, &event) == 0) { in vtinput_read_event()
601 vtinput_eventqueue_add_event(&sc->vsc_eventqueue, &event); in vtinput_read_event()
604 if (event.type != EV_SYN || event.type != SYN_REPORT) { in vtinput_read_event()