Lines Matching refs:mf
362 static int noon010_try_frame_size(struct v4l2_mbus_framefmt *mf, in noon010_try_frame_size() argument
371 int err = abs(fsize->width - mf->width) in noon010_try_frame_size()
372 + abs(fsize->height - mf->height); in noon010_try_frame_size()
381 mf->width = match->width; in noon010_try_frame_size()
382 mf->height = match->height; in noon010_try_frame_size()
510 struct v4l2_mbus_framefmt *mf; in noon010_get_fmt() local
514 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in noon010_get_fmt()
515 fmt->format = *mf; in noon010_get_fmt()
519 mf = &fmt->format; in noon010_get_fmt()
522 mf->width = info->curr_win->width; in noon010_get_fmt()
523 mf->height = info->curr_win->height; in noon010_get_fmt()
524 mf->code = info->curr_fmt->code; in noon010_get_fmt()
525 mf->colorspace = info->curr_fmt->colorspace; in noon010_get_fmt()
526 mf->field = V4L2_FIELD_NONE; in noon010_get_fmt()
534 struct v4l2_mbus_framefmt *mf) in noon010_try_fmt() argument
539 if (mf->code == noon010_formats[i].code) in noon010_try_fmt()
541 mf->code = noon010_formats[i].code; in noon010_try_fmt()
552 struct v4l2_mbus_framefmt *mf; in noon010_set_fmt() local
562 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in noon010_set_fmt()
563 *mf = fmt->format; in noon010_set_fmt()
644 struct v4l2_mbus_framefmt *mf = v4l2_subdev_get_try_format(sd, fh->pad, 0); in noon010_open() local
646 mf->width = noon010_sizes[0].width; in noon010_open()
647 mf->height = noon010_sizes[0].height; in noon010_open()
648 mf->code = noon010_formats[0].code; in noon010_open()
649 mf->colorspace = V4L2_COLORSPACE_JPEG; in noon010_open()
650 mf->field = V4L2_FIELD_NONE; in noon010_open()