Lines Matching refs:win
425 const struct ov772x_win_size *win; member
607 priv->cfmt->code, priv->win->name); in ov772x_s_stream()
644 const struct ov772x_win_size *win) in ov772x_set_frame_rate() argument
659 fsize = win->sizeimage; in ov772x_set_frame_rate()
664 fsize = win->sizeimage * 2; in ov772x_set_frame_rate()
757 ret = ov772x_set_frame_rate(priv, fps, priv->cfmt, priv->win); in ov772x_s_frame_interval()
917 const struct ov772x_win_size *win);
938 priv->win); in ov772x_s_power()
958 const struct ov772x_win_size *win = &ov772x_win_sizes[0]; in ov772x_select_win() local
967 win = &ov772x_win_sizes[i]; in ov772x_select_win()
971 return win; in ov772x_select_win()
976 const struct ov772x_win_size **win) in ov772x_select_params() argument
991 *win = ov772x_select_win(mf->width, mf->height); in ov772x_select_params()
1050 const struct ov772x_win_size *win) in ov772x_set_params() argument
1064 ret = regmap_write(priv->regmap, HSTART, win->rect.left >> 2); in ov772x_set_params()
1067 ret = regmap_write(priv->regmap, HSIZE, win->rect.width >> 2); in ov772x_set_params()
1070 ret = regmap_write(priv->regmap, VSTART, win->rect.top >> 1); in ov772x_set_params()
1073 ret = regmap_write(priv->regmap, VSIZE, win->rect.height >> 1); in ov772x_set_params()
1076 ret = regmap_write(priv->regmap, HOUTSIZE, win->rect.width >> 2); in ov772x_set_params()
1079 ret = regmap_write(priv->regmap, VOUTSIZE, win->rect.height >> 1); in ov772x_set_params()
1083 ((win->rect.top & 1) << HREF_VSTART_SHIFT) | in ov772x_set_params()
1084 ((win->rect.left & 3) << HREF_HSTART_SHIFT) | in ov772x_set_params()
1085 ((win->rect.height & 1) << HREF_VSIZE_SHIFT) | in ov772x_set_params()
1086 ((win->rect.width & 3) << HREF_HSIZE_SHIFT)); in ov772x_set_params()
1090 ((win->rect.height & 1) << EXHCH_VSIZE_SHIFT) | in ov772x_set_params()
1091 ((win->rect.width & 3) << EXHCH_HSIZE_SHIFT)); in ov772x_set_params()
1128 ret = regmap_write(priv->regmap, COM7, win->com7_bit | cfmt->com7); in ov772x_set_params()
1133 ret = ov772x_set_frame_rate(priv, priv->fps, cfmt, win); in ov772x_set_params()
1173 sel->r.width = priv->win->rect.width; in ov772x_get_selection()
1174 sel->r.height = priv->win->rect.height; in ov772x_get_selection()
1191 mf->width = priv->win->rect.width; in ov772x_get_fmt()
1192 mf->height = priv->win->rect.height; in ov772x_get_fmt()
1207 const struct ov772x_win_size *win; in ov772x_set_fmt() local
1213 ov772x_select_params(mf, &cfmt, &win); in ov772x_set_fmt()
1216 mf->width = win->rect.width; in ov772x_set_fmt()
1217 mf->height = win->rect.height; in ov772x_set_fmt()
1242 ret = ov772x_set_params(priv, cfmt, win); in ov772x_set_fmt()
1246 priv->win = win; in ov772x_set_fmt()
1500 priv->win = &ov772x_win_sizes[0]; in ov772x_probe()