Lines Matching refs:handle
1492 struct uvc_fh *handle, struct uvc_control *ctrl, in uvc_ctrl_send_event() argument
1495 struct v4l2_fh *originator = handle ? &handle->vfh : NULL; in uvc_ctrl_send_event()
1518 struct uvc_fh *handle, struct uvc_control *master, u32 slave_id) in uvc_ctrl_send_slave_event() argument
1532 uvc_ctrl_send_event(chain, handle, ctrl, mapping, val, changes); in uvc_ctrl_send_slave_event()
1539 struct uvc_fh *handle; in uvc_ctrl_status_event() local
1544 handle = ctrl->handle; in uvc_ctrl_status_event()
1545 ctrl->handle = NULL; in uvc_ctrl_status_event()
1558 uvc_ctrl_send_slave_event(chain, handle, ctrl, in uvc_ctrl_status_event()
1562 uvc_ctrl_send_event(chain, handle, ctrl, mapping, value, in uvc_ctrl_status_event()
1597 ctrl->handle = NULL; in uvc_ctrl_status_event_async()
1624 static void uvc_ctrl_send_events(struct uvc_fh *handle, in uvc_ctrl_send_events() argument
1634 ctrl = uvc_find_control(handle->chain, xctrls[i].id, &mapping); in uvc_ctrl_send_events()
1654 uvc_ctrl_send_slave_event(handle->chain, handle, ctrl, in uvc_ctrl_send_events()
1667 uvc_ctrl_send_event(handle->chain, handle, ctrl, mapping, in uvc_ctrl_send_events()
1674 struct uvc_fh *handle = container_of(sev->fh, struct uvc_fh, vfh); in uvc_ctrl_add_event() local
1679 ret = mutex_lock_interruptible(&handle->chain->ctrl_mutex); in uvc_ctrl_add_event()
1683 if (__uvc_query_v4l2_class(handle->chain, sev->id, 0) >= 0) { in uvc_ctrl_add_event()
1688 ctrl = uvc_find_control(handle->chain, sev->id, &mapping); in uvc_ctrl_add_event()
1700 if (__uvc_ctrl_get(handle->chain, ctrl, mapping, &val) == 0) in uvc_ctrl_add_event()
1703 uvc_ctrl_fill_event(handle->chain, &ev, ctrl, mapping, val, in uvc_ctrl_add_event()
1714 mutex_unlock(&handle->chain->ctrl_mutex); in uvc_ctrl_add_event()
1720 struct uvc_fh *handle = container_of(sev->fh, struct uvc_fh, vfh); in uvc_ctrl_del_event() local
1722 mutex_lock(&handle->chain->ctrl_mutex); in uvc_ctrl_del_event()
1723 if (__uvc_query_v4l2_class(handle->chain, sev->id, 0) >= 0) in uvc_ctrl_del_event()
1727 mutex_unlock(&handle->chain->ctrl_mutex); in uvc_ctrl_del_event()
1841 int __uvc_ctrl_commit(struct uvc_fh *handle, int rollback, in __uvc_ctrl_commit() argument
1844 struct uvc_video_chain *chain = handle->chain; in __uvc_ctrl_commit()
1858 uvc_ctrl_send_events(handle, ctrls->controls, ctrls->count); in __uvc_ctrl_commit()
1883 int uvc_ctrl_set(struct uvc_fh *handle, in uvc_ctrl_set() argument
1886 struct uvc_video_chain *chain = handle->chain; in uvc_ctrl_set()
2001 ctrl->handle = handle; in uvc_ctrl_set()