Lines Matching refs:cur_mode
338 const struct ov2740_mode *cur_mode; member
521 exposure_max = ov2740->cur_mode->height + ctrl->val - in ov2740_set_ctrl()
551 ov2740->cur_mode->height + ctrl->val); in ov2740_set_ctrl()
575 const struct ov2740_mode *cur_mode; in ov2740_init_controls() local
587 cur_mode = ov2740->cur_mode; in ov2740_init_controls()
602 vblank_min = cur_mode->vts_min - cur_mode->height; in ov2740_init_controls()
603 vblank_max = OV2740_VTS_MAX - cur_mode->height; in ov2740_init_controls()
604 vblank_default = cur_mode->vts_def - cur_mode->height; in ov2740_init_controls()
609 h_blank = to_pixels_per_line(cur_mode->hts, cur_mode->link_freq_index); in ov2740_init_controls()
610 h_blank -= cur_mode->width; in ov2740_init_controls()
623 exposure_max = cur_mode->vts_def - OV2740_EXPOSURE_MAX_MARGIN; in ov2740_init_controls()
760 link_freq_index = ov2740->cur_mode->link_freq_index; in ov2740_start_streaming()
768 reg_list = &ov2740->cur_mode->reg_list; in ov2740_start_streaming()
883 ov2740->cur_mode = mode; in ov2740_set_format()
917 ov2740_update_pad_format(ov2740->cur_mode, &fmt->format); in ov2740_get_format()
1174 ov2740->cur_mode = &supported_modes[0]; in ov2740_probe()