Lines Matching full:controls
3 * V4L2 controls framework uAPI implementation:
172 * multiple controls have to be set through multiple i2c writes (for example)
179 * error should be returned without actually affecting any controls.
187 * controls were affected. Otherwise all controls before that index were
189 * the given index failed, and you don't know what happened with the controls
200 * tried to set the controls. In all other cases it is a driver/hardware
204 * never modifies controls the error_idx is just set to whatever control
210 * Find the controls in the control array and do some basic checks.
223 struct v4l2_ext_control *c = &cs->controls[i]; in prepare_ext_ctrls()
241 * Old-style private controls are not allowed for in prepare_ext_ctrls()
242 * extended controls. in prepare_ext_ctrls()
246 "old-style private controls not allowed\n"); in prepare_ext_ctrls()
319 * We are done if there were no controls that belong to a multi- in prepare_ext_ctrls()
326 * The code below figures out in O(n) time which controls in the list in prepare_ext_ctrls()
366 * whether there are any controls at all.
377 * Get extended controls. Allocates the helpers array if needed.
381 * completed, and in that case p_req_valid is true for all controls.
437 * volatile controls at the time of request completion in v4l2_g_ext_ctrls_common()
464 ret = def_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
468 ret = req_to_user(cs->controls + idx, ref); in v4l2_g_ext_ctrls_common()
470 ret = new_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
472 ret = cur_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
500 /* Validate controls. */
527 * controls may have been set already and we want to do a in validate_ctrls()
543 p_new.p_s64 = &cs->controls[i].value64; in validate_ctrls()
545 p_new.p_s32 = &cs->controls[i].value; in validate_ctrls()
553 /* Try or try-and-set controls */
617 * of controls). in try_set_ext_ctrls_common()
631 new_auto_val = cs->controls[tmp_idx].value; in try_set_ext_ctrls_common()
649 ret = user_to_new(cs->controls + idx, ctrl); in try_set_ext_ctrls_common()
676 ret = new_to_user(cs->controls + idx, in try_set_ext_ctrls_common()
739 /* Compound controls are not supported. The new_to_user() and in get_ctrl()
842 * Helper functions for drivers to get/set controls.