Lines Matching refs:ev
1203 static void fill_event(struct v4l2_event *ev, struct v4l2_ctrl *ctrl, u32 changes) in fill_event() argument
1205 memset(ev->reserved, 0, sizeof(ev->reserved)); in fill_event()
1206 ev->type = V4L2_EVENT_CTRL; in fill_event()
1207 ev->id = ctrl->id; in fill_event()
1208 ev->u.ctrl.changes = changes; in fill_event()
1209 ev->u.ctrl.type = ctrl->type; in fill_event()
1210 ev->u.ctrl.flags = ctrl->flags; in fill_event()
1212 ev->u.ctrl.value64 = 0; in fill_event()
1214 ev->u.ctrl.value64 = *ctrl->p_cur.p_s64; in fill_event()
1215 ev->u.ctrl.minimum = ctrl->minimum; in fill_event()
1216 ev->u.ctrl.maximum = ctrl->maximum; in fill_event()
1219 ev->u.ctrl.step = 1; in fill_event()
1221 ev->u.ctrl.step = ctrl->step; in fill_event()
1222 ev->u.ctrl.default_value = ctrl->default_value; in fill_event()
1227 struct v4l2_event ev; in send_event() local
1232 fill_event(&ev, ctrl, changes); in send_event()
1237 v4l2_event_queue_fh(sev->fh, &ev); in send_event()
3362 struct v4l2_event ev; in v4l2_ctrl_add_event() local
3367 fill_event(&ev, ctrl, changes); in v4l2_ctrl_add_event()
3371 v4l2_event_queue_fh(sev->fh, &ev); in v4l2_ctrl_add_event()