Lines Matching refs:mf
770 struct v4l2_mbus_framefmt *mf = &sfmt.format; in fimc_pipeline_try_format() local
785 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format()
794 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format()
807 mf->code = tfmt->code; in fimc_pipeline_try_format()
820 if (mf->code != tfmt->code) in fimc_pipeline_try_format()
824 tfmt->width = mf->width; in fimc_pipeline_try_format()
825 tfmt->height = mf->height; in fimc_pipeline_try_format()
831 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format()
832 if (mf->width != tfmt->width || mf->height != tfmt->height) in fimc_pipeline_try_format()
834 tfmt->code = mf->code; in fimc_pipeline_try_format()
840 *tfmt = *mf; in fimc_pipeline_try_format()
946 struct v4l2_mbus_framefmt *mf; in __video_try_or_set_format() local
948 mf = try ? &mbus_fmt : &fimc->vid_cap.ci_fmt; in __video_try_or_set_format()
950 mf->code = (*out_fmt)->mbus_code; in __video_try_or_set_format()
951 mf->width = pix->width; in __video_try_or_set_format()
952 mf->height = pix->height; in __video_try_or_set_format()
955 ret = fimc_pipeline_try_format(ctx, mf, inp_fmt, try); in __video_try_or_set_format()
961 pix->width = mf->width; in __video_try_or_set_format()
962 pix->height = mf->height; in __video_try_or_set_format()
1479 struct v4l2_mbus_framefmt *mf; in fimc_subdev_get_fmt() local
1482 mf = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in fimc_subdev_get_fmt()
1483 fmt->format = *mf; in fimc_subdev_get_fmt()
1487 mf = &fmt->format; in fimc_subdev_get_fmt()
1493 mf->code = ff->fmt->mbus_code; in fimc_subdev_get_fmt()
1495 mf->width = ff->width; in fimc_subdev_get_fmt()
1496 mf->height = ff->height; in fimc_subdev_get_fmt()
1499 *mf = fimc->vid_cap.wb_fmt; in fimc_subdev_get_fmt()
1503 *mf = fimc->vid_cap.ci_fmt; in fimc_subdev_get_fmt()
1508 mf->colorspace = V4L2_COLORSPACE_JPEG; in fimc_subdev_get_fmt()
1518 struct v4l2_mbus_framefmt *mf = &fmt->format; in fimc_subdev_set_fmt() local
1525 fmt->pad, mf->code, mf->width, mf->height); in fimc_subdev_set_fmt()
1531 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height, in fimc_subdev_set_fmt()
1532 &mf->code, NULL, fmt->pad); in fimc_subdev_set_fmt()
1534 mf->colorspace = V4L2_COLORSPACE_JPEG; in fimc_subdev_set_fmt()
1537 mf = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in fimc_subdev_set_fmt()
1538 *mf = fmt->format; in fimc_subdev_set_fmt()
1552 mf->width = ctx->s_frame.width; in fimc_subdev_set_fmt()
1553 mf->height = ctx->s_frame.height; in fimc_subdev_set_fmt()
1559 set_frame_bounds(ff, mf->width, mf->height); in fimc_subdev_set_fmt()
1562 vc->wb_fmt = *mf; in fimc_subdev_set_fmt()
1564 vc->ci_fmt = *mf; in fimc_subdev_set_fmt()
1570 set_frame_crop(ff, 0, 0, mf->width, mf->height); in fimc_subdev_set_fmt()