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()
596 ret = v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in ov2680_s_power()
801 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_g_volatile_ctrl() local
812 ctrls->gain->val = val; in ov2680_g_volatile_ctrl()
818 ctrls->exposure->val = val; in ov2680_g_volatile_ctrl()
829 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_s_ctrl() local
838 return ov2680_gain_set(sensor, !!ctrls->auto_gain->val); in ov2680_s_ctrl()
842 return ov2680_exposure_set(sensor, !!ctrls->auto_exp->val); in ov2680_s_ctrl()
922 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_v4l2_register() local
923 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov2680_v4l2_register()
943 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in ov2680_v4l2_register()
944 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in ov2680_v4l2_register()
946 ctrls->test_pattern = v4l2_ctrl_new_std_menu_items(hdl, in ov2680_v4l2_register()
951 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in ov2680_v4l2_register()
956 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in ov2680_v4l2_register()
959 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov2680_v4l2_register()
961 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, 0, 2047, 1, 0); in ov2680_v4l2_register()
968 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov2680_v4l2_register()
969 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov2680_v4l2_register()
971 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov2680_v4l2_register()
972 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov2680_v4l2_register()
1108 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov2680_remove()