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()
543 ov965x->ctrls.update = 1; in ov965x_s_power()
560 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl()
635 ov965x->ctrls.blue_balance->val); in ov965x_set_white_balance()
639 ov965x->ctrls.red_balance->val); in ov965x_set_white_balance()
673 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_gain() local
680 if (ctrls->auto_gain->is_new) { in ov965x_set_gain()
684 if (ctrls->auto_gain->val) in ov965x_set_gain()
693 if (ctrls->gain->is_new && !auto_gain) { in ov965x_set_gain()
694 unsigned int gain = ctrls->gain->val; in ov965x_set_gain()
724 ctrls->gain->val = (1 << m) * (16 + (rgain & 0xf)); in ov965x_set_gain()
761 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_exposure() local
766 if (ctrls->auto_exp->is_new) { in ov965x_set_exposure()
779 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure()
780 unsigned int exposure = (ctrls->exposure->val * 100) in ov965x_set_exposure()
794 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval) in ov965x_set_exposure()
800 v4l2_ctrl_activate(ov965x->ctrls.brightness, !exp); in ov965x_set_exposure()
808 if (ov965x->ctrls.hflip->val) in ov965x_set_flip()
811 if (ov965x->ctrls.vflip->val) in ov965x_set_flip()
876 ov965x->ctrls.gain->val = m * (16 + (gain & 0xf)); in __g_volatile_ctrl()
893 ov965x->ctrls.exposure->val = ((exposure * in __g_volatile_ctrl()
989 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_initialize_controls() local
990 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov965x_initialize_controls()
998 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in ov965x_initialize_controls()
1001 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ov965x_initialize_controls()
1003 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ov965x_initialize_controls()
1006 ctrls->auto_exp = 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 = in ov965x_initialize_controls()
1046 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov965x_initialize_controls()
1047 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov965x_initialize_controls()
1049 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false); in ov965x_initialize_controls()
1050 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov965x_initialize_controls()
1051 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov965x_initialize_controls()
1052 v4l2_ctrl_cluster(2, &ctrls->hflip); in ov965x_initialize_controls()
1278 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in __ov965x_set_params() local
1319 return ov965x_set_banding_filter(ov965x, ctrls->light_freq->val); in __ov965x_set_params()
1325 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_s_stream() local
1335 if (!ret && ctrls->update) { in ov965x_s_stream()
1341 ret = v4l2_ctrl_handler_setup(&ctrls->handler); in ov965x_s_stream()
1345 ctrls->update = 0; in ov965x_s_stream()