Lines Matching refs:mf

767 	struct v4l2_mbus_framefmt *mf = &sfmt.format;  in fimc_pipeline_try_format()  local
784 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format()
793 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format()
806 mf->code = tfmt->code; in fimc_pipeline_try_format()
819 if (mf->code != tfmt->code) in fimc_pipeline_try_format()
823 tfmt->width = mf->width; in fimc_pipeline_try_format()
824 tfmt->height = mf->height; in fimc_pipeline_try_format()
830 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format()
831 if (mf->width != tfmt->width || mf->height != tfmt->height) in fimc_pipeline_try_format()
833 tfmt->code = mf->code; in fimc_pipeline_try_format()
839 *tfmt = *mf; in fimc_pipeline_try_format()
945 struct v4l2_mbus_framefmt *mf; in __video_try_or_set_format() local
947 mf = try ? &mbus_fmt : &fimc->vid_cap.ci_fmt; in __video_try_or_set_format()
949 mf->code = (*out_fmt)->mbus_code; in __video_try_or_set_format()
950 mf->width = pix->width; in __video_try_or_set_format()
951 mf->height = pix->height; in __video_try_or_set_format()
954 ret = fimc_pipeline_try_format(ctx, mf, inp_fmt, try); in __video_try_or_set_format()
960 pix->width = mf->width; in __video_try_or_set_format()
961 pix->height = mf->height; in __video_try_or_set_format()
1475 struct v4l2_mbus_framefmt *mf; in fimc_subdev_get_fmt() local
1478 mf = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in fimc_subdev_get_fmt()
1479 fmt->format = *mf; in fimc_subdev_get_fmt()
1483 mf = &fmt->format; in fimc_subdev_get_fmt()
1489 mf->code = ff->fmt->mbus_code; in fimc_subdev_get_fmt()
1491 mf->width = ff->width; in fimc_subdev_get_fmt()
1492 mf->height = ff->height; in fimc_subdev_get_fmt()
1495 *mf = fimc->vid_cap.wb_fmt; in fimc_subdev_get_fmt()
1499 *mf = fimc->vid_cap.ci_fmt; in fimc_subdev_get_fmt()
1504 mf->colorspace = V4L2_COLORSPACE_JPEG; in fimc_subdev_get_fmt()
1514 struct v4l2_mbus_framefmt *mf = &fmt->format; in fimc_subdev_set_fmt() local
1521 fmt->pad, mf->code, mf->width, mf->height); in fimc_subdev_set_fmt()
1527 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height, in fimc_subdev_set_fmt()
1528 &mf->code, NULL, fmt->pad); in fimc_subdev_set_fmt()
1530 mf->colorspace = V4L2_COLORSPACE_JPEG; in fimc_subdev_set_fmt()
1533 mf = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in fimc_subdev_set_fmt()
1534 *mf = fmt->format; in fimc_subdev_set_fmt()
1548 mf->width = ctx->s_frame.width; in fimc_subdev_set_fmt()
1549 mf->height = ctx->s_frame.height; in fimc_subdev_set_fmt()
1555 set_frame_bounds(ff, mf->width, mf->height); in fimc_subdev_set_fmt()
1558 vc->wb_fmt = *mf; in fimc_subdev_set_fmt()
1560 vc->ci_fmt = *mf; in fimc_subdev_set_fmt()
1566 set_frame_crop(ff, 0, 0, mf->width, mf->height); in fimc_subdev_set_fmt()