Lines Matching refs:mf
1236 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_get_fmt() local
1239 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s3c_camif_subdev_get_fmt()
1240 fmt->format = *mf; in s3c_camif_subdev_get_fmt()
1249 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt()
1254 mf->width = camif->camif_crop.width; in s3c_camif_subdev_get_fmt()
1255 mf->height = camif->camif_crop.height; in s3c_camif_subdev_get_fmt()
1256 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt()
1261 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_get_fmt()
1262 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_get_fmt()
1267 struct v4l2_mbus_framefmt *mf, int pad) in __camif_subdev_try_format() argument
1277 if (camif_mbus_formats[i] == mf->code) in __camif_subdev_try_format()
1280 mf->code = camif_mbus_formats[i]; in __camif_subdev_try_format()
1283 v4l_bound_align_image(&mf->width, 8, CAMIF_MAX_PIX_WIDTH, in __camif_subdev_try_format()
1285 &mf->height, 8, CAMIF_MAX_PIX_HEIGHT, 0, in __camif_subdev_try_format()
1289 v4l_bound_align_image(&mf->width, 8, crop->width, in __camif_subdev_try_format()
1291 &mf->height, 8, crop->height, in __camif_subdev_try_format()
1295 v4l2_dbg(1, debug, &camif->subdev, "%ux%u\n", mf->width, mf->height); in __camif_subdev_try_format()
1303 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_set_fmt() local
1308 fmt->pad, mf->code, mf->width, mf->height); in s3c_camif_subdev_set_fmt()
1310 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_set_fmt()
1311 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_set_fmt()
1324 __camif_subdev_try_format(camif, mf, fmt->pad); in s3c_camif_subdev_set_fmt()
1327 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s3c_camif_subdev_set_fmt()
1328 *mf = fmt->format; in s3c_camif_subdev_set_fmt()
1335 camif->mbus_fmt = *mf; in s3c_camif_subdev_set_fmt()
1337 crop->width = mf->width; in s3c_camif_subdev_set_fmt()
1338 crop->height = mf->height; in s3c_camif_subdev_set_fmt()
1348 frame->f_width = mf->width; in s3c_camif_subdev_set_fmt()
1349 frame->f_height = mf->height; in s3c_camif_subdev_set_fmt()
1355 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_set_fmt()
1356 mf->width = crop->width; in s3c_camif_subdev_set_fmt()
1357 mf->height = crop->height; in s3c_camif_subdev_set_fmt()
1371 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in s3c_camif_subdev_get_selection() local
1388 sel->r.width = mf->width; in s3c_camif_subdev_get_selection()
1389 sel->r.height = mf->height; in s3c_camif_subdev_get_selection()
1398 crop->height, mf->width, mf->height); in s3c_camif_subdev_get_selection()
1405 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in __camif_try_crop() local
1417 v4l_bound_align_image(&r->width, 0, mf->width, in __camif_try_crop()
1419 &r->height, 0, mf->height, 1, 0); in __camif_try_crop()
1421 v4l_bound_align_image(&left, 0, mf->width - r->width, in __camif_try_crop()
1423 &top, 0, mf->height - r->height, 2, 0); in __camif_try_crop()
1427 r->width = mf->width - left; in __camif_try_crop()
1428 r->height = mf->height - top; in __camif_try_crop()
1449 r->left, r->top, r->width, r->height, mf->width, mf->height); in __camif_try_crop()