Lines Matching refs:format

289 	u32 val, format;
291 switch (config->format) {
293 format = ISPCCP2_LCx_CTRL_FORMAT_RAW8_DPCM10_VP;
297 format = ISPCCP2_LCx_CTRL_FORMAT_RAW10_VP; /* RAW10+VP */
311 ISPCCP2_LCx_CTRL_FORMAT_MASK_15_0, format);
318 ISPCCP2_LCx_CTRL_FORMAT_MASK, format);
352 struct v4l2_mbus_framefmt *format;
372 format = &ccp2->formats[CCP2_PAD_SINK];
376 ccp2->if_cfg.format = format->code;
377 ccp2->if_cfg.data_size = format->height;
469 /* source format is RAW8 */
480 /* source format is RAW10 */
613 * __ccp2_get_format - helper function for getting ccp2 format
617 * @which : wanted subdev format
618 * return format structure or NULL on error
631 * ccp2_try_format - Handle try format by pad subdev method
635 * @fmt : pointer to v4l2 mbus format structure
636 * @which : wanted subdev format
643 struct v4l2_mbus_framefmt *format;
668 /* Source format - copy sink format and change pixel code
673 format = __ccp2_get_format(ccp2, cfg, CCP2_PAD_SINK, which);
674 memcpy(fmt, format, sizeof(*fmt));
684 * ccp2_enum_mbus_code - Handle pixel format enumeration
695 struct v4l2_mbus_framefmt *format;
706 format = __ccp2_get_format(ccp2, cfg, CCP2_PAD_SINK,
708 code->code = format->code;
719 struct v4l2_mbus_framefmt format;
724 format.code = fse->code;
725 format.width = 1;
726 format.height = 1;
727 ccp2_try_format(ccp2, cfg, fse->pad, &format, fse->which);
728 fse->min_width = format.width;
729 fse->min_height = format.height;
731 if (format.code != fse->code)
734 format.code = fse->code;
735 format.width = -1;
736 format.height = -1;
737 ccp2_try_format(ccp2, cfg, fse->pad, &format, fse->which);
738 fse->max_width = format.width;
739 fse->max_height = format.height;
745 * ccp2_get_format - Handle get format by pads subdev method
748 * @fmt : pointer to v4l2 subdev format structure
755 struct v4l2_mbus_framefmt *format;
757 format = __ccp2_get_format(ccp2, cfg, fmt->pad, fmt->which);
758 if (format == NULL)
761 fmt->format = *format;
766 * ccp2_set_format - Handle set format by pads subdev method
769 * @fmt : pointer to v4l2 subdev format structure
776 struct v4l2_mbus_framefmt *format;
778 format = __ccp2_get_format(ccp2, cfg, fmt->pad, fmt->which);
779 if (format == NULL)
782 ccp2_try_format(ccp2, cfg, fmt->pad, &fmt->format, fmt->which);
783 *format = fmt->format;
785 /* Propagate the format from sink to source */
787 format = __ccp2_get_format(ccp2, cfg, CCP2_PAD_SOURCE,
789 *format = fmt->format;
790 ccp2_try_format(ccp2, cfg, CCP2_PAD_SOURCE, format, fmt->which);
807 struct v4l2_subdev_format format;
809 memset(&format, 0, sizeof(format));
810 format.pad = CCP2_PAD_SINK;
811 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
812 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
813 format.format.width = 4096;
814 format.format.height = 4096;
815 ccp2_set_format(sd, fh ? fh->pad : NULL, &format);
861 struct v4l2_mbus_framefmt *format;
863 format = &ccp2->formats[CCP2_PAD_SINK];
865 ccp2->mem_cfg.hsize_count = format->width;
866 ccp2->mem_cfg.vsize_count = format->height;
1094 * input format and width. If strict 128 bits alignment support is