Lines Matching refs:mf
521 struct v4l2_mbus_framefmt *mf = &format->format;
528 mf = v4l2_subdev_state_get_format(sd_state, format->pad);
529 format->format = *mf;
533 mf->width = mt9m111->width;
534 mf->height = mt9m111->height;
535 mf->code = mt9m111->fmt->code;
536 mf->colorspace = mt9m111->fmt->colorspace;
537 mf->field = V4L2_FIELD_NONE;
538 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
539 mf->quantization = V4L2_QUANTIZATION_DEFAULT;
540 mf->xfer_func = V4L2_XFER_FUNC_DEFAULT;
623 struct v4l2_mbus_framefmt *mf = &format->format;
637 fmt = mt9m111_find_datafmt(mt9m111, mf->code);
653 mf->width = rect->width;
654 mf->height = rect->height;
657 if (mf->width > rect->width)
658 mf->width = rect->width;
659 if (mf->height > rect->height)
660 mf->height = rect->height;
664 mf->width, mf->height, fmt->code);
666 mf->code = fmt->code;
667 mf->colorspace = fmt->colorspace;
668 mf->field = V4L2_FIELD_NONE;
669 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
670 mf->quantization = V4L2_QUANTIZATION_DEFAULT;
671 mf->xfer_func = V4L2_XFER_FUNC_DEFAULT;
674 *v4l2_subdev_state_get_format(sd_state, 0) = *mf;
678 ret = mt9m111_setup_geometry(mt9m111, rect, mf->width, mf->height, mf->code);
680 ret = mt9m111_set_pixfmt(mt9m111, mf->code);
682 mt9m111->width = mf->width;
683 mt9m111->height = mf->height;