Lines Matching refs:ctrls

118 	struct ov2680_ctrls		ctrls;  member
194 ctrls.handler)->sd; in ctrl_to_sd()
410 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_gain_set() local
419 if (auto_gain || !ctrls->gain->is_new) in ov2680_gain_set()
422 gain = ctrls->gain->val; in ov2680_gain_set()
443 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_exposure_set() local
452 if (auto_exp || !ctrls->exposure->is_new) in ov2680_exposure_set()
455 exp = (u32)ctrls->exposure->val; in ov2680_exposure_set()
485 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_mode_set() local
500 if (ctrls->auto_gain->val) { in ov2680_mode_set()
506 if (ctrls->auto_exp->val == V4L2_EXPOSURE_AUTO) { in ov2680_mode_set()
606 ret = v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in ov2680_s_power()
811 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_g_volatile_ctrl() local
822 ctrls->gain->val = val; in ov2680_g_volatile_ctrl()
828 ctrls->exposure->val = val; in ov2680_g_volatile_ctrl()
839 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_s_ctrl() local
848 return ov2680_gain_set(sensor, !!ctrls->auto_gain->val); in ov2680_s_ctrl()
852 return ov2680_exposure_set(sensor, !!ctrls->auto_exp->val); in ov2680_s_ctrl()
932 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_v4l2_init() local
933 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov2680_v4l2_init()
953 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in ov2680_v4l2_init()
954 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in ov2680_v4l2_init()
956 ctrls->test_pattern = v4l2_ctrl_new_std_menu_items(hdl, in ov2680_v4l2_init()
961 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in ov2680_v4l2_init()
966 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in ov2680_v4l2_init()
969 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov2680_v4l2_init()
971 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, 0, 2047, 1, 0); in ov2680_v4l2_init()
978 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov2680_v4l2_init()
979 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov2680_v4l2_init()
981 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov2680_v4l2_init()
982 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov2680_v4l2_init()
1108 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov2680_probe()
1124 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov2680_remove()