Lines Matching full:controls
3 * V4L2 controls framework uAPI implementation:
189 * multiple controls have to be set through multiple i2c writes (for example)
196 * error should be returned without actually affecting any controls.
204 * controls were affected. Otherwise all controls before that index were
206 * the given index failed, and you don't know what happened with the controls
217 * tried to set the controls. In all other cases it is a driver/hardware
221 * never modifies controls the error_idx is just set to whatever control
227 * Find the controls in the control array and do some basic checks.
240 struct v4l2_ext_control *c = &cs->controls[i]; in prepare_ext_ctrls()
258 * Old-style private controls are not allowed for in prepare_ext_ctrls()
259 * extended controls. in prepare_ext_ctrls()
263 "old-style private controls not allowed\n"); in prepare_ext_ctrls()
345 * We are done if there were no controls that belong to a multi- in prepare_ext_ctrls()
352 * The code below figures out in O(n) time which controls in the list in prepare_ext_ctrls()
392 * whether there are any controls at all.
403 * Get extended controls. Allocates the helpers array if needed.
407 * completed, and in that case p_req_valid is true for all controls.
466 * volatile controls at the time of request completion in v4l2_g_ext_ctrls_common()
493 ret = def_to_user(cs->controls + idx, ref->ctrl); 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()
533 /* Validate controls. */
560 * controls may have been set already and we want to do a in validate_ctrls()
576 p_new.p_s64 = &cs->controls[i].value64; in validate_ctrls()
578 p_new.p_s32 = &cs->controls[i].value; in validate_ctrls()
586 /* Try or try-and-set controls */
652 * of controls). in try_set_ext_ctrls_common()
666 new_auto_val = cs->controls[tmp_idx].value; in try_set_ext_ctrls_common()
684 ret = user_to_new(cs->controls + idx, ctrl); in try_set_ext_ctrls_common()
711 ret = new_to_user(cs->controls + idx, in try_set_ext_ctrls_common()
774 /* Compound controls are not supported. The new_to_user() and in get_ctrl()
882 * Helper functions for drivers to get/set controls.