Lines Matching refs:code

266 	if ((format->code != MEDIA_BUS_FMT_SGRBG10_1X10) &&
267 (format->code != MEDIA_BUS_FMT_SRGGB10_1X10) &&
268 (format->code != MEDIA_BUS_FMT_SBGGR10_1X10) &&
269 (format->code != MEDIA_BUS_FMT_SGBRG10_1X10))
616 info = omap3isp_video_format_info(ccdc->formats[CCDC_PAD_SINK].code);
816 if (!format->code) {
818 * This is indicated by a pixel code set to 0.
835 info = omap3isp_video_format_info(ccdc->formats[CCDC_PAD_SINK].code);
972 if (format->code == MEDIA_BUS_FMT_YUYV8_2X8 ||
973 format->code == MEDIA_BUS_FMT_UYVY8_2X8) {
1021 if (format->code == MEDIA_BUS_FMT_UYVY8_2X8)
1155 fmt_info = omap3isp_video_format_info(fmt_src.format.code);
1159 fmt_info = omap3isp_video_format_info(format->code);
1165 else if (fmt_info->code == MEDIA_BUS_FMT_YUYV8_2X8)
1167 else if (fmt_info->code == MEDIA_BUS_FMT_UYVY8_2X8)
1195 switch (format->code) {
1264 if (format->code == MEDIA_BUS_FMT_YUYV8_1X16)
1275 if (omap3isp_video_format_info(format->code)->width <= 8 || ccdc->bt656)
1836 * Return 0 on success or a negative error code otherwise.
1982 if (fmt->code == ccdc_fmts[i])
1988 fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10;
2001 pixelcode = fmt->code;
2012 if (fmt->code == MEDIA_BUS_FMT_YUYV8_2X8 ||
2013 fmt->code == MEDIA_BUS_FMT_UYVY8_2X8) {
2019 fmt->code = pixelcode;
2021 if (fmt->code == MEDIA_BUS_FMT_YUYV8_2X8)
2022 fmt->code = MEDIA_BUS_FMT_YUYV8_1X16;
2023 else if (fmt->code == MEDIA_BUS_FMT_UYVY8_2X8)
2024 fmt->code = MEDIA_BUS_FMT_UYVY8_1X16;
2048 info = omap3isp_video_format_info(fmt->code);
2049 fmt->code = info->truncated;
2052 if (fmt->code == MEDIA_BUS_FMT_YUYV8_2X8 ||
2053 fmt->code == MEDIA_BUS_FMT_UYVY8_2X8)
2054 fmt->code = 0;
2087 info = omap3isp_video_format_info(sink->code);
2118 * @code : pointer to v4l2_subdev_mbus_code_enum structure
2123 struct v4l2_subdev_mbus_code_enum *code)
2128 switch (code->pad) {
2130 if (code->index >= ARRAY_SIZE(ccdc_fmts))
2133 code->code = ccdc_fmts[code->index];
2137 format = __ccdc_get_format(ccdc, cfg, code->pad,
2138 code->which);
2140 if (format->code == MEDIA_BUS_FMT_YUYV8_2X8 ||
2141 format->code == MEDIA_BUS_FMT_UYVY8_2X8) {
2143 if (code->index == 0)
2144 code->code = MEDIA_BUS_FMT_YUYV8_1X16;
2145 else if (code->index == 1)
2146 code->code = MEDIA_BUS_FMT_UYVY8_1X16;
2153 if (code->index == 0)
2154 code->code = format->code;
2163 * format code.
2165 if (code->index != 0)
2168 format = __ccdc_get_format(ccdc, cfg, code->pad,
2169 code->which);
2171 /* A pixel code equal to 0 means that the video port doesn't
2172 * support the input format. Don't enumerate any pixel code.
2174 if (format->code == 0)
2177 code->code = format->code;
2197 format.code = fse->code;
2204 if (format.code != fse->code)
2207 format.code = fse->code;
2226 * Return 0 on success or a negative error code otherwise.
2268 * Return 0 on success or a negative error code otherwise.
2379 * Decide whether desired output pixel code can be obtained with
2380 * the lane shifter by shifting the input pixel code.
2432 if (!ccdc_is_shiftable(source_fmt->format.code,
2433 sink_fmt->format.code, parallel_shift))
2455 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
2637 * Return 0 on success and a negative error code on failure.
2690 * Return 0 on success or a negative error code otherwise.