Lines Matching full:controls
3 * V4L2 controls framework uAPI implementation:
173 * multiple controls have to be set through multiple i2c writes (for example)
180 * error should be returned without actually affecting any controls.
188 * controls were affected. Otherwise all controls before that index were
190 * the given index failed, and you don't know what happened with the controls
201 * tried to set the controls. In all other cases it is a driver/hardware
205 * never modifies controls the error_idx is just set to whatever control
211 * Find the controls in the control array and do some basic checks.
224 struct v4l2_ext_control *c = &cs->controls[i]; in prepare_ext_ctrls()
242 * Old-style private controls are not allowed for in prepare_ext_ctrls()
243 * extended controls. in prepare_ext_ctrls()
247 "old-style private controls not allowed\n"); in prepare_ext_ctrls()
320 * We are done if there were no controls that belong to a multi- in prepare_ext_ctrls()
327 * The code below figures out in O(n) time which controls in the list in prepare_ext_ctrls()
367 * whether there are any controls at all.
378 * Get extended controls. Allocates the helpers array if needed.
382 * completed, and in that case p_req_valid is true for all controls.
438 * volatile controls at the time of request completion in v4l2_g_ext_ctrls_common()
465 ret = def_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
469 ret = req_to_user(cs->controls + idx, ref); in v4l2_g_ext_ctrls_common()
471 ret = new_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
473 ret = cur_to_user(cs->controls + idx, ref->ctrl); in v4l2_g_ext_ctrls_common()
501 /* Validate controls. */
528 * controls may have been set already and we want to do a in validate_ctrls()
544 p_new.p_s64 = &cs->controls[i].value64; in validate_ctrls()
546 p_new.p_s32 = &cs->controls[i].value; in validate_ctrls()
554 /* Try or try-and-set controls */
618 * of controls). in try_set_ext_ctrls_common()
632 new_auto_val = cs->controls[tmp_idx].value; in try_set_ext_ctrls_common()
650 ret = user_to_new(cs->controls + idx, ctrl); in try_set_ext_ctrls_common()
677 ret = new_to_user(cs->controls + idx, in try_set_ext_ctrls_common()
740 /* Compound controls are not supported. The new_to_user() and in get_ctrl()
848 * Helper functions for drivers to get/set controls.