Lines Matching defs:code

269 	if ((format->code != V4L2_MBUS_FMT_SGRBG10_1X10) &&
270 (format->code != V4L2_MBUS_FMT_SRGGB10_1X10) &&
271 (format->code != V4L2_MBUS_FMT_SBGGR10_1X10) &&
272 (format->code != V4L2_MBUS_FMT_SGBRG10_1X10))
618 info = omap3isp_video_format_info(ccdc->formats[CCDC_PAD_SINK].code);
818 if (!format->code) {
820 * This is indicated by a pixel code set to 0.
837 info = omap3isp_video_format_info(ccdc->formats[CCDC_PAD_SINK].code);
974 if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||
975 format->code == V4L2_MBUS_FMT_UYVY8_2X8) {
1023 if (format->code == V4L2_MBUS_FMT_UYVY8_2X8)
1161 fmt_info = omap3isp_video_format_info(fmt_src.format.code);
1165 fmt_info = omap3isp_video_format_info(format->code);
1171 else if (fmt_info->code == V4L2_MBUS_FMT_YUYV8_2X8)
1173 else if (fmt_info->code == V4L2_MBUS_FMT_UYVY8_2X8)
1201 switch (format->code) {
1270 if (format->code == V4L2_MBUS_FMT_YUYV8_1X16)
1281 if (omap3isp_video_format_info(format->code)->width <= 8 || ccdc->bt656)
1834 * Return 0 on success or a negative error code otherwise.
1980 if (fmt->code == ccdc_fmts[i])
1986 fmt->code = V4L2_MBUS_FMT_SGRBG10_1X10;
1999 pixelcode = fmt->code;
2010 if (fmt->code == V4L2_MBUS_FMT_YUYV8_2X8 ||
2011 fmt->code == V4L2_MBUS_FMT_UYVY8_2X8) {
2017 fmt->code = pixelcode;
2019 if (fmt->code == V4L2_MBUS_FMT_YUYV8_2X8)
2020 fmt->code = V4L2_MBUS_FMT_YUYV8_1X16;
2021 else if (fmt->code == V4L2_MBUS_FMT_UYVY8_2X8)
2022 fmt->code = V4L2_MBUS_FMT_UYVY8_1X16;
2046 info = omap3isp_video_format_info(fmt->code);
2047 fmt->code = info->truncated;
2050 if (fmt->code == V4L2_MBUS_FMT_YUYV8_2X8 ||
2051 fmt->code == V4L2_MBUS_FMT_UYVY8_2X8)
2052 fmt->code = 0;
2085 info = omap3isp_video_format_info(sink->code);
2116 * @code : pointer to v4l2_subdev_mbus_code_enum structure
2121 struct v4l2_subdev_mbus_code_enum *code)
2126 switch (code->pad) {
2128 if (code->index >= ARRAY_SIZE(ccdc_fmts))
2131 code->code = ccdc_fmts[code->index];
2135 format = __ccdc_get_format(ccdc, fh, code->pad,
2138 if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||
2139 format->code == V4L2_MBUS_FMT_UYVY8_2X8) {
2141 if (code->index == 0)
2142 code->code = V4L2_MBUS_FMT_YUYV8_1X16;
2143 else if (code->index == 1)
2144 code->code = V4L2_MBUS_FMT_UYVY8_1X16;
2151 if (code->index == 0)
2152 code->code = format->code;
2161 * format code.
2163 if (code->index != 0)
2166 format = __ccdc_get_format(ccdc, fh, code->pad,
2169 /* A pixel code equal to 0 means that the video port doesn't
2170 * support the input format. Don't enumerate any pixel code.
2172 if (format->code == 0)
2175 code->code = format->code;
2195 format.code = fse->code;
2202 if (format.code != fse->code)
2205 format.code = fse->code;
2224 * Return 0 on success or a negative error code otherwise.
2266 * Return 0 on success or a negative error code otherwise.
2377 * Decide whether desired output pixel code can be obtained with
2378 * 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 = V4L2_MBUS_FMT_SGRBG10_1X10;
2631 * Return 0 on success and a negative error code on failure.
2692 * Return 0 on success or a negative error code otherwise.