Lines Matching defs:ctrl
1195 static int adv76xx_s_ctrl(struct v4l2_ctrl *ctrl)
1198 &container_of(ctrl->handler, struct adv76xx_state, hdl)->sd;
1202 switch (ctrl->id) {
1204 cp_write(sd, 0x3c, ctrl->val);
1207 cp_write(sd, 0x3a, ctrl->val);
1210 cp_write(sd, 0x3b, ctrl->val);
1213 cp_write(sd, 0x3d, ctrl->val);
1216 state->rgb_quantization_range = ctrl->val;
1226 afe_write(sd, 0xc8, ctrl->val);
1231 cp_write_clr_set(sd, 0xbf, 0x04, ctrl->val << 2);
1234 cp_write(sd, 0xc0, (ctrl->val & 0xff0000) >> 16);
1235 cp_write(sd, 0xc1, (ctrl->val & 0x00ff00) >> 8);
1236 cp_write(sd, 0xc2, (u8)(ctrl->val & 0x0000ff));
1242 static int adv76xx_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
1245 &container_of(ctrl->handler, struct adv76xx_state, hdl)->sd;
1247 if (ctrl->id == V4L2_CID_DV_RX_IT_CONTENT_TYPE) {
1248 ctrl->val = V4L2_DV_IT_CONTENT_TYPE_NO_ITC;
1250 ctrl->val = (infoframe_read(sd, 0x05) >> 4) & 3;
2590 v4l2_info(sd, "RGB quantization range ctrl: %s\n",
3356 struct v4l2_ctrl *ctrl;
3493 ctrl = v4l2_ctrl_new_std_menu(hdl, &adv76xx_ctrl_ops,
3496 if (ctrl)
3497 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE;