Lines Matching refs:code

136 	u32 code;  member
143 .code = MEDIA_BUS_FMT_SBGGR8_1X8,
146 .code = MEDIA_BUS_FMT_SGBRG8_1X8,
149 .code = MEDIA_BUS_FMT_SGRBG8_1X8,
152 .code = MEDIA_BUS_FMT_SRGGB8_1X8,
155 .code = MEDIA_BUS_FMT_Y8_1X8,
158 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
161 .code = MEDIA_BUS_FMT_SGBRG10_1X10,
164 .code = MEDIA_BUS_FMT_SGRBG10_1X10,
167 .code = MEDIA_BUS_FMT_SRGGB10_1X10,
170 .code = MEDIA_BUS_FMT_Y10_1X10,
173 .code = MEDIA_BUS_FMT_SBGGR12_1X12,
176 .code = MEDIA_BUS_FMT_SGBRG12_1X12,
179 .code = MEDIA_BUS_FMT_SGRBG12_1X12,
182 .code = MEDIA_BUS_FMT_SRGGB12_1X12,
185 .code = MEDIA_BUS_FMT_Y12_1X12,
188 .code = MEDIA_BUS_FMT_SBGGR14_1X14,
191 .code = MEDIA_BUS_FMT_SGBRG14_1X14,
194 .code = MEDIA_BUS_FMT_SGRBG14_1X14,
197 .code = MEDIA_BUS_FMT_SRGGB14_1X14,
202 .code = MEDIA_BUS_FMT_YUYV8_1X16,
205 .code = MEDIA_BUS_FMT_UYVY8_1X16,
210 static const struct csi2_pix_format *find_csi2_format(u32 code) in find_csi2_format() argument
215 if (code == imx8mq_mipi_csi_formats[i].code) in find_csi2_format()
300 csi2_fmt = find_csi2_format(fmt->code); in imx8mq_mipi_csi_calc_hs_settle()
449 fmt_sink->code = MEDIA_BUS_FMT_SGBRG10_1X10; in imx8mq_mipi_csi_init_cfg()
468 struct v4l2_subdev_mbus_code_enum *code) in imx8mq_mipi_csi_enum_mbus_code() argument
474 if (code->pad == MIPI_CSI2_PAD_SOURCE) { in imx8mq_mipi_csi_enum_mbus_code()
477 if (code->index > 0) in imx8mq_mipi_csi_enum_mbus_code()
480 fmt = v4l2_subdev_get_pad_format(sd, sd_state, code->pad); in imx8mq_mipi_csi_enum_mbus_code()
481 code->code = fmt->code; in imx8mq_mipi_csi_enum_mbus_code()
485 if (code->pad != MIPI_CSI2_PAD_SINK) in imx8mq_mipi_csi_enum_mbus_code()
488 if (code->index >= ARRAY_SIZE(imx8mq_mipi_csi_formats)) in imx8mq_mipi_csi_enum_mbus_code()
491 code->code = imx8mq_mipi_csi_formats[code->index].code; in imx8mq_mipi_csi_enum_mbus_code()
513 csi2_fmt = find_csi2_format(sdformat->format.code); in imx8mq_mipi_csi_set_fmt()
519 fmt->code = csi2_fmt->code; in imx8mq_mipi_csi_set_fmt()