Lines Matching refs:fmt
639 struct v4l2_mbus_framefmt *fmt, in ccp2_try_format() argument
646 if (fmt->code != MEDIA_BUS_FMT_SGRBG10_DPCM8_1X8) in ccp2_try_format()
647 fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; in ccp2_try_format()
650 fmt->width = clamp_t(u32, fmt->width, in ccp2_try_format()
653 fmt->height = clamp_t(u32, fmt->height, in ccp2_try_format()
657 fmt->width = clamp_t(u32, fmt->width, in ccp2_try_format()
660 fmt->height = clamp_t(u32, fmt->height, in ccp2_try_format()
673 memcpy(fmt, format, sizeof(*fmt)); in ccp2_try_format()
674 fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; in ccp2_try_format()
678 fmt->field = V4L2_FIELD_NONE; in ccp2_try_format()
679 fmt->colorspace = V4L2_COLORSPACE_SRGB; in ccp2_try_format()
751 struct v4l2_subdev_format *fmt) in ccp2_get_format() argument
756 format = __ccp2_get_format(ccp2, cfg, fmt->pad, fmt->which); in ccp2_get_format()
760 fmt->format = *format; in ccp2_get_format()
772 struct v4l2_subdev_format *fmt) in ccp2_set_format() argument
777 format = __ccp2_get_format(ccp2, cfg, fmt->pad, fmt->which); in ccp2_set_format()
781 ccp2_try_format(ccp2, cfg, fmt->pad, &fmt->format, fmt->which); in ccp2_set_format()
782 *format = fmt->format; in ccp2_set_format()
785 if (fmt->pad == CCP2_PAD_SINK) { in ccp2_set_format()
787 fmt->which); in ccp2_set_format()
788 *format = fmt->format; in ccp2_set_format()
789 ccp2_try_format(ccp2, cfg, CCP2_PAD_SOURCE, format, fmt->which); in ccp2_set_format()