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()
883 struct v4l2_mbus_framefmt *mf = &format->format; in ov772x_get_fmt() local
889 mf->width = priv->win->rect.width; in ov772x_get_fmt()
890 mf->height = priv->win->rect.height; in ov772x_get_fmt()
891 mf->code = priv->cfmt->code; in ov772x_get_fmt()
892 mf->colorspace = priv->cfmt->colorspace; in ov772x_get_fmt()
893 mf->field = V4L2_FIELD_NONE; in ov772x_get_fmt()
898 static int ov772x_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov772x_s_fmt() argument
905 ov772x_select_params(mf, &cfmt, &win); in ov772x_s_fmt()
914 mf->code = cfmt->code; in ov772x_s_fmt()
915 mf->width = win->rect.width; in ov772x_s_fmt()
916 mf->height = win->rect.height; in ov772x_s_fmt()
917 mf->field = V4L2_FIELD_NONE; in ov772x_s_fmt()
918 mf->colorspace = cfmt->colorspace; in ov772x_s_fmt()
927 struct v4l2_mbus_framefmt *mf = &format->format; in ov772x_set_fmt() local
934 ov772x_select_params(mf, &cfmt, &win); in ov772x_set_fmt()
936 mf->code = cfmt->code; in ov772x_set_fmt()
937 mf->width = win->rect.width; in ov772x_set_fmt()
938 mf->height = win->rect.height; in ov772x_set_fmt()
939 mf->field = V4L2_FIELD_NONE; in ov772x_set_fmt()
940 mf->colorspace = cfmt->colorspace; in ov772x_set_fmt()
943 return ov772x_s_fmt(sd, mf); in ov772x_set_fmt()
944 cfg->try_fmt = *mf; in ov772x_set_fmt()