Home
last modified time | relevance | path

Searched refs:mbus_fmt (Results 1 – 22 of 22) sorted by relevance

/linux-6.1.9/include/media/
Dv4l2-mediabus.h180 const struct v4l2_mbus_framefmt *mbus_fmt) in v4l2_fill_pix_format() argument
182 pix_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format()
183 pix_fmt->height = mbus_fmt->height; in v4l2_fill_pix_format()
184 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format()
185 pix_fmt->colorspace = mbus_fmt->colorspace; in v4l2_fill_pix_format()
186 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format()
187 pix_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format()
188 pix_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format()
200 static inline void v4l2_fill_mbus_format(struct v4l2_mbus_framefmt *mbus_fmt, in v4l2_fill_mbus_format() argument
204 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format()
[all …]
/linux-6.1.9/drivers/media/platform/renesas/
Drenesas-ceu.c160 struct ceu_mbus_fmt mbus_fmt; member
354 struct ceu_mbus_fmt *mbus_fmt = &ceu_sd->mbus_fmt; in ceu_hw_config() local
364 capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8; in ceu_hw_config()
410 if (mbus_fmt->swapped) in ceu_hw_config()
411 camcr = mbus_fmt->fmt_order_swap; in ceu_hw_config()
413 camcr = mbus_fmt->fmt_order; in ceu_hw_config()
424 if (mbus_fmt->swapped) in ceu_hw_config()
425 camcr = mbus_fmt->fmt_order; in ceu_hw_config()
427 camcr = mbus_fmt->fmt_order_swap; in ceu_hw_config()
814 mbus_code_old = ceu_sd->mbus_fmt.mbus_code; in __ceu_try_fmt()
[all …]
/linux-6.1.9/drivers/gpu/ipu-v3/
Dipu-csi.c347 const struct v4l2_mbus_framefmt *mbus_fmt) in fill_csi_bus_cfg() argument
353 ret = mbus_code_to_bus_cfg(csicfg, mbus_fmt->code, mbus_cfg->type); in fill_csi_bus_cfg()
371 is_bt1120 = mbus_fmt->code == MEDIA_BUS_FMT_UYVY8_1X16 || in fill_csi_bus_cfg()
372 mbus_fmt->code == MEDIA_BUS_FMT_YUYV8_1X16; in fill_csi_bus_cfg()
373 if (V4L2_FIELD_HAS_BOTH(mbus_fmt->field) || in fill_csi_bus_cfg()
374 mbus_fmt->field == V4L2_FIELD_ALTERNATE) in fill_csi_bus_cfg()
660 struct v4l2_mbus_framefmt *mbus_fmt) in ipu_csi_set_mipi_datatype() argument
670 ret = mbus_code_to_bus_cfg(&cfg, mbus_fmt->code, V4L2_MBUS_CSI2_DPHY); in ipu_csi_set_mipi_datatype()
/linux-6.1.9/drivers/media/i2c/
Ds5k6aa.c198 struct v4l2_mbus_framefmt mbus_fmt; member
317 preset->mbus_fmt.width = S5K6AA_OUT_WIDTH_DEF; in s5k6aa_presets_data_init()
318 preset->mbus_fmt.height = S5K6AA_OUT_HEIGHT_DEF; in s5k6aa_presets_data_init()
319 preset->mbus_fmt.code = s5k6aa_formats[0].code; in s5k6aa_presets_data_init()
632 int fmt_index = s5k6aa_get_pixfmt_index(s5k6aa, &preset->mbus_fmt); in s5k6aa_set_output_framefmt()
636 preset->mbus_fmt.width); in s5k6aa_set_output_framefmt()
639 preset->mbus_fmt.height); in s5k6aa_set_output_framefmt()
949 struct v4l2_mbus_framefmt *mbus_fmt = &s5k6aa->preset->mbus_fmt; in __s5k6aa_set_frame_interval() local
962 if (mbus_fmt->width > iv->size.width || in __s5k6aa_set_frame_interval()
963 mbus_fmt->height > iv->size.height) in __s5k6aa_set_frame_interval()
[all …]
Dov02a10.c302 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in ov02a10_set_fmt() local
314 mbus_fmt->code = ov02a10->fmt.code; in ov02a10_set_fmt()
315 ov02a10_fill_fmt(ov02a10->cur_mode, mbus_fmt); in ov02a10_set_fmt()
322 *frame_fmt = *mbus_fmt; in ov02a10_set_fmt()
334 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in ov02a10_get_fmt() local
343 mbus_fmt->code = ov02a10->fmt.code; in ov02a10_get_fmt()
344 ov02a10_fill_fmt(ov02a10->cur_mode, mbus_fmt); in ov02a10_get_fmt()
Dov7740.c811 struct v4l2_mbus_framefmt *mbus_fmt; in ov7740_set_fmt() local
826 mbus_fmt = v4l2_subdev_get_try_format(sd, sd_state, in ov7740_set_fmt()
828 *mbus_fmt = format->format; in ov7740_set_fmt()
855 struct v4l2_mbus_framefmt *mbus_fmt; in ov7740_get_fmt() local
862 mbus_fmt = v4l2_subdev_get_try_format(sd, sd_state, 0); in ov7740_get_fmt()
863 format->format = *mbus_fmt; in ov7740_get_fmt()
Dov2685.c335 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in ov2685_set_fmt() local
338 ov2685_fill_fmt(ov2685->cur_mode, mbus_fmt); in ov2685_set_fmt()
348 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in ov2685_get_fmt() local
350 ov2685_fill_fmt(ov2685->cur_mode, mbus_fmt); in ov2685_get_fmt()
Dov7670.c1113 struct v4l2_mbus_framefmt *mbus_fmt; in ov7670_set_fmt() local
1125 mbus_fmt = v4l2_subdev_get_try_format(sd, sd_state, in ov7670_set_fmt()
1127 *mbus_fmt = format->format; in ov7670_set_fmt()
1153 struct v4l2_mbus_framefmt *mbus_fmt; in ov7670_get_fmt() local
1158 mbus_fmt = v4l2_subdev_get_try_format(sd, sd_state, 0); in ov7670_get_fmt()
1159 format->format = *mbus_fmt; in ov7670_get_fmt()
Dst-mipid02.c702 struct v4l2_mbus_framefmt *mbus_fmt = &format->format; in mipid02_get_fmt() local
723 *mbus_fmt = *fmt; in mipid02_get_fmt()
726 mbus_fmt->code = serial_to_parallel_code(mbus_fmt->code); in mipid02_get_fmt()
Dov9650.c1121 struct v4l2_mbus_framefmt *mbus_fmt = &ov965x->format; in __ov965x_set_frame_interval() local
1135 if (mbus_fmt->width != iv->size.width || in __ov965x_set_frame_interval()
1136 mbus_fmt->height != iv->size.height) in __ov965x_set_frame_interval()
Dov5640.c2930 struct v4l2_mbus_framefmt *mbus_fmt = &format->format; in ov5640_set_fmt() local
2943 ret = ov5640_try_fmt_internal(sd, mbus_fmt, in ov5640_set_fmt()
2949 *v4l2_subdev_get_try_format(sd, sd_state, 0) = *mbus_fmt; in ov5640_set_fmt()
2958 if (mbus_fmt->code != sensor->fmt.code) in ov5640_set_fmt()
2962 sensor->fmt = *mbus_fmt; in ov5640_set_fmt()
/linux-6.1.9/drivers/media/platform/samsung/s3c-camif/
Dcamif-capture.c824 if (src_fmt.format.width != camif->mbus_fmt.width || in camif_pipeline_validate()
825 src_fmt.format.height != camif->mbus_fmt.height || in camif_pipeline_validate()
826 src_fmt.format.code != camif->mbus_fmt.code) in camif_pipeline_validate()
1230 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt()
1237 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt()
1317 camif->mbus_fmt = *mf; in s3c_camif_subdev_set_fmt()
1337 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_set_fmt()
1353 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in s3c_camif_subdev_get_selection()
1387 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in __camif_try_crop()
1472 camif->mbus_fmt.width, camif->mbus_fmt.height); in s3c_camif_subdev_set_selection()
[all …]
Dcamif-core.h275 struct v4l2_mbus_framefmt mbus_fmt; member
Dcamif-regs.c105 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in camif_hw_set_source_format()
130 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in camif_hw_set_camera_crop()
/linux-6.1.9/drivers/media/platform/ti/cal/
Dcal-video.c121 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format() local
131 *fmt = *mbus_fmt; in __subdev_get_format()
143 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format() local
148 *mbus_fmt = *fmt; in __subdev_set_format()
815 struct v4l2_mbus_framefmt mbus_fmt; in cal_ctx_v4l2_init_formats() local
868 ret = __subdev_get_format(ctx, &mbus_fmt); in cal_ctx_v4l2_init_formats()
872 fmtinfo = find_format_by_code(ctx, mbus_fmt.code); in cal_ctx_v4l2_init_formats()
875 mbus_fmt.code); in cal_ctx_v4l2_init_formats()
880 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt); in cal_ctx_v4l2_init_formats()
/linux-6.1.9/drivers/media/platform/ti/am437x/
Dam437x-vpfe.c960 struct v4l2_mbus_framefmt mbus_fmt; in vpfe_config_image_format() local
982 ret = __subdev_get_format(vpfe, &mbus_fmt); in vpfe_config_image_format()
986 fmt = find_format_by_code(vpfe, mbus_fmt.code); in vpfe_config_image_format()
989 mbus_fmt.code); in vpfe_config_image_format()
994 v4l2_fill_pix_format(&vpfe->fmt.fmt.pix, &mbus_fmt); in vpfe_config_image_format()
1003 vpfe->crop.width = mbus_fmt.width; in vpfe_config_image_format()
1004 vpfe->crop.height = mbus_fmt.height; in vpfe_config_image_format()
1289 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format() local
1299 *fmt = *mbus_fmt; in __subdev_get_format()
1313 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format() local
[all …]
/linux-6.1.9/drivers/media/pci/saa7134/
Dsaa7134-empress.c105 struct v4l2_mbus_framefmt *mbus_fmt = &fmt.format; in empress_g_fmt_vid_cap() local
109 v4l2_fill_pix_format(&f->fmt.pix, mbus_fmt); in empress_g_fmt_vid_cap()
/linux-6.1.9/drivers/media/platform/ti/davinci/
Dvpif_capture.c990 struct v4l2_mbus_framefmt *mbus_fmt = &format.format; in vpif_g_fmt_vid_cap() local
1002 if (!ret && mbus_fmt->code) { in vpif_g_fmt_vid_cap()
1003 v4l2_fill_pix_format(pix_fmt, mbus_fmt); in vpif_g_fmt_vid_cap()
1005 if (mbus_fmt->code == MEDIA_BUS_FMT_SGRBG10_1X10) { in vpif_g_fmt_vid_cap()
1009 } else if (mbus_fmt->code == MEDIA_BUS_FMT_UYVY8_2X8) { in vpif_g_fmt_vid_cap()
1015 __func__, mbus_fmt->code); in vpif_g_fmt_vid_cap()
1021 mbus_fmt->code, pix_fmt->field, pix_fmt->sizeimage); in vpif_g_fmt_vid_cap()
/linux-6.1.9/drivers/staging/media/deprecated/vpfe_capture/
Dvpfe_capture.c302 struct v4l2_mbus_framefmt *mbus_fmt = &fmt.format; in vpfe_config_image_format() local
336 v4l2_fill_mbus_format(mbus_fmt, pix, in vpfe_config_image_format()
342 v4l2_fill_mbus_format(mbus_fmt, pix, in vpfe_config_image_format()
355 v4l2_fill_pix_format(pix, mbus_fmt); in vpfe_config_image_format()
/linux-6.1.9/include/video/
Dimx-ipu-v3.h372 struct v4l2_mbus_framefmt *mbus_fmt);
/linux-6.1.9/drivers/media/platform/intel/
Dpxa_camera.c254 static const struct pxa_mbus_lookup mbus_fmt[] = { variable
604 return pxa_mbus_find_fmtdesc(code, mbus_fmt, ARRAY_SIZE(mbus_fmt)); in pxa_mbus_get_fmtdesc()
/linux-6.1.9/drivers/media/platform/samsung/exynos4-is/
Dfimc-capture.c944 struct v4l2_mbus_framefmt mbus_fmt; in __video_try_or_set_format() local
947 mf = try ? &mbus_fmt : &fimc->vid_cap.ci_fmt; in __video_try_or_set_format()