Lines Matching defs:code
119 static int bpp_from_code(__u32 code)
121 switch (code) {
156 static u8 data_type_from_code(__u32 code)
158 switch (code) {
196 fmt->code = MEDIA_BUS_FMT_SBGGR8_1X8;
206 static __u32 get_fmt_code(__u32 code)
211 if (code == mipid02_supported_fmt_codes[i])
212 return code;
395 u32 bpp = bpp_from_code(bridge->fmt.code);
533 if (bridge->fmt.code != MEDIA_BUS_FMT_JPEG_1X8) {
536 data_type = data_type_from_code(bridge->fmt.code);
684 struct v4l2_subdev_mbus_code_enum *code)
689 switch (code->pad) {
691 if (code->index >= ARRAY_SIZE(mipid02_supported_fmt_codes))
694 code->code = mipid02_supported_fmt_codes[code->index];
697 if (code->index == 0)
698 code->code = serial_to_parallel_code(bridge->fmt.code);
735 /* code may need to be converted for source */
737 mbus_fmt->code = serial_to_parallel_code(mbus_fmt->code);
757 /* but code may need to be converted */
758 format->format.code = serial_to_parallel_code(format->format.code);
776 format->format.code = get_fmt_code(format->format.code);