• Home
  • Raw
  • Download

Lines Matching refs:ctrls

271 	struct ov965x_ctrls ctrls;  member
417 return &container_of(ctrl->handler, struct ov965x, ctrls.handler)->sd; in ctrl_to_sd()
545 ov965x->ctrls.update = 1; in ov965x_s_power()
562 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl()
637 ov965x->ctrls.blue_balance->val); in ov965x_set_white_balance()
641 ov965x->ctrls.red_balance->val); in ov965x_set_white_balance()
675 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_gain() local
682 if (ctrls->auto_gain->is_new) { in ov965x_set_gain()
686 if (ctrls->auto_gain->val) in ov965x_set_gain()
695 if (ctrls->gain->is_new && !auto_gain) { in ov965x_set_gain()
696 unsigned int gain = ctrls->gain->val; in ov965x_set_gain()
726 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()
878 ov965x->ctrls.gain->val = m * (16 + (gain & 0xf)); in __g_volatile_ctrl()
895 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 = in ov965x_initialize_controls()
1014 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, in ov965x_initialize_controls()
1018 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov965x_initialize_controls()
1020 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in ov965x_initialize_controls()
1023 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, in ov965x_initialize_controls()
1025 ctrls->brightness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BRIGHTNESS, in ov965x_initialize_controls()
1027 ctrls->sharpness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SHARPNESS, in ov965x_initialize_controls()
1030 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in ov965x_initialize_controls()
1031 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in ov965x_initialize_controls()
1033 ctrls->light_freq = in ov965x_initialize_controls()
1048 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov965x_initialize_controls()
1049 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov965x_initialize_controls()
1051 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false); in ov965x_initialize_controls()
1052 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov965x_initialize_controls()
1053 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov965x_initialize_controls()
1054 v4l2_ctrl_cluster(2, &ctrls->hflip); in ov965x_initialize_controls()
1280 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in __ov965x_set_params() local
1321 return ov965x_set_banding_filter(ov965x, ctrls->light_freq->val); in __ov965x_set_params()
1327 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_s_stream() local
1337 if (!ret && ctrls->update) { in ov965x_s_stream()
1343 ret = v4l2_ctrl_handler_setup(&ctrls->handler); in ov965x_s_stream()
1347 ctrls->update = 0; in ov965x_s_stream()