Lines Matching refs:mf
379 struct v4l2_mbus_framefmt *mf) in mt9v022_g_fmt() argument
384 mf->width = mt9v022->rect.width; in mt9v022_g_fmt()
385 mf->height = mt9v022->rect.height; in mt9v022_g_fmt()
386 mf->code = mt9v022->fmt->code; in mt9v022_g_fmt()
387 mf->colorspace = mt9v022->fmt->colorspace; in mt9v022_g_fmt()
388 mf->field = V4L2_FIELD_NONE; in mt9v022_g_fmt()
394 struct v4l2_mbus_framefmt *mf) in mt9v022_s_fmt() argument
402 .width = mf->width, in mt9v022_s_fmt()
403 .height = mf->height, in mt9v022_s_fmt()
412 switch (mf->code) { in mt9v022_s_fmt()
430 mf->width = mt9v022->rect.width; in mt9v022_s_fmt()
431 mf->height = mt9v022->rect.height; in mt9v022_s_fmt()
432 mt9v022->fmt = mt9v022_find_datafmt(mf->code, in mt9v022_s_fmt()
434 mf->colorspace = mt9v022->fmt->colorspace; in mt9v022_s_fmt()
441 struct v4l2_mbus_framefmt *mf) in mt9v022_try_fmt() argument
446 int align = mf->code == MEDIA_BUS_FMT_SBGGR8_1X8 || in mt9v022_try_fmt()
447 mf->code == MEDIA_BUS_FMT_SBGGR10_1X10; in mt9v022_try_fmt()
449 v4l_bound_align_image(&mf->width, MT9V022_MIN_WIDTH, in mt9v022_try_fmt()
451 &mf->height, MT9V022_MIN_HEIGHT + mt9v022->y_skip_top, in mt9v022_try_fmt()
454 fmt = mt9v022_find_datafmt(mf->code, mt9v022->fmts, in mt9v022_try_fmt()
458 mf->code = fmt->code; in mt9v022_try_fmt()
461 mf->colorspace = fmt->colorspace; in mt9v022_try_fmt()