Lines Matching refs:mf
1216 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_get_fmt() local
1219 mf = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in s3c_camif_subdev_get_fmt()
1220 fmt->format = *mf; in s3c_camif_subdev_get_fmt()
1229 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt()
1234 mf->width = camif->camif_crop.width; in s3c_camif_subdev_get_fmt()
1235 mf->height = camif->camif_crop.height; in s3c_camif_subdev_get_fmt()
1236 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt()
1241 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_get_fmt()
1242 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_get_fmt()
1247 struct v4l2_mbus_framefmt *mf, int pad) in __camif_subdev_try_format() argument
1257 if (camif_mbus_formats[i] == mf->code) in __camif_subdev_try_format()
1261 mf->code = camif_mbus_formats[0]; in __camif_subdev_try_format()
1264 v4l_bound_align_image(&mf->width, 8, CAMIF_MAX_PIX_WIDTH, in __camif_subdev_try_format()
1266 &mf->height, 8, CAMIF_MAX_PIX_HEIGHT, 0, in __camif_subdev_try_format()
1270 v4l_bound_align_image(&mf->width, 8, crop->width, in __camif_subdev_try_format()
1272 &mf->height, 8, crop->height, in __camif_subdev_try_format()
1276 v4l2_dbg(1, debug, &camif->subdev, "%ux%u\n", mf->width, mf->height); in __camif_subdev_try_format()
1284 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_set_fmt() local
1289 fmt->pad, mf->code, mf->width, mf->height); in s3c_camif_subdev_set_fmt()
1291 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_set_fmt()
1292 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_set_fmt()
1305 __camif_subdev_try_format(camif, mf, fmt->pad); in s3c_camif_subdev_set_fmt()
1308 mf = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in s3c_camif_subdev_set_fmt()
1309 *mf = fmt->format; in s3c_camif_subdev_set_fmt()
1316 camif->mbus_fmt = *mf; in s3c_camif_subdev_set_fmt()
1318 crop->width = mf->width; in s3c_camif_subdev_set_fmt()
1319 crop->height = mf->height; in s3c_camif_subdev_set_fmt()
1329 frame->f_width = mf->width; in s3c_camif_subdev_set_fmt()
1330 frame->f_height = mf->height; in s3c_camif_subdev_set_fmt()
1336 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_set_fmt()
1337 mf->width = crop->width; in s3c_camif_subdev_set_fmt()
1338 mf->height = crop->height; in s3c_camif_subdev_set_fmt()
1352 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in s3c_camif_subdev_get_selection() local
1369 sel->r.width = mf->width; in s3c_camif_subdev_get_selection()
1370 sel->r.height = mf->height; in s3c_camif_subdev_get_selection()
1379 crop->height, mf->width, mf->height); in s3c_camif_subdev_get_selection()
1386 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in __camif_try_crop() local
1398 v4l_bound_align_image(&r->width, 0, mf->width, in __camif_try_crop()
1400 &r->height, 0, mf->height, 1, 0); in __camif_try_crop()
1402 v4l_bound_align_image(&left, 0, mf->width - r->width, in __camif_try_crop()
1404 &top, 0, mf->height - r->height, 2, 0); in __camif_try_crop()
1408 r->width = mf->width - left; in __camif_try_crop()
1409 r->height = mf->height - top; in __camif_try_crop()
1430 r->left, r->top, r->width, r->height, mf->width, mf->height); in __camif_try_crop()