/linux-5.19.10/drivers/media/platform/sunxi/sun6i-csi/ |
D | sun6i_csi.c | 51 u32 pixformat, u32 mbus_code) in sun6i_csi_is_format_supported() argument 72 switch (mbus_code) { in sun6i_csi_is_format_supported() 80 mbus_code); in sun6i_csi_is_format_supported() 94 return (mbus_code == MEDIA_BUS_FMT_SBGGR8_1X8); in sun6i_csi_is_format_supported() 96 return (mbus_code == MEDIA_BUS_FMT_SGBRG8_1X8); in sun6i_csi_is_format_supported() 98 return (mbus_code == MEDIA_BUS_FMT_SGRBG8_1X8); in sun6i_csi_is_format_supported() 100 return (mbus_code == MEDIA_BUS_FMT_SRGGB8_1X8); in sun6i_csi_is_format_supported() 102 return (mbus_code == MEDIA_BUS_FMT_SBGGR10_1X10); in sun6i_csi_is_format_supported() 104 return (mbus_code == MEDIA_BUS_FMT_SGBRG10_1X10); in sun6i_csi_is_format_supported() 106 return (mbus_code == MEDIA_BUS_FMT_SGRBG10_1X10); in sun6i_csi_is_format_supported() [all …]
|
/linux-5.19.10/drivers/media/platform/atmel/ |
D | atmel-sama7g5-isc.c | 113 .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 …]
|
D | atmel-sama5d2-isc.c | 104 .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 …]
|
D | microchip-csi2dc.c | 115 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 …]
|
D | atmel-isc-base.c | 44 #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))) 152 if (!ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code)) { in isc_start_dma() 323 ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code)) in isc_configure() 377 if (ISC_IS_FORMAT_RAW(isc->config.sd_format->mbus_code)) in isc_start_streaming() 512 if (!ISC_IS_FORMAT_RAW(isc->formats_list[i].mbus_code) || in isc_enum_fmt_vid_cap() 594 if ((bayer) && !ISC_IS_FORMAT_RAW(isc->try_config.sd_format->mbus_code)) in isc_try_validate_formats() [all …]
|
D | atmel-isi.c | 87 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-5.19.10/drivers/staging/greybus/ |
D | camera.c | 77 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-5.19.10/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-isp.c | 61 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, 65 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10, 72 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, 79 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10, 86 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10, 93 .mbus_code = MEDIA_BUS_FMT_SRGGB12_1X12, 100 .mbus_code = MEDIA_BUS_FMT_SBGGR12_1X12, 107 .mbus_code = MEDIA_BUS_FMT_SGBRG12_1X12, 114 .mbus_code = MEDIA_BUS_FMT_SGRBG12_1X12, 121 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8, [all …]
|
/linux-5.19.10/drivers/media/platform/renesas/ |
D | renesas-ceu.c | 130 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-5.19.10/drivers/media/i2c/ |
D | ov5648.c | 622 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 …]
|
D | vs6624.c | 36 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()
|
D | ov8865.c | 671 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 …]
|
D | ov7740.c | 130 u32 mbus_code; member 695 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, 701 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8, 716 code->code = ov7740_formats[code->index].mbus_code; in ov7740_enum_mbus_code() 766 if (ov7740_formats[index].mbus_code == fmt->code) in ov7740_try_fmt_internal() 772 fmt->code = ov7740_formats[0].mbus_code; in ov7740_try_fmt_internal() 898 format->code = ov7740->fmt->mbus_code; in ov7740_get_default_format()
|
D | ov7670.c | 668 u32 mbus_code; member 674 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, 680 .mbus_code = MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE, 686 .mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE, 692 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8, 808 if (info->fmt->mbus_code == MEDIA_BUS_FMT_SBGGR8_1X8) in ov7675_get_framerate() 849 if (info->fmt->mbus_code == MEDIA_BUS_FMT_SBGGR8_1X8) in ov7675_set_framerate() 969 code->code = ov7670_formats[code->index].mbus_code; in ov7670_enum_mbus_code() 985 if (ov7670_formats[index].mbus_code == fmt->code) in ov7670_try_fmt_internal() 990 fmt->code = ov7670_formats[0].mbus_code; in ov7670_try_fmt_internal() [all …]
|
/linux-5.19.10/Documentation/userspace-api/media/v4l/ |
D | vidioc-enum-fmt.rst | 34 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-5.19.10/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-isp.c | 40 .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()
|
D | fimc-core.c | 74 .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()
|
D | fimc-lite.c | 48 .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-5.19.10/drivers/media/platform/st/stm32/ |
D | stm32-dcmi.c | 104 u32 mbus_code; member 1039 v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code); in dcmi_try_fmt() 1114 sd_format->mbus_code); in dcmi_set_fmt() 1205 v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code); in dcmi_set_sensor_format() 1408 fse.code = sd_fmt->mbus_code; in dcmi_enum_framesizes() 1455 fie.code = sd_fmt->mbus_code; in dcmi_enum_frameintervals() 1604 .mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE, 1608 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, 1612 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8, 1616 .mbus_code = MEDIA_BUS_FMT_JPEG_1X8, [all …]
|
/linux-5.19.10/drivers/staging/media/atomisp/pci/ |
D | atomisp_ioctl.c | 342 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YUV420, 349 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YVU420, 356 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YUV422P, 363 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YUV444, 369 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV12, 376 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV21, 383 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV16, 390 .mbus_code = V4L2_MBUS_FMT_CUSTOM_YUYV, 396 .mbus_code = MEDIA_BUS_FMT_UYVY8_1X16, 402 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8, [all …]
|
/linux-5.19.10/drivers/media/pci/intel/ipu3/ |
D | ipu3-cio2-main.c | 35 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-5.19.10/drivers/media/platform/ti/cal/ |
D | cal-video.c | 445 if (f->mbus_code && cal_formats[i].code != f->mbus_code) in cal_mc_enum_fmt_vid_cap() 813 struct v4l2_subdev_mbus_code_enum mbus_code; in cal_ctx_v4l2_init_formats() local 829 memset(&mbus_code, 0, sizeof(mbus_code)); in cal_ctx_v4l2_init_formats() 830 mbus_code.index = j; in cal_ctx_v4l2_init_formats() 831 mbus_code.which = V4L2_SUBDEV_FORMAT_ACTIVE; in cal_ctx_v4l2_init_formats() 833 NULL, &mbus_code); in cal_ctx_v4l2_init_formats() 845 ctx->phy->source->name, mbus_code.code, j); in cal_ctx_v4l2_init_formats() 850 if (mbus_code.code == fmtinfo->code) { in cal_ctx_v4l2_init_formats()
|
/linux-5.19.10/drivers/media/platform/marvell/ |
D | mcam-core.c | 105 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-5.19.10/drivers/media/test-drivers/vimc/ |
D | vimc-scaler.c | 95 u32 mbus_code = vimc_mbus_code_by_index(code->index); in vimc_sca_enum_mbus_code() local 98 if (!mbus_code) in vimc_sca_enum_mbus_code() 101 vpix = vimc_pix_map_by_code(mbus_code); in vimc_sca_enum_mbus_code() 107 code->code = mbus_code; in vimc_sca_enum_mbus_code()
|
/linux-5.19.10/drivers/media/platform/via/ |
D | via-camera.c | 102 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()
|