Lines Matching refs:ctrls
231 struct ov5640_ctrls ctrls; member
248 ctrls.handler)->sd; in ctrl_to_sd()
1574 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.gain, cap_gain16); in ov5640_set_mode_exposure_calc()
1587 return __v4l2_ctrl_s_ctrl(sensor->ctrls.exposure, cap_shutter); in ov5640_set_mode_exposure_calc()
1609 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.auto_gain, 1); in ov5640_set_mode_direct()
1613 return __v4l2_ctrl_s_ctrl(sensor->ctrls.auto_exp, exposure); in ov5640_set_mode_direct()
1628 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.auto_gain, 0); in ov5640_set_mode()
1632 exposure = sensor->ctrls.auto_exp->val; in ov5640_set_mode()
1838 ret = v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in ov5640_s_power()
2128 u16 red = (u16)sensor->ctrls.red_balance->val; in ov5640_set_ctrl_white_balance()
2129 u16 blue = (u16)sensor->ctrls.blue_balance->val; in ov5640_set_ctrl_white_balance()
2142 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_exposure() local
2146 if (ctrls->auto_exp->is_new) { in ov5640_set_ctrl_exposure()
2153 if (!auto_exposure && ctrls->exposure->is_new) { in ov5640_set_ctrl_exposure()
2166 if (ctrls->exposure->val < max_exp) in ov5640_set_ctrl_exposure()
2167 ret = ov5640_set_exposure(sensor, ctrls->exposure->val); in ov5640_set_ctrl_exposure()
2175 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_gain() local
2178 if (ctrls->auto_gain->is_new) { in ov5640_set_ctrl_gain()
2181 ctrls->auto_gain->val ? 0 : BIT(1)); in ov5640_set_ctrl_gain()
2186 if (!auto_gain && ctrls->gain->is_new) { in ov5640_set_ctrl_gain()
2187 u16 gain = (u16)ctrls->gain->val; in ov5640_set_ctrl_gain()
2269 sensor->ctrls.gain->val = val; in ov5640_g_volatile_ctrl()
2277 sensor->ctrls.exposure->val = val; in ov5640_g_volatile_ctrl()
2352 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_init_controls() local
2353 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov5640_init_controls()
2362 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in ov5640_init_controls()
2365 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ov5640_init_controls()
2367 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ov5640_init_controls()
2370 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in ov5640_init_controls()
2374 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in ov5640_init_controls()
2377 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov5640_init_controls()
2379 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in ov5640_init_controls()
2382 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, in ov5640_init_controls()
2384 ctrls->hue = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HUE, in ov5640_init_controls()
2386 ctrls->contrast = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_CONTRAST, in ov5640_init_controls()
2388 ctrls->test_pattern = in ov5640_init_controls()
2392 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, in ov5640_init_controls()
2394 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, in ov5640_init_controls()
2397 ctrls->light_freq = in ov5640_init_controls()
2408 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov5640_init_controls()
2409 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE; in ov5640_init_controls()
2411 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false); in ov5640_init_controls()
2412 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true); in ov5640_init_controls()
2413 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true); in ov5640_init_controls()
2745 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov5640_probe()
2760 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ov5640_remove()