Lines Matching refs:ctrls

273 	struct ov965x_ctrls ctrls;  member
419 return &container_of(ctrl->handler, struct ov965x, ctrls.handler)->sd; in ctrl_to_sd()
557 ov965x->ctrls.update = 1; in ov965x_s_power()
574 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl()
649 ov965x->ctrls.blue_balance->val); in ov965x_set_white_balance()
653 ov965x->ctrls.red_balance->val); in ov965x_set_white_balance()
688 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_gain() local
695 if (ctrls->auto_gain->is_new) { in ov965x_set_gain()
699 if (ctrls->auto_gain->val) in ov965x_set_gain()
708 if (ctrls->gain->is_new && !auto_gain) { in ov965x_set_gain()
709 unsigned int gain = ctrls->gain->val; in ov965x_set_gain()
734 ctrls->gain->val = (1 << m) * (16 + (rgain & 0xf)); in ov965x_set_gain()
772 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_exposure() local
777 if (ctrls->auto_exp->is_new) { in ov965x_set_exposure()
790 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure()
791 unsigned int exposure = (ctrls->exposure->val * 100) in ov965x_set_exposure()
805 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval) in ov965x_set_exposure()
811 v4l2_ctrl_activate(ov965x->ctrls.brightness, !exp); in ov965x_set_exposure()
819 if (ov965x->ctrls.hflip->val) in ov965x_set_flip()
822 if (ov965x->ctrls.vflip->val) in ov965x_set_flip()
888 ov965x->ctrls.gain->val = m * (16 + (gain & 0xf)); in __g_volatile_ctrl()
905 ov965x->ctrls.exposure->val = ((exposure * in __g_volatile_ctrl()
1001 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_initialize_controls() local
1002 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov965x_initialize_controls()
1010 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in ov965x_initialize_controls()
1013 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ov965x_initialize_controls()
1015 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ov965x_initialize_controls()
1018 ctrls->auto_exp = in ov965x_initialize_controls()
1024 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, in ov965x_initialize_controls()
1028 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov965x_initialize_controls()
1030 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in ov965x_initialize_controls()
1033 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, in ov965x_initialize_controls()
1035 ctrls->brightness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BRIGHTNESS, in ov965x_initialize_controls()
1037 ctrls->sharpness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SHARPNESS, in ov965x_initialize_controls()
1040 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in ov965x_initialize_controls()
1041 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in ov965x_initialize_controls()
1043 ctrls->light_freq = in ov965x_initialize_controls()
1058 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov965x_initialize_controls()
1059 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov965x_initialize_controls()
1061 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false); in ov965x_initialize_controls()
1062 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov965x_initialize_controls()
1063 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov965x_initialize_controls()
1064 v4l2_ctrl_cluster(2, &ctrls->hflip); in ov965x_initialize_controls()
1290 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in __ov965x_set_params() local
1331 return ov965x_set_banding_filter(ov965x, ctrls->light_freq->val); in __ov965x_set_params()
1338 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_s_stream() local
1348 if (!ret && ctrls->update) { in ov965x_s_stream()
1354 ret = v4l2_ctrl_handler_setup(&ctrls->handler); in ov965x_s_stream()
1358 ctrls->update = 0; in ov965x_s_stream()