Lines Matching refs:ref

26 	struct v4l2_ctrl_ref *ref;  member
84 struct v4l2_ctrl_ref *ref) in req_to_user() argument
86 return ptr_to_user(c, ref->ctrl, ref->p_req); in req_to_user()
241 struct v4l2_ctrl_ref *ref; in prepare_ext_ctrls() local
266 ref = find_ref_lock(hdl, id); in prepare_ext_ctrls()
267 if (!ref) { in prepare_ext_ctrls()
271 h->ref = ref; in prepare_ext_ctrls()
272 ctrl = ref->ctrl; in prepare_ext_ctrls()
290 ref = find_ref_lock(hdl, ctrl->cluster[0]->id); in prepare_ext_ctrls()
296 tot_size *= ref->p_req_elems; in prepare_ext_ctrls()
335 h->mref = ref; in prepare_ext_ctrls()
444 if (helpers[i].ref->ctrl->flags & V4L2_CTRL_FLAG_WRITE_ONLY) in v4l2_g_ext_ctrls_common()
490 struct v4l2_ctrl_ref *ref = helpers[idx].ref; in v4l2_g_ext_ctrls_common() local
493 ret = def_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
494 else if (is_request && ref->p_req_array_enomem) in v4l2_g_ext_ctrls_common()
496 else if (is_request && ref->p_req_valid) in v4l2_g_ext_ctrls_common()
497 ret = req_to_user(cs->controls + idx, ref); in v4l2_g_ext_ctrls_common()
499 ret = min_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
501 ret = max_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
503 ret = new_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
505 ret = cur_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
544 struct v4l2_ctrl *ctrl = helpers[i].ref->ctrl; in validate_ctrls()
665 if (helpers[tmp_idx].ref->ctrl == master) in try_set_ext_ctrls_common()
682 struct v4l2_ctrl *ctrl = helpers[idx].ref->ctrl; in try_set_ext_ctrls_common()
700 struct v4l2_ctrl_ref *ref = in try_set_ext_ctrls_common() local
703 new_to_req(ref); in try_set_ext_ctrls_common()
712 helpers[idx].ref->ctrl); in try_set_ext_ctrls_common()
1063 struct v4l2_ctrl_ref *ref; in v4l2_query_ext_ctrl() local
1072 ref = find_ref(hdl, id); in v4l2_query_ext_ctrl()
1092 ref = NULL; /* Yes, so there is no next control */ in v4l2_query_ext_ctrl()
1093 } else if (ref) { in v4l2_query_ext_ctrl()
1094 struct v4l2_ctrl_ref *pos = ref; in v4l2_query_ext_ctrl()
1100 ref = NULL; in v4l2_query_ext_ctrl()
1106 ref = pos; in v4l2_query_ext_ctrl()
1124 ref = pos; in v4l2_query_ext_ctrl()
1132 if (!ref) in v4l2_query_ext_ctrl()
1135 ctrl = ref->ctrl; in v4l2_query_ext_ctrl()