Lines Matching refs:mf
328 struct v4l2_mbus_framefmt *mf = &format->format;
334 mf = v4l2_subdev_get_try_format(sd, sd_state, 0);
335 format->format = *mf;
339 mf->width = mt9m001->rect.width;
340 mf->height = mt9m001->rect.height;
341 mf->code = mt9m001->fmt->code;
342 mf->colorspace = mt9m001->fmt->colorspace;
343 mf->field = V4L2_FIELD_NONE;
344 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
345 mf->quantization = V4L2_QUANTIZATION_DEFAULT;
346 mf->xfer_func = V4L2_XFER_FUNC_DEFAULT;
353 struct v4l2_mbus_framefmt *mf)
362 .r.width = mf->width,
363 .r.height = mf->height,
370 mf->width = mt9m001->rect.width;
371 mf->height = mt9m001->rect.height;
373 mf->colorspace = fmt->colorspace;
383 struct v4l2_mbus_framefmt *mf = &format->format;
391 v4l_bound_align_image(&mf->width, MT9M001_MIN_WIDTH,
393 &mf->height, MT9M001_MIN_HEIGHT + mt9m001->y_skip_top,
397 mf->height = ALIGN(mf->height - 1, 2);
399 fmt = mt9m001_find_datafmt(mf->code, mt9m001->fmts,
403 mf->code = fmt->code;
406 mf->colorspace = fmt->colorspace;
407 mf->field = V4L2_FIELD_NONE;
408 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
409 mf->quantization = V4L2_QUANTIZATION_DEFAULT;
410 mf->xfer_func = V4L2_XFER_FUNC_DEFAULT;
413 return mt9m001_s_fmt(sd, fmt, mf);
414 sd_state->pads->try_fmt = *mf;