Lines Matching refs:ctrls

250 	struct ov5640_ctrls ctrls;  member
267 ctrls.handler)->sd; in ctrl_to_sd()
1737 bool auto_gain = sensor->ctrls.auto_gain->val == 1; in ov5640_set_mode()
1738 bool auto_exp = sensor->ctrls.auto_exp->val == V4L2_EXPOSURE_AUTO; in ov5640_set_mode()
2159 ret = v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in ov5640_s_power()
2302 __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate, in ov5640_set_fmt()
2479 u16 red = (u16)sensor->ctrls.red_balance->val; in ov5640_set_ctrl_white_balance()
2480 u16 blue = (u16)sensor->ctrls.blue_balance->val; in ov5640_set_ctrl_white_balance()
2494 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_exposure() local
2498 if (ctrls->auto_exp->is_new) { in ov5640_set_ctrl_exposure()
2504 if (!auto_exp && ctrls->exposure->is_new) { in ov5640_set_ctrl_exposure()
2517 if (ctrls->exposure->val < max_exp) in ov5640_set_ctrl_exposure()
2518 ret = ov5640_set_exposure(sensor, ctrls->exposure->val); in ov5640_set_ctrl_exposure()
2526 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_gain() local
2529 if (ctrls->auto_gain->is_new) { in ov5640_set_ctrl_gain()
2535 if (!auto_gain && ctrls->gain->is_new) in ov5640_set_ctrl_gain()
2536 ret = ov5640_set_gain(sensor, ctrls->gain->val); in ov5640_set_ctrl_gain()
2643 sensor->ctrls.gain->val = val; in ov5640_g_volatile_ctrl()
2649 sensor->ctrls.exposure->val = val; in ov5640_g_volatile_ctrl()
2719 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_init_controls() local
2720 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov5640_init_controls()
2729 ctrls->pixel_rate = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_PIXEL_RATE, in ov5640_init_controls()
2734 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in ov5640_init_controls()
2737 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ov5640_init_controls()
2739 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ov5640_init_controls()
2742 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in ov5640_init_controls()
2746 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in ov5640_init_controls()
2749 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov5640_init_controls()
2751 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in ov5640_init_controls()
2754 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, in ov5640_init_controls()
2756 ctrls->hue = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HUE, in ov5640_init_controls()
2758 ctrls->contrast = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_CONTRAST, in ov5640_init_controls()
2760 ctrls->test_pattern = in ov5640_init_controls()
2764 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, in ov5640_init_controls()
2766 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, in ov5640_init_controls()
2769 ctrls->light_freq = in ov5640_init_controls()
2780 ctrls->pixel_rate->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5640_init_controls()
2781 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov5640_init_controls()
2782 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov5640_init_controls()
2784 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false); in ov5640_init_controls()
2785 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov5640_init_controls()
2786 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov5640_init_controls()
2894 __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate, in ov5640_s_frame_interval()
3148 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov5640_probe()
3162 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov5640_remove()