Lines Matching refs:mf
259 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m001_get_fmt() local
264 mf->width = mt9m001->rect.width; in mt9m001_get_fmt()
265 mf->height = mt9m001->rect.height; in mt9m001_get_fmt()
266 mf->code = mt9m001->fmt->code; in mt9m001_get_fmt()
267 mf->colorspace = mt9m001->fmt->colorspace; in mt9m001_get_fmt()
268 mf->field = V4L2_FIELD_NONE; in mt9m001_get_fmt()
274 struct v4l2_mbus_framefmt *mf) in mt9m001_s_fmt() argument
282 .width = mf->width, in mt9m001_s_fmt()
283 .height = mf->height, in mt9m001_s_fmt()
291 mf->width = mt9m001->rect.width; in mt9m001_s_fmt()
292 mf->height = mt9m001->rect.height; in mt9m001_s_fmt()
293 mt9m001->fmt = mt9m001_find_datafmt(mf->code, in mt9m001_s_fmt()
295 mf->colorspace = mt9m001->fmt->colorspace; in mt9m001_s_fmt()
305 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m001_set_fmt() local
313 v4l_bound_align_image(&mf->width, MT9M001_MIN_WIDTH, in mt9m001_set_fmt()
315 &mf->height, MT9M001_MIN_HEIGHT + mt9m001->y_skip_top, in mt9m001_set_fmt()
319 mf->height = ALIGN(mf->height - 1, 2); in mt9m001_set_fmt()
321 fmt = mt9m001_find_datafmt(mf->code, mt9m001->fmts, in mt9m001_set_fmt()
325 mf->code = fmt->code; in mt9m001_set_fmt()
328 mf->colorspace = fmt->colorspace; in mt9m001_set_fmt()
331 return mt9m001_s_fmt(sd, mf); in mt9m001_set_fmt()
332 cfg->try_fmt = *mf; in mt9m001_set_fmt()