Lines Matching refs:mf
911 struct v4l2_mbus_framefmt *mf = &format->format; in mt9t112_get_fmt() local
918 mf->width = priv->frame.width; in mt9t112_get_fmt()
919 mf->height = priv->frame.height; in mt9t112_get_fmt()
920 mf->colorspace = priv->format->colorspace; in mt9t112_get_fmt()
921 mf->code = priv->format->code; in mt9t112_get_fmt()
922 mf->field = V4L2_FIELD_NONE; in mt9t112_get_fmt()
928 struct v4l2_mbus_framefmt *mf) in mt9t112_s_fmt() argument
933 .width = mf->width, in mt9t112_s_fmt()
934 .height = mf->height, in mt9t112_s_fmt()
940 ret = mt9t112_set_params(priv, &rect, mf->code); in mt9t112_s_fmt()
943 mf->colorspace = priv->format->colorspace; in mt9t112_s_fmt()
952 struct v4l2_mbus_framefmt *mf = &format->format; in mt9t112_set_fmt() local
962 if (mt9t112_cfmts[i].code == mf->code) in mt9t112_set_fmt()
966 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in mt9t112_set_fmt()
967 mf->colorspace = V4L2_COLORSPACE_JPEG; in mt9t112_set_fmt()
969 mf->colorspace = mt9t112_cfmts[i].colorspace; in mt9t112_set_fmt()
972 mt9t112_frame_check(&mf->width, &mf->height, &left, &top); in mt9t112_set_fmt()
974 mf->field = V4L2_FIELD_NONE; in mt9t112_set_fmt()
977 return mt9t112_s_fmt(sd, mf); in mt9t112_set_fmt()
978 cfg->try_fmt = *mf; in mt9t112_set_fmt()