Home
last modified time | relevance | path

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

/linux-6.12.1/include/media/
Dv4l2-mediabus.h181 const struct v4l2_mbus_framefmt *mbus_fmt) in v4l2_fill_pix_format() argument
183 pix_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format()
184 pix_fmt->height = mbus_fmt->height; in v4l2_fill_pix_format()
185 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format()
186 pix_fmt->colorspace = mbus_fmt->colorspace; in v4l2_fill_pix_format()
187 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format()
188 pix_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format()
189 pix_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format()
201 static inline void v4l2_fill_mbus_format(struct v4l2_mbus_framefmt *mbus_fmt, in v4l2_fill_mbus_format() argument
205 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format()
[all …]
/linux-6.12.1/drivers/media/platform/renesas/
Drenesas-ceu.c159 struct ceu_mbus_fmt mbus_fmt; member
353 struct ceu_mbus_fmt *mbus_fmt = &ceu_sd->mbus_fmt; in ceu_hw_config() local
363 capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8; in ceu_hw_config()
409 if (mbus_fmt->swapped) in ceu_hw_config()
410 camcr = mbus_fmt->fmt_order_swap; in ceu_hw_config()
412 camcr = mbus_fmt->fmt_order; in ceu_hw_config()
423 if (mbus_fmt->swapped) in ceu_hw_config()
424 camcr = mbus_fmt->fmt_order; in ceu_hw_config()
426 camcr = mbus_fmt->fmt_order_swap; in ceu_hw_config()
804 mbus_code_old = ceu_sd->mbus_fmt.mbus_code; in __ceu_try_fmt()
[all …]
/linux-6.12.1/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.12.1/drivers/media/platform/samsung/s3c-camif/
Dcamif-capture.c825 if (src_fmt.format.width != camif->mbus_fmt.width || in camif_pipeline_validate()
826 src_fmt.format.height != camif->mbus_fmt.height || in camif_pipeline_validate()
827 src_fmt.format.code != camif->mbus_fmt.code) in camif_pipeline_validate()
1229 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt()
1236 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt()
1316 camif->mbus_fmt = *mf; in s3c_camif_subdev_set_fmt()
1336 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_set_fmt()
1352 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in s3c_camif_subdev_get_selection()
1386 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in __camif_try_crop()
1471 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.12.1/drivers/media/i2c/
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.c775 struct v4l2_mbus_framefmt *mbus_fmt; in ov7740_set_fmt() local
789 mbus_fmt = v4l2_subdev_state_get_format(sd_state, format->pad); in ov7740_set_fmt()
790 *mbus_fmt = format->format; in ov7740_set_fmt()
815 struct v4l2_mbus_framefmt *mbus_fmt; in ov7740_get_fmt() local
819 mbus_fmt = v4l2_subdev_state_get_format(sd_state, 0); in ov7740_get_fmt()
820 format->format = *mbus_fmt; in ov7740_get_fmt()
Dtw9900.c191 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in tw9900_get_fmt() local
194 tw9900_fill_fmt(tw9900->cur_mode, mbus_fmt); in tw9900_get_fmt()
205 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in tw9900_set_fmt() local
214 tw9900_fill_fmt(tw9900->cur_mode, mbus_fmt); in tw9900_set_fmt()
Dov2685.c347 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in ov2685_set_fmt() local
350 ov2685_fill_fmt(ov2685->cur_mode, mbus_fmt); in ov2685_set_fmt()
360 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in ov2685_get_fmt() local
362 ov2685_fill_fmt(ov2685->cur_mode, mbus_fmt); in ov2685_get_fmt()
Dov7670.c1105 struct v4l2_mbus_framefmt *mbus_fmt; in ov7670_set_fmt() local
1115 mbus_fmt = v4l2_subdev_state_get_format(sd_state, format->pad); in ov7670_set_fmt()
1116 *mbus_fmt = format->format; in ov7670_set_fmt()
1140 struct v4l2_mbus_framefmt *mbus_fmt; in ov7670_get_fmt() local
1143 mbus_fmt = v4l2_subdev_state_get_format(sd_state, 0); in ov7670_get_fmt()
1144 format->format = *mbus_fmt; in ov7670_get_fmt()
Dthp7312.c737 struct v4l2_mbus_framefmt *mbus_fmt = &format->format; in thp7312_set_fmt() local
742 if (!thp7312_find_bus_code(mbus_fmt->code)) in thp7312_set_fmt()
743 mbus_fmt->code = thp7312_colour_fmts[0]; in thp7312_set_fmt()
745 mode = thp7312_find_mode(mbus_fmt->width, mbus_fmt->height, true); in thp7312_set_fmt()
749 fmt->code = mbus_fmt->code; in thp7312_set_fmt()
757 *mbus_fmt = *fmt; in thp7312_set_fmt()
Dgc08a3.c714 struct v4l2_mbus_framefmt *mbus_fmt; in gc08a3_set_format() local
729 mbus_fmt = v4l2_subdev_state_get_format(state, 0); in gc08a3_set_format()
730 *mbus_fmt = fmt->format; in gc08a3_set_format()
Dgc05a2.c739 struct v4l2_mbus_framefmt *mbus_fmt; in gc05a2_set_format() local
754 mbus_fmt = v4l2_subdev_state_get_format(state, 0); in gc05a2_set_format()
755 *mbus_fmt = fmt->format; in gc05a2_set_format()
Dov9650.c1127 struct v4l2_mbus_framefmt *mbus_fmt = &ov965x->format; in __ov965x_set_frame_interval() local
1141 if (mbus_fmt->width != iv->size.width || in __ov965x_set_frame_interval()
1142 mbus_fmt->height != iv->size.height) in __ov965x_set_frame_interval()
Dov4689.c336 struct v4l2_mbus_framefmt *mbus_fmt = &fmt->format; in ov4689_set_fmt() local
340 ov4689_fill_fmt(ov4689->cur_mode, mbus_fmt); in ov4689_set_fmt()
Dov5640.c2955 struct v4l2_mbus_framefmt *mbus_fmt = &format->format; in ov5640_set_fmt() local
2968 ret = ov5640_try_fmt_internal(sd, mbus_fmt, &new_mode); in ov5640_set_fmt()
2973 *v4l2_subdev_state_get_format(sd_state, 0) = *mbus_fmt; in ov5640_set_fmt()
2982 if (mbus_fmt->code != sensor->fmt.code) in ov5640_set_fmt()
2986 sensor->fmt = *mbus_fmt; in ov5640_set_fmt()
/linux-6.12.1/drivers/media/platform/ti/cal/
Dcal-video.c124 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format() local
131 *fmt = *mbus_fmt; in __subdev_get_format()
146 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format() local
149 *mbus_fmt = *fmt; in __subdev_set_format()
831 struct v4l2_mbus_framefmt mbus_fmt; in cal_ctx_v4l2_init_formats() local
885 ret = __subdev_get_format(ctx, &mbus_fmt); in cal_ctx_v4l2_init_formats()
889 fmtinfo = find_format_by_code(ctx, mbus_fmt.code); in cal_ctx_v4l2_init_formats()
892 mbus_fmt.code); in cal_ctx_v4l2_init_formats()
897 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt); in cal_ctx_v4l2_init_formats()
/linux-6.12.1/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()
1288 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format() local
1295 *fmt = *mbus_fmt; in __subdev_get_format()
1312 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format() local
[all …]
/linux-6.12.1/drivers/media/pci/saa7134/
Dsaa7134-empress.c106 struct v4l2_mbus_framefmt *mbus_fmt = &fmt.format; in empress_g_fmt_vid_cap() local
110 v4l2_fill_pix_format(&f->fmt.pix, mbus_fmt); in empress_g_fmt_vid_cap()
/linux-6.12.1/drivers/media/platform/ti/davinci/
Dvpif_capture.c991 struct v4l2_mbus_framefmt *mbus_fmt = &format.format; in vpif_g_fmt_vid_cap() local
1003 if (!ret && mbus_fmt->code) { in vpif_g_fmt_vid_cap()
1004 v4l2_fill_pix_format(pix_fmt, mbus_fmt); in vpif_g_fmt_vid_cap()
1006 if (mbus_fmt->code == MEDIA_BUS_FMT_SGRBG10_1X10) { in vpif_g_fmt_vid_cap()
1010 } else if (mbus_fmt->code == MEDIA_BUS_FMT_UYVY8_2X8) { in vpif_g_fmt_vid_cap()
1016 __func__, mbus_fmt->code); in vpif_g_fmt_vid_cap()
1022 mbus_fmt->code, pix_fmt->field, pix_fmt->sizeimage); in vpif_g_fmt_vid_cap()
/linux-6.12.1/include/video/
Dimx-ipu-v3.h372 struct v4l2_mbus_framefmt *mbus_fmt);
/linux-6.12.1/drivers/media/platform/intel/
Dpxa_camera.c255 static const struct pxa_mbus_lookup mbus_fmt[] = { variable
605 return pxa_mbus_find_fmtdesc(code, mbus_fmt, ARRAY_SIZE(mbus_fmt)); in pxa_mbus_get_fmtdesc()
/linux-6.12.1/drivers/media/platform/samsung/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()