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