Lines Matching refs:mf
680 static void ov772x_select_params(const struct v4l2_mbus_framefmt *mf, in ov772x_select_params() argument
690 if (mf->code == ov772x_cfmts[i].code) { in ov772x_select_params()
697 *win = ov772x_select_win(mf->width, mf->height); in ov772x_select_params()
880 struct v4l2_mbus_framefmt *mf) in ov772x_g_fmt() argument
884 mf->width = priv->win->rect.width; in ov772x_g_fmt()
885 mf->height = priv->win->rect.height; in ov772x_g_fmt()
886 mf->code = priv->cfmt->code; in ov772x_g_fmt()
887 mf->colorspace = priv->cfmt->colorspace; in ov772x_g_fmt()
888 mf->field = V4L2_FIELD_NONE; in ov772x_g_fmt()
893 static int ov772x_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov772x_s_fmt() argument
900 ov772x_select_params(mf, &cfmt, &win); in ov772x_s_fmt()
909 mf->code = cfmt->code; in ov772x_s_fmt()
910 mf->width = win->rect.width; in ov772x_s_fmt()
911 mf->height = win->rect.height; in ov772x_s_fmt()
912 mf->field = V4L2_FIELD_NONE; in ov772x_s_fmt()
913 mf->colorspace = cfmt->colorspace; in ov772x_s_fmt()
919 struct v4l2_mbus_framefmt *mf) in ov772x_try_fmt() argument
924 ov772x_select_params(mf, &cfmt, &win); in ov772x_try_fmt()
926 mf->code = cfmt->code; in ov772x_try_fmt()
927 mf->width = win->rect.width; in ov772x_try_fmt()
928 mf->height = win->rect.height; in ov772x_try_fmt()
929 mf->field = V4L2_FIELD_NONE; in ov772x_try_fmt()
930 mf->colorspace = cfmt->colorspace; in ov772x_try_fmt()