Lines Matching refs:ffmt

575 	struct fimc_fmt *ffmt;  in fimc_capture_try_format()  local
588 ffmt = fimc_find_format(fourcc, code, mask, 0); in fimc_capture_try_format()
589 if (WARN_ON(!ffmt)) in fimc_capture_try_format()
593 *code = ffmt->mbus_code; in fimc_capture_try_format()
595 *fourcc = ffmt->fourcc; in fimc_capture_try_format()
598 max_w = fimc_fmt_is_user_defined(ffmt->color) ? in fimc_capture_try_format()
604 fimc_fmt_is_user_defined(ffmt->color) ? in fimc_capture_try_format()
607 return ffmt; in fimc_capture_try_format()
610 if (fimc_fmt_is_user_defined(ffmt->color)) { in fimc_capture_try_format()
613 return ffmt; in fimc_capture_try_format()
625 align_h = fimc_fmt_is_rgb(ffmt->color) ? 0 : 1; in fimc_capture_try_format()
627 depth = fimc_get_format_depth(ffmt); in fimc_capture_try_format()
638 return ffmt; in fimc_capture_try_format()
771 struct fimc_fmt *ffmt; in fimc_pipeline_try_format() local
786 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format()
788 if (ffmt == NULL) { in fimc_pipeline_try_format()
795 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format()
824 fcc = ffmt->fourcc; in fimc_pipeline_try_format()
827 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height, in fimc_pipeline_try_format()
829 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height, in fimc_pipeline_try_format()
831 if (ffmt && ffmt->mbus_code) in fimc_pipeline_try_format()
832 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format()
839 if (fmt_id && ffmt) in fimc_pipeline_try_format()
840 *fmt_id = ffmt; in fimc_pipeline_try_format()
1521 struct fimc_fmt *ffmt; in fimc_subdev_set_fmt() local
1530 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height, in fimc_subdev_set_fmt()
1541 if (WARN_ON(ffmt == NULL)) in fimc_subdev_set_fmt()
1547 fimc_capture_mark_jpeg_xfer(ctx, ffmt->color); in fimc_subdev_set_fmt()
1565 ff->fmt = ffmt; in fimc_subdev_set_fmt()