Lines Matching refs:mf
382 struct v4l2_mbus_framefmt *mf = &format->format; in mt9v022_get_fmt() local
389 mf->width = mt9v022->rect.width; in mt9v022_get_fmt()
390 mf->height = mt9v022->rect.height; in mt9v022_get_fmt()
391 mf->code = mt9v022->fmt->code; in mt9v022_get_fmt()
392 mf->colorspace = mt9v022->fmt->colorspace; in mt9v022_get_fmt()
393 mf->field = V4L2_FIELD_NONE; in mt9v022_get_fmt()
399 struct v4l2_mbus_framefmt *mf) in mt9v022_s_fmt() argument
407 .width = mf->width, in mt9v022_s_fmt()
408 .height = mf->height, in mt9v022_s_fmt()
417 switch (mf->code) { in mt9v022_s_fmt()
435 mf->width = mt9v022->rect.width; in mt9v022_s_fmt()
436 mf->height = mt9v022->rect.height; in mt9v022_s_fmt()
437 mt9v022->fmt = mt9v022_find_datafmt(mf->code, in mt9v022_s_fmt()
439 mf->colorspace = mt9v022->fmt->colorspace; in mt9v022_s_fmt()
449 struct v4l2_mbus_framefmt *mf = &format->format; in mt9v022_set_fmt() local
453 int align = mf->code == MEDIA_BUS_FMT_SBGGR8_1X8 || in mt9v022_set_fmt()
454 mf->code == MEDIA_BUS_FMT_SBGGR10_1X10; in mt9v022_set_fmt()
459 v4l_bound_align_image(&mf->width, MT9V022_MIN_WIDTH, in mt9v022_set_fmt()
461 &mf->height, MT9V022_MIN_HEIGHT + mt9v022->y_skip_top, in mt9v022_set_fmt()
464 fmt = mt9v022_find_datafmt(mf->code, mt9v022->fmts, in mt9v022_set_fmt()
468 mf->code = fmt->code; in mt9v022_set_fmt()
471 mf->colorspace = fmt->colorspace; in mt9v022_set_fmt()
474 return mt9v022_s_fmt(sd, mf); in mt9v022_set_fmt()
475 cfg->try_fmt = *mf; in mt9v022_set_fmt()