Lines Matching defs:ctrl
1209 static int adv76xx_s_ctrl(struct v4l2_ctrl *ctrl)
1212 &container_of(ctrl->handler, struct adv76xx_state, hdl)->sd;
1216 switch (ctrl->id) {
1218 cp_write(sd, 0x3c, ctrl->val);
1221 cp_write(sd, 0x3a, ctrl->val);
1224 cp_write(sd, 0x3b, ctrl->val);
1227 cp_write(sd, 0x3d, ctrl->val);
1230 state->rgb_quantization_range = ctrl->val;
1240 afe_write(sd, 0xc8, ctrl->val);
1245 cp_write_clr_set(sd, 0xbf, 0x04, ctrl->val << 2);
1248 cp_write(sd, 0xc0, (ctrl->val & 0xff0000) >> 16);
1249 cp_write(sd, 0xc1, (ctrl->val & 0x00ff00) >> 8);
1250 cp_write(sd, 0xc2, (u8)(ctrl->val & 0x0000ff));
1256 static int adv76xx_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
1259 &container_of(ctrl->handler, struct adv76xx_state, hdl)->sd;
1261 if (ctrl->id == V4L2_CID_DV_RX_IT_CONTENT_TYPE) {
1262 ctrl->val = V4L2_DV_IT_CONTENT_TYPE_NO_ITC;
1264 ctrl->val = (infoframe_read(sd, 0x05) >> 4) & 3;
2622 v4l2_info(sd, "RGB quantization range ctrl: %s\n",
3414 struct v4l2_ctrl *ctrl;
3552 ctrl = v4l2_ctrl_new_std_menu(hdl, &adv76xx_ctrl_ops,
3555 if (ctrl)
3556 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE;