Lines Matching refs:mf
358 static int noon010_try_frame_size(struct v4l2_mbus_framefmt *mf, in noon010_try_frame_size() argument
367 int err = abs(fsize->width - mf->width) in noon010_try_frame_size()
368 + abs(fsize->height - mf->height); in noon010_try_frame_size()
377 mf->width = match->width; in noon010_try_frame_size()
378 mf->height = match->height; in noon010_try_frame_size()
506 struct v4l2_mbus_framefmt *mf; in noon010_get_fmt() local
510 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in noon010_get_fmt()
511 fmt->format = *mf; in noon010_get_fmt()
515 mf = &fmt->format; in noon010_get_fmt()
518 mf->width = info->curr_win->width; in noon010_get_fmt()
519 mf->height = info->curr_win->height; in noon010_get_fmt()
520 mf->code = info->curr_fmt->code; in noon010_get_fmt()
521 mf->colorspace = info->curr_fmt->colorspace; in noon010_get_fmt()
522 mf->field = V4L2_FIELD_NONE; in noon010_get_fmt()
530 struct v4l2_mbus_framefmt *mf) in noon010_try_fmt() argument
535 if (mf->code == noon010_formats[i].code) in noon010_try_fmt()
537 mf->code = noon010_formats[i].code; in noon010_try_fmt()
548 struct v4l2_mbus_framefmt *mf; in noon010_set_fmt() local
558 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in noon010_set_fmt()
559 *mf = fmt->format; in noon010_set_fmt()
640 struct v4l2_mbus_framefmt *mf = v4l2_subdev_get_try_format(sd, fh->pad, 0); in noon010_open() local
642 mf->width = noon010_sizes[0].width; in noon010_open()
643 mf->height = noon010_sizes[0].height; in noon010_open()
644 mf->code = noon010_formats[0].code; in noon010_open()
645 mf->colorspace = V4L2_COLORSPACE_JPEG; in noon010_open()
646 mf->field = V4L2_FIELD_NONE; in noon010_open()