Lines Matching refs:code

25 	u32 code;  member
50 .code = MEDIA_BUS_FMT_SRGGB8_1X8,
70 .code = MEDIA_BUS_FMT_SBGGR8_1X8,
75 .code = MEDIA_BUS_FMT_SGBRG8_1X8,
80 .code = MEDIA_BUS_FMT_SGRBG8_1X8,
85 .code = MEDIA_BUS_FMT_SRGGB8_1X8,
90 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
95 .code = MEDIA_BUS_FMT_SGBRG10_1X10,
100 .code = MEDIA_BUS_FMT_SGRBG10_1X10,
105 .code = MEDIA_BUS_FMT_SRGGB10_1X10,
110 .code = MEDIA_BUS_FMT_SBGGR12_1X12,
115 .code = MEDIA_BUS_FMT_SGBRG12_1X12,
120 .code = MEDIA_BUS_FMT_SGRBG12_1X12,
125 .code = MEDIA_BUS_FMT_SRGGB12_1X12,
131 static const struct vimc_debayer_pix_map *vimc_debayer_pix_map_by_code(u32 code) in vimc_debayer_pix_map_by_code() argument
136 if (vimc_debayer_pix_map_list[i].code == code) in vimc_debayer_pix_map_by_code()
142 static bool vimc_debayer_src_code_is_valid(u32 code) in vimc_debayer_src_code_is_valid() argument
147 if (vimc_debayer_src_mbus_codes[i] == code) in vimc_debayer_src_code_is_valid()
166 mf->code = vdebayer->src_code; in vimc_debayer_init_cfg()
174 struct v4l2_subdev_mbus_code_enum *code) in vimc_debayer_enum_mbus_code() argument
176 if (VIMC_IS_SRC(code->pad)) { in vimc_debayer_enum_mbus_code()
177 if (code->index >= ARRAY_SIZE(vimc_debayer_src_mbus_codes)) in vimc_debayer_enum_mbus_code()
180 code->code = vimc_debayer_src_mbus_codes[code->index]; in vimc_debayer_enum_mbus_code()
182 if (code->index >= ARRAY_SIZE(vimc_debayer_pix_map_list)) in vimc_debayer_enum_mbus_code()
185 code->code = vimc_debayer_pix_map_list[code->index].code; in vimc_debayer_enum_mbus_code()
200 vimc_debayer_pix_map_by_code(fse->code); in vimc_debayer_enum_frame_size()
204 } else if (!vimc_debayer_src_code_is_valid(fse->code)) { in vimc_debayer_enum_frame_size()
229 fmt->format.code = vdebayer->src_code; in vimc_debayer_get_fmt()
239 vpix = vimc_debayer_pix_map_by_code(fmt->code); in vimc_debayer_adjust_sink_fmt()
241 fmt->code = sink_fmt_default.code; in vimc_debayer_adjust_sink_fmt()
271 src_code = &v4l2_subdev_get_try_format(sd, sd_state, 1)->code; in vimc_debayer_set_fmt()
279 u32 code = fmt->format.code; in vimc_debayer_set_fmt() local
283 if (vimc_debayer_src_code_is_valid(code)) in vimc_debayer_set_fmt()
284 *src_code = code; in vimc_debayer_set_fmt()
286 fmt->format.code = *src_code; in vimc_debayer_set_fmt()
295 sink_fmt->width, sink_fmt->height, sink_fmt->code, in vimc_debayer_set_fmt()
299 fmt->format.width, fmt->format.height, fmt->format.code, in vimc_debayer_set_fmt()
356 vpix = vimc_pix_map_by_code(vdebayer->sink_fmt.code); in vimc_debayer_s_stream()
361 vimc_debayer_pix_map_by_code(vdebayer->sink_fmt.code); in vimc_debayer_s_stream()