• Home
  • Raw
  • Download

Lines Matching refs:video

732 struct uvc_control *uvc_find_control(struct uvc_video_device *video,  in uvc_find_control()  argument
745 __uvc_find_control(video->processing, v4l2_id, mapping, &ctrl, next); in uvc_find_control()
749 list_for_each_entry(entity, &video->iterms, chain) { in uvc_find_control()
755 list_for_each_entry(entity, &video->extensions, chain) { in uvc_find_control()
768 int uvc_query_v4l2_ctrl(struct uvc_video_device *video, in uvc_query_v4l2_ctrl() argument
778 ctrl = uvc_find_control(video, v4l2_ctrl->id, &mapping); in uvc_query_v4l2_ctrl()
796 if ((ret = uvc_query_ctrl(video->dev, GET_DEF, ctrl->entity->id, in uvc_query_v4l2_ctrl()
797 video->dev->intfnum, ctrl->info->selector, in uvc_query_v4l2_ctrl()
832 if ((ret = uvc_query_ctrl(video->dev, GET_MIN, ctrl->entity->id, in uvc_query_v4l2_ctrl()
833 video->dev->intfnum, ctrl->info->selector, in uvc_query_v4l2_ctrl()
839 if ((ret = uvc_query_ctrl(video->dev, GET_MAX, ctrl->entity->id, in uvc_query_v4l2_ctrl()
840 video->dev->intfnum, ctrl->info->selector, in uvc_query_v4l2_ctrl()
846 if ((ret = uvc_query_ctrl(video->dev, GET_RES, ctrl->entity->id, in uvc_query_v4l2_ctrl()
847 video->dev->intfnum, ctrl->info->selector, in uvc_query_v4l2_ctrl()
884 int uvc_ctrl_begin(struct uvc_video_device *video) in uvc_ctrl_begin() argument
886 return mutex_lock_interruptible(&video->ctrl_mutex) ? -ERESTARTSYS : 0; in uvc_ctrl_begin()
936 int __uvc_ctrl_commit(struct uvc_video_device *video, int rollback) in __uvc_ctrl_commit() argument
942 ret = uvc_ctrl_commit_entity(video->dev, video->processing, rollback); in __uvc_ctrl_commit()
946 list_for_each_entry(entity, &video->iterms, chain) { in __uvc_ctrl_commit()
947 ret = uvc_ctrl_commit_entity(video->dev, entity, rollback); in __uvc_ctrl_commit()
952 list_for_each_entry(entity, &video->extensions, chain) { in __uvc_ctrl_commit()
953 ret = uvc_ctrl_commit_entity(video->dev, entity, rollback); in __uvc_ctrl_commit()
959 mutex_unlock(&video->ctrl_mutex); in __uvc_ctrl_commit()
963 int uvc_ctrl_get(struct uvc_video_device *video, in uvc_ctrl_get() argument
972 ctrl = uvc_find_control(video, xctrl->id, &mapping); in uvc_ctrl_get()
977 ret = uvc_query_ctrl(video->dev, GET_CUR, ctrl->entity->id, in uvc_ctrl_get()
978 video->dev->intfnum, ctrl->info->selector, in uvc_ctrl_get()
1003 int uvc_ctrl_set(struct uvc_video_device *video, in uvc_ctrl_set() argument
1011 ctrl = uvc_find_control(video, xctrl->id, &mapping); in uvc_ctrl_set()
1026 ret = uvc_query_ctrl(video->dev, GET_CUR, in uvc_ctrl_set()
1027 ctrl->entity->id, video->dev->intfnum, in uvc_ctrl_set()
1056 int uvc_xu_ctrl_query(struct uvc_video_device *video, in uvc_xu_ctrl_query() argument
1066 list_for_each_entry(entity, &video->extensions, chain) { in uvc_xu_ctrl_query()
1105 if (mutex_lock_interruptible(&video->ctrl_mutex)) in uvc_xu_ctrl_query()
1118 ret = uvc_query_ctrl(video->dev, set ? SET_CUR : GET_CUR, xctrl->unit, in uvc_xu_ctrl_query()
1119 video->dev->intfnum, xctrl->selector, data, in uvc_xu_ctrl_query()
1135 mutex_unlock(&video->ctrl_mutex); in uvc_xu_ctrl_query()