Lines Matching refs:ctrls

460 	struct ov5640_ctrls ctrls;  member
477 ctrls.handler)->sd; in ctrl_to_sd()
2315 bool auto_gain = sensor->ctrls.auto_gain->val == 1; in ov5640_set_mode()
2316 bool auto_exp = sensor->ctrls.auto_exp->val == V4L2_EXPOSURE_AUTO; in ov5640_set_mode()
2844 __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate, in ov5640_update_pixel_rate()
2886 __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate, pixel_rate); in ov5640_update_pixel_rate()
2887 __v4l2_ctrl_s_ctrl(sensor->ctrls.link_freq, i); in ov5640_update_pixel_rate()
2891 __v4l2_ctrl_modify_range(sensor->ctrls.hblank, in ov5640_update_pixel_rate()
2908 __v4l2_ctrl_modify_range(sensor->ctrls.vblank, OV5640_MIN_VBLANK, in ov5640_update_pixel_rate()
2910 __v4l2_ctrl_s_ctrl(sensor->ctrls.vblank, vblank); in ov5640_update_pixel_rate()
2913 exposure_val = clamp_t(s32, sensor->ctrls.exposure->val, in ov5640_update_pixel_rate()
2914 sensor->ctrls.exposure->minimum, in ov5640_update_pixel_rate()
2917 __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ov5640_update_pixel_rate()
2918 sensor->ctrls.exposure->minimum, in ov5640_update_pixel_rate()
3133 u16 red = (u16)sensor->ctrls.red_balance->val; in ov5640_set_ctrl_white_balance()
3134 u16 blue = (u16)sensor->ctrls.blue_balance->val; in ov5640_set_ctrl_white_balance()
3148 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_exposure() local
3152 if (ctrls->auto_exp->is_new) { in ov5640_set_ctrl_exposure()
3158 if (!auto_exp && ctrls->exposure->is_new) { in ov5640_set_ctrl_exposure()
3171 if (ctrls->exposure->val < max_exp) in ov5640_set_ctrl_exposure()
3172 ret = ov5640_set_exposure(sensor, ctrls->exposure->val); in ov5640_set_ctrl_exposure()
3180 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_gain() local
3183 if (ctrls->auto_gain->is_new) { in ov5640_set_ctrl_gain()
3189 if (!auto_gain && ctrls->gain->is_new) in ov5640_set_ctrl_gain()
3190 ret = ov5640_set_gain(sensor, ctrls->gain->val); in ov5640_set_ctrl_gain()
3309 sensor->ctrls.gain->val = val; in ov5640_g_volatile_ctrl()
3315 sensor->ctrls.exposure->val = val; in ov5640_g_volatile_ctrl()
3340 __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ov5640_s_ctrl()
3341 sensor->ctrls.exposure->minimum, in ov5640_s_ctrl()
3342 exp_max, sensor->ctrls.exposure->step, in ov5640_s_ctrl()
3408 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_init_controls() local
3409 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov5640_init_controls()
3422 ctrls->pixel_rate = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_PIXEL_RATE, in ov5640_init_controls()
3427 ctrls->link_freq = v4l2_ctrl_new_int_menu(hdl, ops, in ov5640_init_controls()
3435 ctrls->hblank = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HBLANK, hblank, in ov5640_init_controls()
3439 ctrls->vblank = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VBLANK, in ov5640_init_controls()
3444 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in ov5640_init_controls()
3447 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ov5640_init_controls()
3449 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ov5640_init_controls()
3452 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in ov5640_init_controls()
3456 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in ov5640_init_controls()
3459 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov5640_init_controls()
3461 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in ov5640_init_controls()
3464 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, in ov5640_init_controls()
3466 ctrls->hue = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HUE, in ov5640_init_controls()
3468 ctrls->contrast = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_CONTRAST, in ov5640_init_controls()
3470 ctrls->test_pattern = in ov5640_init_controls()
3474 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, in ov5640_init_controls()
3476 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, in ov5640_init_controls()
3479 ctrls->light_freq = in ov5640_init_controls()
3501 ctrls->pixel_rate->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5640_init_controls()
3502 ctrls->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5640_init_controls()
3503 ctrls->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5640_init_controls()
3504 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov5640_init_controls()
3505 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov5640_init_controls()
3507 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false); in ov5640_init_controls()
3508 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov5640_init_controls()
3509 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov5640_init_controls()
3676 ret = v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in ov5640_s_stream()
3920 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov5640_probe()
3941 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov5640_remove()