Lines Matching refs:master
662 static int cluster_changed(struct v4l2_ctrl *master)
667 for (i = 0; !diff && i < master->ncontrols; i++) {
668 struct v4l2_ctrl *ctrl = master->cluster[i];
1138 /* The first control is the master control and it must not be NULL */
1265 struct v4l2_ctrl *master = ctrl->cluster[0];
1272 for (i = 0; i < master->ncontrols; i++)
1273 cur_to_new(master->cluster[i]);
1279 ret = master->ops->s_ctrl(master);
1282 for (i = 0; i < master->ncontrols; i++)
1283 if (master->cluster[i])
1284 master->cluster[i]->done = true;
1542 struct v4l2_ctrl *master = ctrl->cluster[0];
1549 v4l2_ctrl_lock(master);
1551 if (ctrl->is_volatile && master->ops->g_volatile_ctrl)
1552 ret = master->ops->g_volatile_ctrl(master);
1556 v4l2_ctrl_unlock(master);
1575 struct v4l2_ctrl *master = ctrl->cluster[0];
1581 v4l2_ctrl_lock(master);
1583 if (ctrl->is_volatile && master->ops->g_volatile_ctrl)
1584 ret = master->ops->g_volatile_ctrl(master);
1586 v4l2_ctrl_unlock(master);
1621 static int try_or_set_control_cluster(struct v4l2_ctrl *master, bool set)
1631 for (i = 0; !ret && i < master->ncontrols; i++) {
1632 struct v4l2_ctrl *ctrl = master->cluster[i];
1658 if (!ret && master->ops->try_ctrl && try)
1659 ret = master->ops->try_ctrl(master);
1662 if (!ret && set && cluster_changed(master)) {
1663 ret = master->ops->s_ctrl(master);
1666 for (i = 0; i < master->ncontrols; i++)
1667 new_to_cur(master->cluster[i]);
1702 struct v4l2_ctrl *master = ctrl->cluster[0];
1712 for (j = 0; j < master->ncontrols; j++)
1713 if (master->cluster[j])
1714 master->cluster[j]->has_new = 0;
1721 ret = try_or_set_control_cluster(master, set);
1808 struct v4l2_ctrl *master = ctrl->cluster[0];
1815 for (i = 0; i < master->ncontrols; i++)
1816 if (master->cluster[i])
1817 master->cluster[i]->has_new = 0;
1821 ret = try_or_set_control_cluster(master, false);
1823 ret = try_or_set_control_cluster(master, true);