Home
last modified time | relevance | path

Searched refs:mbus_code (Results 1 – 25 of 67) sorted by relevance

123

/linux-6.1.9/drivers/media/platform/rockchip/rkisp1/
Drkisp1-common.c15 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
19 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
26 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,
33 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10,
40 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
47 .mbus_code = MEDIA_BUS_FMT_SRGGB12_1X12,
54 .mbus_code = MEDIA_BUS_FMT_SBGGR12_1X12,
61 .mbus_code = MEDIA_BUS_FMT_SGBRG12_1X12,
68 .mbus_code = MEDIA_BUS_FMT_SGRBG12_1X12,
75 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8,
[all …]
/linux-6.1.9/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_csi.c35 u32 pixformat, u32 mbus_code) in sun6i_csi_is_format_supported() argument
56 switch (mbus_code) { in sun6i_csi_is_format_supported()
65 mbus_code); in sun6i_csi_is_format_supported()
79 return (mbus_code == MEDIA_BUS_FMT_SBGGR8_1X8); in sun6i_csi_is_format_supported()
81 return (mbus_code == MEDIA_BUS_FMT_SGBRG8_1X8); in sun6i_csi_is_format_supported()
83 return (mbus_code == MEDIA_BUS_FMT_SGRBG8_1X8); in sun6i_csi_is_format_supported()
85 return (mbus_code == MEDIA_BUS_FMT_SRGGB8_1X8); in sun6i_csi_is_format_supported()
87 return (mbus_code == MEDIA_BUS_FMT_SBGGR10_1X10); in sun6i_csi_is_format_supported()
89 return (mbus_code == MEDIA_BUS_FMT_SGBRG10_1X10); in sun6i_csi_is_format_supported()
91 return (mbus_code == MEDIA_BUS_FMT_SGRBG10_1X10); in sun6i_csi_is_format_supported()
[all …]
/linux-6.1.9/drivers/media/platform/atmel/
Datmel-sama7g5-isc.c113 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
119 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8,
125 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8,
131 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8,
137 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,
143 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10,
149 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
155 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
161 .mbus_code = MEDIA_BUS_FMT_SBGGR12_1X12,
167 .mbus_code = MEDIA_BUS_FMT_SGBRG12_1X12,
[all …]
Datmel-sama5d2-isc.c104 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
110 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8,
116 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8,
122 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8,
128 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,
134 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10,
140 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
146 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
152 .mbus_code = MEDIA_BUS_FMT_SBGGR12_1X12,
158 .mbus_code = MEDIA_BUS_FMT_SGBRG12_1X12,
[all …]
Dmicrochip-csi2dc.c115 u32 mbus_code; member
121 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8,
124 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
127 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8,
130 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8,
133 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
136 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,
139 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
142 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10,
145 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
[all …]
Datmel-isc-base.c44 #define ISC_IS_FORMAT_RAW(mbus_code) \ argument
45 (((mbus_code) & 0xf000) == 0x3000)
47 #define ISC_IS_FORMAT_GREY(mbus_code) \ argument
48 (((mbus_code) == MEDIA_BUS_FMT_Y10_1X10) | \
49 (((mbus_code) == MEDIA_BUS_FMT_Y8_1X8)))
149 if (!ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code)) { in isc_crop_pfe()
328 ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code)) in isc_configure()
383 if (ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code)) in isc_start_streaming()
518 if (!ISC_IS_FORMAT_RAW(isc->formats_list[i].mbus_code) || in isc_enum_fmt_vid_cap()
600 if ((bayer) && !ISC_IS_FORMAT_RAW(isc->try_config.sd_format->mbus_code)) in isc_try_validate_formats()
[all …]
Datmel-isi.c87 u32 mbus_code; member
564 .code = isi_fmt->mbus_code, in isi_try_fse()
607 v4l2_fill_mbus_format(&format.format, pixfmt, isi_fmt->mbus_code); in isi_try_fmt()
641 current_fmt->mbus_code); in isi_set_fmt()
746 fse.code = isi_fmt->mbus_code; in isi_enum_framesizes()
777 fie.code = isi_fmt->mbus_code; in isi_enum_frameintervals()
992 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
997 .mbus_code = MEDIA_BUS_FMT_YVYU8_2X8,
1002 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
1007 .mbus_code = MEDIA_BUS_FMT_VYUY8_2X8,
[all …]
/linux-6.1.9/drivers/media/platform/sunxi/sun6i-mipi-csi2/
Dsun6i_mipi_csi2.c28 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
33 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8,
38 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8,
43 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8,
48 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,
53 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10,
58 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
63 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
70 sun6i_mipi_csi2_format_find(u32 mbus_code) in sun6i_mipi_csi2_format_find() argument
75 if (sun6i_mipi_csi2_formats[i].mbus_code == mbus_code) in sun6i_mipi_csi2_format_find()
[all …]
/linux-6.1.9/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/
Dsun8i_a83t_mipi_csi2.c31 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
36 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8,
41 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8,
46 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8,
51 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,
56 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10,
61 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
66 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
73 sun8i_a83t_mipi_csi2_format_find(u32 mbus_code) in sun8i_a83t_mipi_csi2_format_find() argument
78 if (sun8i_a83t_mipi_csi2_formats[i].mbus_code == mbus_code) in sun8i_a83t_mipi_csi2_format_find()
[all …]
/linux-6.1.9/drivers/staging/greybus/
Dcamera.c77 enum v4l2_mbus_pixelcode mbus_code; member
85 .mbus_code = V4L2_MBUS_FMT_UYVY8_1X16,
90 .mbus_code = V4L2_MBUS_FMT_NV12_1x8,
95 .mbus_code = V4L2_MBUS_FMT_NV21_1x8,
100 .mbus_code = V4L2_MBUS_FMT_YU12_1x8,
105 .mbus_code = V4L2_MBUS_FMT_YV12_1x8,
110 .mbus_code = V4L2_MBUS_FMT_JPEG_1X8,
115 .mbus_code = V4L2_MBUS_FMT_GB_CAM_METADATA_1X8,
120 .mbus_code = V4L2_MBUS_FMT_GB_CAM_DEBUG_DATA_1X8,
125 .mbus_code = V4L2_MBUS_FMT_SBGGR10_1X10,
[all …]
/linux-6.1.9/drivers/media/platform/st/stm32/
Dstm32-dcmi.c104 u32 mbus_code; member
1034 v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code); in dcmi_try_fmt()
1108 sd_format->mbus_code); in dcmi_set_fmt()
1195 v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code); in dcmi_set_sensor_format()
1397 fse.code = sd_fmt->mbus_code; in dcmi_enum_framesizes()
1444 fie.code = sd_fmt->mbus_code; in dcmi_enum_frameintervals()
1587 .mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE,
1591 .mbus_code = MEDIA_BUS_FMT_RGB565_1X16,
1595 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
1599 .mbus_code = MEDIA_BUS_FMT_YUYV8_1X16,
[all …]
/linux-6.1.9/drivers/media/platform/renesas/
Drenesas-ceu.c130 u32 mbus_code; member
802 u32 mbus_code; in __ceu_try_fmt() local
814 mbus_code_old = ceu_sd->mbus_fmt.mbus_code; in __ceu_try_fmt()
818 mbus_code = MEDIA_BUS_FMT_YUYV8_2X8; in __ceu_try_fmt()
821 mbus_code = MEDIA_BUS_FMT_UYVY8_2X8; in __ceu_try_fmt()
824 mbus_code = MEDIA_BUS_FMT_YVYU8_2X8; in __ceu_try_fmt()
827 mbus_code = MEDIA_BUS_FMT_VYUY8_2X8; in __ceu_try_fmt()
833 mbus_code = ceu_sd->mbus_fmt.mbus_code; in __ceu_try_fmt()
838 mbus_code = ceu_sd->mbus_fmt.mbus_code; in __ceu_try_fmt()
855 sd_format.format.code = mbus_code; in __ceu_try_fmt()
[all …]
/linux-6.1.9/drivers/media/i2c/
Dov5648.c622 u32 mbus_code; member
1248 u32 mbus_code) in ov5648_mode_pll1_configure() argument
1256 switch (mbus_code) { in ov5648_mode_pll1_configure()
1319 const struct ov5648_mode *mode, u32 mbus_code) in ov5648_mode_configure() argument
1474 ret = ov5648_mode_pll1_configure(sensor, mode, mbus_code); in ov5648_mode_configure()
1496 u32 mbus_code) in ov5648_mode_mipi_clk_rate() argument
1501 switch (mbus_code) { in ov5648_mode_mipi_clk_rate()
1692 u32 mbus_code) in ov5648_state_mipi_configure() argument
1703 mipi_clk_rate = ov5648_mode_mipi_clk_rate(sensor, mode, mbus_code); in ov5648_state_mipi_configure()
1733 switch (mbus_code) { in ov5648_state_mipi_configure()
[all …]
Dvs6624.c36 u32 mbus_code; member
40 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
44 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
48 .mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE,
555 code->code = vs6624_formats[code->index].mbus_code; in vs6624_enum_mbus_code()
571 if (vs6624_formats[index].mbus_code == fmt->code) in vs6624_set_fmt()
576 fmt->code = vs6624_formats[0].mbus_code; in vs6624_set_fmt()
Dov8865.c671 u32 mbus_code; member
1605 u32 mbus_code) in ov8865_mode_pll1_configure() argument
1613 switch (mbus_code) { in ov8865_mode_pll1_configure()
1910 const struct ov8865_mode *mode, u32 mbus_code) in ov8865_mode_configure() argument
2086 ret = ov8865_mode_pll1_configure(sensor, mode, mbus_code); in ov8865_mode_configure()
2241 u32 mbus_code) in ov8865_state_mipi_configure() argument
2282 switch (mbus_code) { in ov8865_state_mipi_configure()
2300 u32 mbus_code) in ov8865_state_configure() argument
2310 ret = ov8865_mode_configure(sensor, mode, mbus_code); in ov8865_state_configure()
2315 ret = ov8865_state_mipi_configure(sensor, mode, mbus_code); in ov8865_state_configure()
[all …]
/linux-6.1.9/Documentation/userspace-api/media/v4l/
Dvidioc-enum-fmt.rst34 To enumerate image formats applications initialize the ``type``, ``mbus_code``
44 the ``mbus_code`` field is handled differently:
48 Applications shall initialize the ``mbus_code`` field to zero and drivers
60 If the ``mbus_code`` field is zero, then all image formats
63 If the ``mbus_code`` field is initialized to a valid (non-zero)
67 devices) that media bus code. If the ``mbus_code`` is unsupported by
70 Regardless of the value of the ``mbus_code`` field, the enumerated image
129 - ``mbus_code``
242 If ``V4L2_CAP_IO_MC`` is set and the specified ``mbus_code``
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Datomisp_ioctl.c341 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YUV420,
348 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YVU420,
355 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YUV422P,
362 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YUV444,
368 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV12,
375 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV21,
382 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV16,
389 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YUYV,
395 .mbus_code = MEDIA_BUS_FMT_UYVY8_1X16,
401 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
[all …]
/linux-6.1.9/drivers/media/platform/samsung/exynos4-is/
Dfimc-isp.c40 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8,
46 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
52 .mbus_code = MEDIA_BUS_FMT_SGRBG12_1X12,
63 const u32 *mbus_code, int index) in fimc_isp_find_format() argument
76 if (mbus_code && fmt->mbus_code == *mbus_code) in fimc_isp_find_format()
117 code->code = fmt->mbus_code; in fimc_is_subdev_enum_mbus_code()
371 .code = fimc_isp_formats[0].mbus_code, in fimc_isp_subdev_open()
Dfimc-core.c74 .mbus_code = MEDIA_BUS_FMT_YUV10_1X30,
82 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
90 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
98 .mbus_code = MEDIA_BUS_FMT_VYUY8_2X8,
106 .mbus_code = MEDIA_BUS_FMT_YVYU8_2X8,
170 .mbus_code = MEDIA_BUS_FMT_JPEG_1X8,
179 .mbus_code = MEDIA_BUS_FMT_S5C_UYVY_JPEG_1X8,
756 struct fimc_fmt *fimc_find_format(const u32 *pixelformat, const u32 *mbus_code, in fimc_find_format() argument
772 if (mbus_code && fmt->mbus_code == *mbus_code) in fimc_find_format()
Dfimc-lite.c48 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
56 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
64 .mbus_code = MEDIA_BUS_FMT_VYUY8_2X8,
72 .mbus_code = MEDIA_BUS_FMT_YVYU8_2X8,
80 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8,
88 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
96 .mbus_code = MEDIA_BUS_FMT_SGRBG12_1X12,
109 const u32 *mbus_code, unsigned int mask, int index) in fimc_lite_find_format() argument
124 if (mbus_code && fmt->mbus_code == *mbus_code) in fimc_lite_find_format()
570 mf->code = fmt->mbus_code; in fimc_lite_subdev_try_fmt()
[all …]
/linux-6.1.9/drivers/media/pci/intel/ipu3/
Dipu3-cio2-main.c35 u32 mbus_code; member
49 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
54 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10,
59 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,
64 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
69 .mbus_code = MEDIA_BUS_FMT_Y10_1X10,
82 const u32 *mbus_code) in cio2_find_format() argument
89 if (mbus_code && *mbus_code != formats[i].mbus_code) in cio2_find_format()
1197 .code = formats[0].mbus_code, in cio2_subdev_open()
1255 u32 mbus_code = fmt->format.code; in cio2_subdev_set_fmt() local
[all …]
/linux-6.1.9/drivers/media/platform/ti/cal/
Dcal-video.c446 if (f->mbus_code && cal_formats[i].code != f->mbus_code) in cal_mc_enum_fmt_vid_cap()
814 struct v4l2_subdev_mbus_code_enum mbus_code; in cal_ctx_v4l2_init_formats() local
830 memset(&mbus_code, 0, sizeof(mbus_code)); in cal_ctx_v4l2_init_formats()
831 mbus_code.index = j; in cal_ctx_v4l2_init_formats()
832 mbus_code.which = V4L2_SUBDEV_FORMAT_ACTIVE; in cal_ctx_v4l2_init_formats()
834 NULL, &mbus_code); in cal_ctx_v4l2_init_formats()
846 ctx->phy->source->name, mbus_code.code, j); in cal_ctx_v4l2_init_formats()
851 if (mbus_code.code == fmtinfo->code) { in cal_ctx_v4l2_init_formats()
/linux-6.1.9/drivers/media/platform/marvell/
Dmcam-core.c105 u32 mbus_code; member
109 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
115 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
121 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
127 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
133 .mbus_code = MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE,
139 .mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE,
145 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
1017 v4l2_fill_mbus_format(&format.format, &cam->pix_format, cam->mbus_code); in mcam_cam_configure()
1363 v4l2_fill_mbus_format(&format.format, pix, f->mbus_code); in mcam_vidioc_try_fmt_vid_cap()
[all …]
/linux-6.1.9/drivers/media/test-drivers/vimc/
Dvimc-scaler.c95 u32 mbus_code = vimc_mbus_code_by_index(code->index); in vimc_scaler_enum_mbus_code() local
98 if (!mbus_code) in vimc_scaler_enum_mbus_code()
101 vpix = vimc_pix_map_by_code(mbus_code); in vimc_scaler_enum_mbus_code()
107 code->code = mbus_code; in vimc_scaler_enum_mbus_code()
/linux-6.1.9/drivers/media/platform/via/
Dvia-camera.c102 u32 mbus_code; member
150 u32 mbus_code; member
154 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
260 v4l2_fill_mbus_format(&format.format, &cam->sensor_format, cam->mbus_code); in viacam_configure_sensor()
857 v4l2_fill_mbus_format(&format.format, spix, f->mbus_code); in viacam_do_try_fmt()
911 cam->mbus_code = f->mbus_code; in viacam_s_fmt_vid_cap()
972 .code = cam->mbus_code, in viacam_enum_frameintervals()
1194 cam->mbus_code = via_def_mbus_code; in viacam_probe()

123