Lines Matching refs:ctrls
253 struct ov5640_ctrls ctrls; member
270 ctrls.handler)->sd; in ctrl_to_sd()
1763 bool auto_gain = sensor->ctrls.auto_gain->val == 1; in ov5640_set_mode()
1764 bool auto_exp = sensor->ctrls.auto_exp->val == V4L2_EXPOSURE_AUTO; in ov5640_set_mode()
2185 ret = v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in ov5640_s_power()
2328 __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate, in ov5640_set_fmt()
2507 u16 red = (u16)sensor->ctrls.red_balance->val; in ov5640_set_ctrl_white_balance()
2508 u16 blue = (u16)sensor->ctrls.blue_balance->val; in ov5640_set_ctrl_white_balance()
2522 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_exposure() local
2526 if (ctrls->auto_exp->is_new) { in ov5640_set_ctrl_exposure()
2532 if (!auto_exp && ctrls->exposure->is_new) { in ov5640_set_ctrl_exposure()
2545 if (ctrls->exposure->val < max_exp) in ov5640_set_ctrl_exposure()
2546 ret = ov5640_set_exposure(sensor, ctrls->exposure->val); in ov5640_set_ctrl_exposure()
2554 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_gain() local
2557 if (ctrls->auto_gain->is_new) { in ov5640_set_ctrl_gain()
2563 if (!auto_gain && ctrls->gain->is_new) in ov5640_set_ctrl_gain()
2564 ret = ov5640_set_gain(sensor, ctrls->gain->val); in ov5640_set_ctrl_gain()
2671 sensor->ctrls.gain->val = val; in ov5640_g_volatile_ctrl()
2677 sensor->ctrls.exposure->val = val; in ov5640_g_volatile_ctrl()
2747 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_init_controls() local
2748 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov5640_init_controls()
2757 ctrls->pixel_rate = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_PIXEL_RATE, in ov5640_init_controls()
2762 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in ov5640_init_controls()
2765 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ov5640_init_controls()
2767 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ov5640_init_controls()
2770 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in ov5640_init_controls()
2774 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in ov5640_init_controls()
2777 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov5640_init_controls()
2779 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_ANALOGUE_GAIN, in ov5640_init_controls()
2782 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, in ov5640_init_controls()
2784 ctrls->hue = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HUE, in ov5640_init_controls()
2786 ctrls->contrast = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_CONTRAST, in ov5640_init_controls()
2788 ctrls->test_pattern = in ov5640_init_controls()
2792 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, in ov5640_init_controls()
2794 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, in ov5640_init_controls()
2797 ctrls->light_freq = in ov5640_init_controls()
2808 ctrls->pixel_rate->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5640_init_controls()
2809 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov5640_init_controls()
2810 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov5640_init_controls()
2812 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false); in ov5640_init_controls()
2813 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov5640_init_controls()
2814 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov5640_init_controls()
2922 __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate, in ov5640_s_frame_interval()
3176 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov5640_probe()
3190 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov5640_remove()