Lines Matching refs:ctrls
127 struct ar0521_ctrls ctrls; member
148 ctrls.handler)->sd; in ctrl_to_sd()
212 be(sensor->fmt.height + sensor->ctrls.vblank->val), in ar0521_set_geometry()
213 be(sensor->fmt.width + sensor->ctrls.hblank->val), in ar0521_set_geometry()
227 int green = sensor->ctrls.gain->val; in ar0521_set_gains()
228 int red = max(green + sensor->ctrls.red_balance->val, 0); in ar0521_set_gains()
229 int blue = max(green + sensor->ctrls.blue_balance->val, 0); in ar0521_set_gains()
384 ret = __v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in ar0521_set_stream()
493 ret = __v4l2_ctrl_modify_range(sensor->ctrls.hblank, in ar0521_set_fmt()
494 sensor->ctrls.hblank->minimum, in ar0521_set_fmt()
495 max_hblank, sensor->ctrls.hblank->step, in ar0521_set_fmt()
496 sensor->ctrls.hblank->minimum); in ar0521_set_fmt()
500 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.hblank, in ar0521_set_fmt()
501 sensor->ctrls.hblank->minimum); in ar0521_set_fmt()
506 ret = __v4l2_ctrl_modify_range(sensor->ctrls.vblank, in ar0521_set_fmt()
507 sensor->ctrls.vblank->minimum, in ar0521_set_fmt()
508 max_vblank, sensor->ctrls.vblank->step, in ar0521_set_fmt()
509 sensor->ctrls.vblank->minimum); in ar0521_set_fmt()
513 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.vblank, in ar0521_set_fmt()
514 sensor->ctrls.vblank->minimum); in ar0521_set_fmt()
519 ret = __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ar0521_set_fmt()
520 sensor->ctrls.exposure->minimum, in ar0521_set_fmt()
522 sensor->ctrls.exposure->step, in ar0521_set_fmt()
523 sensor->ctrls.exposure->default_value); in ar0521_set_fmt()
542 __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ar0521_s_ctrl()
543 sensor->ctrls.exposure->minimum, in ar0521_s_ctrl()
544 exp_max, sensor->ctrls.exposure->step, in ar0521_s_ctrl()
545 sensor->ctrls.exposure->default_value); in ar0521_s_ctrl()
601 struct ar0521_ctrls *ctrls = &sensor->ctrls; in ar0521_init_controls() local
602 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ar0521_init_controls()
618 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, 0, 511, 1, 0); in ar0521_init_controls()
619 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ar0521_init_controls()
621 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ar0521_init_controls()
623 v4l2_ctrl_cluster(3, &ctrls->gain); in ar0521_init_controls()
627 ctrls->hblank = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HBLANK, in ar0521_init_controls()
633 ctrls->vblank = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VBLANK, in ar0521_init_controls()
637 v4l2_ctrl_cluster(2, &ctrls->hblank); in ar0521_init_controls()
640 ctrls->pixrate = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_PIXEL_RATE, in ar0521_init_controls()
647 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, 0, in ar0521_init_controls()
656 ctrls->test_pattern = v4l2_ctrl_new_std_menu_items(hdl, ops, in ar0521_init_controls()
1163 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ar0521_probe()
1177 v4l2_ctrl_handler_free(&sensor->ctrls.handler); in ar0521_remove()