• Home
  • Raw
  • Download

Lines Matching refs:ctrls

269 	struct ov965x_ctrls ctrls;  member
415 return &container_of(ctrl->handler, struct ov965x, ctrls.handler)->sd; in ctrl_to_sd()
548 ov965x->ctrls.update = 1; in ov965x_s_power()
565 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl()
640 ov965x->ctrls.blue_balance->val); in ov965x_set_white_balance()
644 ov965x->ctrls.red_balance->val); in ov965x_set_white_balance()
679 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_gain() local
686 if (ctrls->auto_gain->is_new) { in ov965x_set_gain()
690 if (ctrls->auto_gain->val) in ov965x_set_gain()
699 if (ctrls->gain->is_new && !auto_gain) { in ov965x_set_gain()
700 unsigned int gain = ctrls->gain->val; in ov965x_set_gain()
725 ctrls->gain->val = (1 << m) * (16 + (rgain & 0xf)); in ov965x_set_gain()
763 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_exposure() local
768 if (ctrls->auto_exp->is_new) { in ov965x_set_exposure()
781 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure()
782 unsigned int exposure = (ctrls->exposure->val * 100) in ov965x_set_exposure()
796 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval) in ov965x_set_exposure()
802 v4l2_ctrl_activate(ov965x->ctrls.brightness, !exp); in ov965x_set_exposure()
810 if (ov965x->ctrls.hflip->val) in ov965x_set_flip()
813 if (ov965x->ctrls.vflip->val) in ov965x_set_flip()
879 ov965x->ctrls.gain->val = m * (16 + (gain & 0xf)); in __g_volatile_ctrl()
894 ov965x->ctrls.exposure->val = ((exposure * in __g_volatile_ctrl()
991 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_initialize_controls() local
992 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov965x_initialize_controls()
1000 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in ov965x_initialize_controls()
1003 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ov965x_initialize_controls()
1005 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ov965x_initialize_controls()
1008 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in ov965x_initialize_controls()
1012 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, in ov965x_initialize_controls()
1016 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov965x_initialize_controls()
1018 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in ov965x_initialize_controls()
1021 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, in ov965x_initialize_controls()
1023 ctrls->brightness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BRIGHTNESS, in ov965x_initialize_controls()
1025 ctrls->sharpness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SHARPNESS, in ov965x_initialize_controls()
1028 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in ov965x_initialize_controls()
1029 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in ov965x_initialize_controls()
1031 ctrls->light_freq = v4l2_ctrl_new_std_menu(hdl, ops, in ov965x_initialize_controls()
1045 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov965x_initialize_controls()
1046 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov965x_initialize_controls()
1048 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false); in ov965x_initialize_controls()
1049 v4l2_ctrl_auto_cluster(3, &ctrls->auto_gain, 0, true); in ov965x_initialize_controls()
1050 v4l2_ctrl_auto_cluster(3, &ctrls->auto_exp, 1, true); in ov965x_initialize_controls()
1051 v4l2_ctrl_cluster(2, &ctrls->hflip); in ov965x_initialize_controls()
1276 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in __ov965x_set_params() local
1317 return ov965x_set_banding_filter(ov965x, ctrls->light_freq->val); in __ov965x_set_params()
1324 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_s_stream() local
1334 if (!ret && ctrls->update) { in ov965x_s_stream()
1340 ret = v4l2_ctrl_handler_setup(&ctrls->handler); in ov965x_s_stream()
1344 ctrls->update = 0; in ov965x_s_stream()