Lines Matching refs:mf
1237 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_get_fmt() local
1240 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s3c_camif_subdev_get_fmt()
1241 fmt->format = *mf; in s3c_camif_subdev_get_fmt()
1250 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt()
1255 mf->width = camif->camif_crop.width; in s3c_camif_subdev_get_fmt()
1256 mf->height = camif->camif_crop.height; in s3c_camif_subdev_get_fmt()
1257 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt()
1262 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_get_fmt()
1263 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_get_fmt()
1268 struct v4l2_mbus_framefmt *mf, int pad) in __camif_subdev_try_format() argument
1278 if (camif_mbus_formats[i] == mf->code) in __camif_subdev_try_format()
1281 mf->code = camif_mbus_formats[i]; in __camif_subdev_try_format()
1284 v4l_bound_align_image(&mf->width, 8, CAMIF_MAX_PIX_WIDTH, in __camif_subdev_try_format()
1286 &mf->height, 8, CAMIF_MAX_PIX_HEIGHT, 0, in __camif_subdev_try_format()
1290 v4l_bound_align_image(&mf->width, 8, crop->width, in __camif_subdev_try_format()
1292 &mf->height, 8, crop->height, in __camif_subdev_try_format()
1296 v4l2_dbg(1, debug, &camif->subdev, "%ux%u\n", mf->width, mf->height); in __camif_subdev_try_format()
1304 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_set_fmt() local
1309 fmt->pad, mf->code, mf->width, mf->height); in s3c_camif_subdev_set_fmt()
1311 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_set_fmt()
1312 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_set_fmt()
1325 __camif_subdev_try_format(camif, mf, fmt->pad); in s3c_camif_subdev_set_fmt()
1328 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s3c_camif_subdev_set_fmt()
1329 *mf = fmt->format; in s3c_camif_subdev_set_fmt()
1336 camif->mbus_fmt = *mf; in s3c_camif_subdev_set_fmt()
1338 crop->width = mf->width; in s3c_camif_subdev_set_fmt()
1339 crop->height = mf->height; in s3c_camif_subdev_set_fmt()
1349 frame->f_width = mf->width; in s3c_camif_subdev_set_fmt()
1350 frame->f_height = mf->height; in s3c_camif_subdev_set_fmt()
1356 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_set_fmt()
1357 mf->width = crop->width; in s3c_camif_subdev_set_fmt()
1358 mf->height = crop->height; in s3c_camif_subdev_set_fmt()
1372 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in s3c_camif_subdev_get_selection() local
1389 sel->r.width = mf->width; in s3c_camif_subdev_get_selection()
1390 sel->r.height = mf->height; in s3c_camif_subdev_get_selection()
1399 crop->height, mf->width, mf->height); in s3c_camif_subdev_get_selection()
1406 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in __camif_try_crop() local
1418 v4l_bound_align_image(&r->width, 0, mf->width, in __camif_try_crop()
1420 &r->height, 0, mf->height, 1, 0); in __camif_try_crop()
1422 v4l_bound_align_image(&left, 0, mf->width - r->width, in __camif_try_crop()
1424 &top, 0, mf->height - r->height, 2, 0); in __camif_try_crop()
1428 r->width = mf->width - left; in __camif_try_crop()
1429 r->height = mf->height - top; in __camif_try_crop()
1450 r->left, r->top, r->width, r->height, mf->width, mf->height); in __camif_try_crop()