Lines Matching refs:mf
1049 struct v4l2_mbus_framefmt *mf; in ov2659_get_fmt() local
1054 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in ov2659_get_fmt()
1056 fmt->format = *mf; in ov2659_get_fmt()
1072 static void __ov2659_try_frame_size(struct v4l2_mbus_framefmt *mf, in __ov2659_try_frame_size() argument
1081 int err = abs(fsize->width - mf->width) in __ov2659_try_frame_size()
1082 + abs(fsize->height - mf->height); in __ov2659_try_frame_size()
1093 mf->width = match->width; in __ov2659_try_frame_size()
1094 mf->height = match->height; in __ov2659_try_frame_size()
1106 struct v4l2_mbus_framefmt *mf = &fmt->format; in ov2659_set_fmt() local
1113 __ov2659_try_frame_size(mf, &size); in ov2659_set_fmt()
1116 if (ov2659_formats[index].code == mf->code) in ov2659_set_fmt()
1122 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov2659_set_fmt()
1123 mf->code = ov2659_formats[index].code; in ov2659_set_fmt()
1124 mf->field = V4L2_FIELD_NONE; in ov2659_set_fmt()
1129 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in ov2659_set_fmt()
1130 *mf = fmt->format; in ov2659_set_fmt()