Lines Matching refs:ffmt

572 	const struct fimc_fmt *ffmt;  in fimc_capture_try_format()  local
586 ffmt = fimc_find_format(fourcc, code, mask, 0); in fimc_capture_try_format()
587 if (WARN_ON(!ffmt)) in fimc_capture_try_format()
591 *code = ffmt->mbus_code; in fimc_capture_try_format()
593 *fourcc = ffmt->fourcc; in fimc_capture_try_format()
596 max_w = fimc_fmt_is_user_defined(ffmt->color) ? in fimc_capture_try_format()
602 fimc_fmt_is_user_defined(ffmt->color) ? in fimc_capture_try_format()
605 return ffmt; in fimc_capture_try_format()
608 if (fimc_fmt_is_user_defined(ffmt->color)) { in fimc_capture_try_format()
611 return ffmt; in fimc_capture_try_format()
623 align_h = fimc_fmt_is_rgb(ffmt->color) ? 0 : 1; in fimc_capture_try_format()
625 depth = fimc_get_format_depth(ffmt); in fimc_capture_try_format()
636 return ffmt; in fimc_capture_try_format()
771 const struct fimc_fmt *ffmt; in fimc_pipeline_try_format() local
785 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format()
787 if (ffmt == NULL) { in fimc_pipeline_try_format()
794 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format()
823 fcc = ffmt->fourcc; in fimc_pipeline_try_format()
826 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height, in fimc_pipeline_try_format()
828 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height, in fimc_pipeline_try_format()
830 if (ffmt && ffmt->mbus_code) in fimc_pipeline_try_format()
831 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format()
838 if (fmt_id && ffmt) in fimc_pipeline_try_format()
839 *fmt_id = ffmt; in fimc_pipeline_try_format()
1522 const struct fimc_fmt *ffmt; in fimc_subdev_set_fmt() local
1531 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height, in fimc_subdev_set_fmt()
1542 if (WARN_ON(ffmt == NULL)) in fimc_subdev_set_fmt()
1548 fimc_capture_mark_jpeg_xfer(ctx, ffmt->color); in fimc_subdev_set_fmt()
1566 ff->fmt = ffmt; in fimc_subdev_set_fmt()