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