Lines Matching full:cluster
42 same cluster, or 0 if there isn't any. */
946 if (!is_cur_manual(ctrl->cluster[0])) { in new_to_cur()
948 if (ctrl->cluster[0]->has_volatiles) in new_to_cur()
983 /* Return non-zero if one or more of the controls in the cluster has a new
991 struct v4l2_ctrl *ctrl = master->cluster[i]; in cluster_changed()
1250 /* By default each control starts in a cluster of its own. in handler_new_ref()
1251 new_ref->ctrl is basically a cluster array with one in handler_new_ref()
1252 element, so that's perfect to use as the cluster pointer. in handler_new_ref()
1254 ctrl->cluster = &new_ref->ctrl; in handler_new_ref()
1498 /* Cluster controls */
1509 controls[i]->cluster = controls; in v4l2_ctrl_cluster()
1675 struct v4l2_ctrl *master = ctrl->cluster[0]; in v4l2_ctrl_handler_setup()
1678 /* Skip if this control was already handled by a cluster. */ in v4l2_ctrl_handler_setup()
1685 if (master->cluster[i]) { in v4l2_ctrl_handler_setup()
1686 cur_to_new(master->cluster[i]); in v4l2_ctrl_handler_setup()
1687 master->cluster[i]->is_new = 1; in v4l2_ctrl_handler_setup()
1688 master->cluster[i]->done = true; in v4l2_ctrl_handler_setup()
1822 after the failed one. Since if they were part of a control cluster they
1823 could have been successfully processed (if a cluster member was encountered
1824 at index < error_idx), they could have failed (if a cluster member was at
1825 error_idx), or they may not have been processed yet (if the first cluster
1872 if (ctrl->cluster[0]->ncontrols > 1) in prepare_ext_ctrls()
1874 if (ctrl->cluster[0] != ctrl) in prepare_ext_ctrls()
1875 ref = find_ref_lock(hdl, ctrl->cluster[0]->id); in prepare_ext_ctrls()
1876 /* Store the ref to the master control of the cluster */ in prepare_ext_ctrls()
1881 cluster */ in prepare_ext_ctrls()
1886 control cluster. */ in prepare_ext_ctrls()
1891 belong to the same cluster. */ in prepare_ext_ctrls()
1903 helper that belongs to the same cluster. */ in prepare_ext_ctrls()
1907 points to the next helper in the same cluster. */ in prepare_ext_ctrls()
1910 cluster, clear the others. */ in prepare_ext_ctrls()
1979 cur_to_new(master->cluster[j]); in v4l2_g_ext_ctrls()
2013 struct v4l2_ctrl *master = ctrl->cluster[0]; in get_ctrl()
2024 cur_to_new(master->cluster[i]); in get_ctrl()
2072 /* Go through the cluster and either validate the new value or in try_or_set_cluster()
2077 struct v4l2_ctrl *ctrl = master->cluster[i]; in try_or_set_cluster()
2104 new_to_cur(fh, master->cluster[i], update_flag && i > 0); in try_or_set_cluster()
2145 cur_to_new(master->cluster[i]); in update_from_auto_cluster()
2148 if (master->cluster[i]) in update_from_auto_cluster()
2149 master->cluster[i]->is_new = 1; in update_from_auto_cluster()
2192 /* Reset the 'is_new' flags of the cluster */ in try_set_ext_ctrls()
2194 if (master->cluster[j]) in try_set_ext_ctrls()
2195 master->cluster[j]->is_new = 0; in try_set_ext_ctrls()
2277 struct v4l2_ctrl *master = ctrl->cluster[0]; in set_ctrl()
2287 /* Reset the 'is_new' flags of the cluster */ in set_ctrl()
2289 if (master->cluster[i]) in set_ctrl()
2290 master->cluster[i]->is_new = 0; in set_ctrl()