Lines Matching defs:code
553 switch (sink_fmt->code) {
964 * bus code and return it.
966 static const struct imx7_csi_pixfmt *imx7_csi_find_mbus_format(u32 code)
978 if (code == fmt->codes[j])
988 * requested search criteria. Return the media-bus code that matches
991 * @code: The returned media-bus code that matches the search criteria at
995 static int imx7_csi_enum_mbus_formats(u32 *code, u32 index)
1008 *code = fmt->codes[j];
1046 * If a media bus code is specified, only consider formats that
1415 * Verify that the media bus code is compatible with the pixel format
1418 cc = imx7_csi_find_mbus_format(fmt_src.format.code);
1743 mf->code = IMX7_CSI_DEF_MBUS_CODE;
1760 struct v4l2_subdev_mbus_code_enum *code)
1767 switch (code->pad) {
1769 ret = imx7_csi_enum_mbus_formats(&code->code, code->index);
1773 if (code->index != 0) {
1778 code->code = in_fmt->code;
1794 * tryfmt->code must be set on entry.
1801 cc = imx7_csi_find_mbus_format(tryfmt->code);
1842 u32 code;
1848 in_cc = imx7_csi_find_mbus_format(in_fmt->code);
1852 sdformat->format.code = in_fmt->code;
1863 *cc = imx7_csi_find_mbus_format(sdformat->format.code);
1865 code = IMX7_CSI_DEF_MBUS_CODE;
1866 *cc = imx7_csi_find_mbus_format(code);
1867 sdformat->format.code = code;