Home
last modified time | relevance | path

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

/drivers/media/platform/
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 …]
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()
/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()
Dst-mipid02.c676 struct v4l2_mbus_framefmt *mbus_fmt = &format->format; in mipid02_get_fmt() local
697 *mbus_fmt = *fmt; in mipid02_get_fmt()
700 mbus_fmt->code = serial_to_parallel_code(mbus_fmt->code); in mipid02_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()
Dov5640.c2295 struct v4l2_mbus_framefmt *mbus_fmt = &format->format; in ov5640_set_fmt() local
2308 ret = ov5640_try_fmt_internal(sd, mbus_fmt, in ov5640_set_fmt()
2314 *v4l2_subdev_get_try_format(sd, sd_state, 0) = *mbus_fmt; in ov5640_set_fmt()
2322 if (mbus_fmt->code != sensor->fmt.code) in ov5640_set_fmt()
2326 sensor->fmt = *mbus_fmt; in ov5640_set_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()
/drivers/media/platform/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()
1228 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt()
1235 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt()
1315 camif->mbus_fmt = *mf; in s3c_camif_subdev_set_fmt()
1335 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_set_fmt()
1351 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in s3c_camif_subdev_get_selection()
1385 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in __camif_try_crop()
1470 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()
/drivers/media/platform/ti-vpe/
Dcal-video.c125 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format() local
135 *fmt = *mbus_fmt; in __subdev_get_format()
147 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format() local
152 *mbus_fmt = *fmt; in __subdev_set_format()
817 struct v4l2_mbus_framefmt mbus_fmt; in cal_ctx_v4l2_init_formats() local
871 ret = __subdev_get_format(ctx, &mbus_fmt); in cal_ctx_v4l2_init_formats()
875 fmtinfo = find_format_by_code(ctx, mbus_fmt.code); in cal_ctx_v4l2_init_formats()
878 mbus_fmt.code); in cal_ctx_v4l2_init_formats()
883 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt); in cal_ctx_v4l2_init_formats()
/drivers/gpu/ipu-v3/
Dipu-csi.c333 const struct v4l2_mbus_framefmt *mbus_fmt) in fill_csi_bus_cfg() argument
339 ret = mbus_code_to_bus_cfg(csicfg, mbus_fmt->code, mbus_cfg->type); in fill_csi_bus_cfg()
356 if (V4L2_FIELD_HAS_BOTH(mbus_fmt->field) || in fill_csi_bus_cfg()
357 mbus_fmt->field == V4L2_FIELD_ALTERNATE) in fill_csi_bus_cfg()
639 struct v4l2_mbus_framefmt *mbus_fmt) in ipu_csi_set_mipi_datatype() argument
649 ret = mbus_code_to_bus_cfg(&cfg, mbus_fmt->code, V4L2_MBUS_CSI2_DPHY); in ipu_csi_set_mipi_datatype()
/drivers/media/platform/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 …]
/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()
/drivers/media/platform/davinci/
Dvpif_capture.c1001 struct v4l2_mbus_framefmt *mbus_fmt = &format.format; in vpif_g_fmt_vid_cap() local
1013 if (!ret && mbus_fmt->code) { in vpif_g_fmt_vid_cap()
1014 v4l2_fill_pix_format(pix_fmt, mbus_fmt); in vpif_g_fmt_vid_cap()
1016 if (mbus_fmt->code == MEDIA_BUS_FMT_SGRBG10_1X10) { in vpif_g_fmt_vid_cap()
1020 } else if (mbus_fmt->code == MEDIA_BUS_FMT_UYVY8_2X8) { in vpif_g_fmt_vid_cap()
1026 __func__, mbus_fmt->code); in vpif_g_fmt_vid_cap()
1032 mbus_fmt->code, pix_fmt->field, pix_fmt->sizeimage); in vpif_g_fmt_vid_cap()
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()
/drivers/media/platform/exynos4-is/
Dfimc-capture.c945 struct v4l2_mbus_framefmt mbus_fmt; in __video_try_or_set_format() local
948 mf = try ? &mbus_fmt : &fimc->vid_cap.ci_fmt; in __video_try_or_set_format()