/linux/drivers/media/platform/sunxi/sun6i-csi/ |
A 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() 135 switch (mbus_code) { in sun6i_csi_is_format_supported() 143 mbus_code); in sun6i_csi_is_format_supported() 221 if ((mbus_code & 0xF000) != 0x2000) in get_csi_input_format() 310 if ((mbus_code & 0xF000) != 0x2000) in get_csi_input_seq() 319 switch (mbus_code) { in get_csi_input_seq() 334 mbus_code); in get_csi_input_seq() 341 switch (mbus_code) { in get_csi_input_seq() [all …]
|
A D | sun6i_video.h | 29 u32 mbus_code; member
|
/linux/drivers/media/platform/atmel/ |
A D | atmel-sama7g5-isc.c | 109 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8, 115 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8, 121 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8, 127 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8, 133 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, 139 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10, 145 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10, 181 .mbus_code = MEDIA_BUS_FMT_Y8_1X8, 186 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, 191 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, [all …]
|
A D | atmel-sama5d2-isc.c | 97 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8, 103 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8, 109 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8, 115 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8, 121 .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, 127 .mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10, 133 .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10, 139 .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10, 169 .mbus_code = MEDIA_BUS_FMT_Y8_1X8, 174 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, [all …]
|
A D | atmel-isc-base.c | 48 #define ISC_IS_FORMAT_RAW(mbus_code) \ argument 49 (((mbus_code) & 0xf000) == 0x3000) 51 #define ISC_IS_FORMAT_GREY(mbus_code) \ argument 1140 u32 mbus_code; in isc_try_fmt() local 1209 mbus_code = sd_fmt->mbus_code; in isc_try_fmt() 1255 *code = mbus_code; in isc_try_fmt() 1272 u32 mbus_code = 0; in isc_set_fmt() local 2041 if (fmt->mbus_code == code) { in find_format_by_code() 2064 NULL, &mbus_code)) { in isc_formats_init() 2065 mbus_code.index++; in isc_formats_init() [all …]
|
A D | atmel-isi.c | 87 u32 mbus_code; member 564 .code = isi_fmt->mbus_code, in isi_try_fse() 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, 1032 .mbus_code = MEDIA_BUS_FMT_Y10_1X10, 1037 .mbus_code = MEDIA_BUS_FMT_Y10_1X10, 1053 NULL, &mbus_code)) { in isi_formats_init() 1055 if (isi_formats[i].mbus_code != mbus_code.code) in isi_formats_init() [all …]
|
/linux/drivers/staging/greybus/ |
A 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, 125 .mbus_code = V4L2_MBUS_FMT_SBGGR10_1X10, 755 if (gb_fmt_info[i].mbus_code == mbus_code) in gb_camera_mbus_to_gb() 767 return gb_fmt_info[i].mbus_code; in gb_camera_gb_to_mbus() [all …]
|
/linux/drivers/media/platform/rockchip/rkisp1/ |
A D | rkisp1-isp.c | 59 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, 119 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8, 126 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8, 133 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8, 140 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8, 147 .mbus_code = MEDIA_BUS_FMT_YUYV8_1X16, 154 .mbus_code = MEDIA_BUS_FMT_YVYU8_1X16, 161 .mbus_code = MEDIA_BUS_FMT_UYVY8_1X16, 168 .mbus_code = MEDIA_BUS_FMT_VYUY8_1X16, 188 if (fmt->mbus_code == mbus_code) in rkisp1_isp_mbus_info_get() [all …]
|
/linux/drivers/media/platform/ |
A D | renesas-ceu.c | 130 u32 mbus_code; member 802 u32 mbus_code; in __ceu_try_fmt() local 818 mbus_code = MEDIA_BUS_FMT_YUYV8_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() 886 u32 mbus_code; in ceu_try_fmt() local 898 u32 mbus_code; in ceu_set_fmt() local 913 format.format.code = mbus_code; in ceu_set_fmt() 1287 .code = ceu_sd->mbus_fmt.mbus_code, in ceu_enum_framesizes() [all …]
|
A 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()
|
/linux/drivers/media/i2c/ |
A 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() 1501 switch (mbus_code) { in ov5648_mode_mipi_clk_rate() 1733 switch (mbus_code) { in ov5648_state_mipi_configure() 1754 u32 mbus_code) in ov5648_state_configure() argument 1774 sensor->state.mbus_code = mbus_code; in ov5648_state_configure() 2203 u32 mbus_code, in ov5648_mbus_format_fill() argument 2247 u32 mbus_code = 0; in ov5648_set_fmt() local 2267 if (!mbus_code) in ov5648_set_fmt() [all …]
|
A 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()
|
A D | ov8865.c | 647 u32 mbus_code; member 1552 u32 mbus_code) in ov8865_mode_pll1_configure() argument 1558 switch (mbus_code) { in ov8865_mode_pll1_configure() 2164 u32 mbus_code) in ov8865_state_mipi_configure() argument 2205 switch (mbus_code) { in ov8865_state_mipi_configure() 2223 u32 mbus_code) in ov8865_state_configure() argument 2243 sensor->state.mbus_code = mbus_code; in ov8865_state_configure() 2557 u32 mbus_code, in ov8865_mbus_format_fill() argument 2601 u32 mbus_code = 0; in ov8865_set_fmt() local 2621 if (!mbus_code) in ov8865_set_fmt() [all …]
|
A 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 …]
|
A 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()
|
/linux/Documentation/userspace-api/media/v4l/ |
A 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/drivers/staging/media/atomisp/pci/ |
A D | atomisp_ioctl.c | 369 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV12, 376 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV21, 383 .mbus_code = V4L2_MBUS_FMT_CUSTOM_NV16, 396 .mbus_code = MEDIA_BUS_FMT_UYVY8_1X16, 402 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8, 414 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8, 420 .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8, 426 .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8, 432 .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8, 498 .mbus_code = MEDIA_BUS_FMT_JPEG_1X8, [all …]
|
/linux/drivers/media/platform/exynos4-is/ |
A 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()
|
A 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()
|
A 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, 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() 588 mf->code = sink->fmt->mbus_code; in fimc_lite_subdev_try_fmt() 1015 code->code = fmt->mbus_code; in fimc_lite_subdev_enum_mbus_code() [all …]
|
/linux/drivers/media/platform/stm32/ |
A D | stm32-dcmi.c | 104 u32 mbus_code; member 1093 sd_format->mbus_code); in dcmi_set_fmt() 1387 fse.code = sd_fmt->mbus_code; in dcmi_enum_framesizes() 1434 fie.code = sd_fmt->mbus_code; in dcmi_enum_frameintervals() 1587 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, 1595 .mbus_code = MEDIA_BUS_FMT_JPEG_1X8, 1626 NULL, &mbus_code)) { in dcmi_formats_init() 1628 if (dcmi_formats[i].mbus_code != mbus_code.code) in dcmi_formats_init() 1643 mbus_code.code); in dcmi_formats_init() 1654 mbus_code.index++; in dcmi_formats_init() [all …]
|
/linux/drivers/media/platform/marvell-ccic/ |
A 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, 139 .mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE, 145 .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8, 1407 cam->mbus_code = f->mbus_code; in mcam_vidioc_s_fmt_vid_cap() 1503 fse.code = f->mbus_code; in mcam_vidioc_enum_framesizes() 1540 fie.code = f->mbus_code; in mcam_vidioc_enum_frameintervals() [all …]
|
/linux/drivers/media/platform/ti-vpe/ |
A D | cal-video.c | 449 if (f->mbus_code && cal_formats[i].code != f->mbus_code) in cal_mc_enum_fmt_vid_cap() 817 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/drivers/media/pci/intel/ipu3/ |
A 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, 77 const u32 *mbus_code) in cio2_find_format() argument 84 if (mbus_code && *mbus_code != formats[i].mbus_code) in cio2_find_format() 1196 .code = formats[0].mbus_code, in cio2_subdev_open() 1254 u32 mbus_code = fmt->format.code; in cio2_subdev_set_fmt() local 1272 if (formats[i].mbus_code == mbus_code) { in cio2_subdev_set_fmt() 1273 fmt->format.code = mbus_code; in cio2_subdev_set_fmt() [all …]
|
/linux/drivers/media/test-drivers/vimc/ |
A 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()
|