Lines Matching refs:kev
29 struct v4l2_kevent *kev; in __v4l2_event_dequeue() local
42 kev = list_first_entry(&fh->available, struct v4l2_kevent, list); in __v4l2_event_dequeue()
43 list_del(&kev->list); in __v4l2_event_dequeue()
46 kev->event.pending = fh->navailable; in __v4l2_event_dequeue()
47 *event = kev->event; in __v4l2_event_dequeue()
48 ts = ns_to_timespec64(kev->ts); in __v4l2_event_dequeue()
51 kev->sev->first = sev_pos(kev->sev, 1); in __v4l2_event_dequeue()
52 kev->sev->in_use--; in __v4l2_event_dequeue()
106 struct v4l2_kevent *kev; in __v4l2_event_queue_fh() local
120 kev = sev->events + sev_pos(sev, 0); in __v4l2_event_queue_fh()
121 list_del(&kev->list); in __v4l2_event_queue_fh()
127 sev->ops->replace(&kev->event, ev); in __v4l2_event_queue_fh()
133 sev->ops->merge(&kev->event, &second_oldest->event); in __v4l2_event_queue_fh()
138 kev = sev->events + sev_pos(sev, sev->in_use); in __v4l2_event_queue_fh()
139 kev->event.type = ev->type; in __v4l2_event_queue_fh()
141 kev->event.u = ev->u; in __v4l2_event_queue_fh()
142 kev->event.id = ev->id; in __v4l2_event_queue_fh()
143 kev->ts = ts; in __v4l2_event_queue_fh()
144 kev->event.sequence = fh->sequence; in __v4l2_event_queue_fh()
146 list_add_tail(&kev->list, &fh->available); in __v4l2_event_queue_fh()