Lines Matching refs:mf
327 struct v4l2_mbus_framefmt *mf = &format->format;
333 mf = v4l2_subdev_get_try_format(sd, cfg, 0);
334 format->format = *mf;
338 mf->width = mt9m001->rect.width;
339 mf->height = mt9m001->rect.height;
340 mf->code = mt9m001->fmt->code;
341 mf->colorspace = mt9m001->fmt->colorspace;
342 mf->field = V4L2_FIELD_NONE;
343 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
344 mf->quantization = V4L2_QUANTIZATION_DEFAULT;
345 mf->xfer_func = V4L2_XFER_FUNC_DEFAULT;
352 struct v4l2_mbus_framefmt *mf)
361 .r.width = mf->width,
362 .r.height = mf->height,
369 mf->width = mt9m001->rect.width;
370 mf->height = mt9m001->rect.height;
372 mf->colorspace = fmt->colorspace;
382 struct v4l2_mbus_framefmt *mf = &format->format;
390 v4l_bound_align_image(&mf->width, MT9M001_MIN_WIDTH,
392 &mf->height, MT9M001_MIN_HEIGHT + mt9m001->y_skip_top,
396 mf->height = ALIGN(mf->height - 1, 2);
398 fmt = mt9m001_find_datafmt(mf->code, mt9m001->fmts,
402 mf->code = fmt->code;
405 mf->colorspace = fmt->colorspace;
406 mf->field = V4L2_FIELD_NONE;
407 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
408 mf->quantization = V4L2_QUANTIZATION_DEFAULT;
409 mf->xfer_func = V4L2_XFER_FUNC_DEFAULT;
412 return mt9m001_s_fmt(sd, fmt, mf);
413 cfg->try_fmt = *mf;