Lines Matching refs:ctrls

116 						ctrls.handler)
141 struct t4ka3_ctrls ctrls; member
292 if (sensor->ctrls.vflip && sensor->ctrls.vflip->val) in t4ka3_set_bayer_order()
295 if (sensor->ctrls.hflip && sensor->ctrls.hflip->val) in t4ka3_set_bayer_order()
304 int exp_max = fmt->height + sensor->ctrls.vblank->val - in t4ka3_update_exposure_range()
307 return __v4l2_ctrl_modify_range(sensor->ctrls.exposure, 0, exp_max, in t4ka3_update_exposure_range()
395 ret = __v4l2_ctrl_modify_range(sensor->ctrls.vblank, min, max, 1, def); in t4ka3_set_pad_format()
399 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.vblank, def); in t4ka3_set_pad_format()
404 ret = __v4l2_ctrl_modify_range(sensor->ctrls.hblank, def, def, 1, def); in t4ka3_set_pad_format()
408 return __v4l2_ctrl_s_ctrl(sensor->ctrls.hblank, def); in t4ka3_set_pad_format()
589 ret = __v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in t4ka3_enable_stream()
817 struct t4ka3_ctrls *ctrls = &sensor->ctrls; in t4ka3_init_controls() local
821 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in t4ka3_init_controls()
836 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in t4ka3_init_controls()
837 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in t4ka3_init_controls()
839 ctrls->test_pattern = in t4ka3_init_controls()
844 ctrls->link_freq = v4l2_ctrl_new_int_menu(hdl, NULL, in t4ka3_init_controls()
847 ctrls->pixel_rate = v4l2_ctrl_new_std(hdl, NULL, V4L2_CID_PIXEL_RATE, in t4ka3_init_controls()
860 ctrls->vblank = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VBLANK, in t4ka3_init_controls()
864 ctrls->hblank = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HBLANK, in t4ka3_init_controls()
869 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in t4ka3_init_controls()
872 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_ANALOGUE_GAIN, in t4ka3_init_controls()
886 ctrls->vflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; in t4ka3_init_controls()
887 ctrls->hflip->flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT; in t4ka3_init_controls()
888 ctrls->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in t4ka3_init_controls()
889 ctrls->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in t4ka3_init_controls()
941 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in t4ka3_remove()
1008 sensor->sd.state_lock = sensor->ctrls.handler.lock; in t4ka3_probe()
1029 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in t4ka3_probe()