Lines Matching refs:mf

620 				   struct v4l2_mbus_framefmt *mf)  in s5k6aa_get_pixfmt_index()  argument
625 if (mf->colorspace == s5k6aa_formats[i].colorspace && in s5k6aa_get_pixfmt_index()
626 mf->code == s5k6aa_formats[i].code) in s5k6aa_get_pixfmt_index()
1070 struct v4l2_mbus_framefmt *mf) in s5k6aa_try_format() argument
1074 v4l_bound_align_image(&mf->width, S5K6AA_WIN_WIDTH_MIN, in s5k6aa_try_format()
1076 &mf->height, S5K6AA_WIN_HEIGHT_MIN, in s5k6aa_try_format()
1079 if (mf->colorspace != V4L2_COLORSPACE_JPEG && in s5k6aa_try_format()
1080 mf->colorspace != V4L2_COLORSPACE_REC709) in s5k6aa_try_format()
1081 mf->colorspace = V4L2_COLORSPACE_JPEG; in s5k6aa_try_format()
1083 index = s5k6aa_get_pixfmt_index(s5k6aa, mf); in s5k6aa_try_format()
1085 mf->colorspace = s5k6aa_formats[index].colorspace; in s5k6aa_try_format()
1086 mf->code = s5k6aa_formats[index].code; in s5k6aa_try_format()
1087 mf->field = V4L2_FIELD_NONE; in s5k6aa_try_format()
1094 struct v4l2_mbus_framefmt *mf; in s5k6aa_get_fmt() local
1099 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in s5k6aa_get_fmt()
1100 fmt->format = *mf; in s5k6aa_get_fmt()
1116 struct v4l2_mbus_framefmt *mf; in s5k6aa_set_fmt() local
1124 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s5k6aa_set_fmt()
1130 mf = &preset->mbus_fmt; in s5k6aa_set_fmt()
1141 *mf = fmt->format; in s5k6aa_set_fmt()
1147 crop->width = clamp_t(unsigned int, crop->width, mf->width, in s5k6aa_set_fmt()
1149 crop->height = clamp_t(unsigned int, crop->height, mf->height, in s5k6aa_set_fmt()
1192 struct v4l2_mbus_framefmt *mf; in s5k6aa_set_selection() local
1203 mf = &s5k6aa->preset->mbus_fmt; in s5k6aa_set_selection()
1206 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in s5k6aa_set_selection()
1208 v4l_bound_align_image(&sel->r.width, mf->width, in s5k6aa_set_selection()
1210 &sel->r.height, mf->height, in s5k6aa_set_selection()