Home
last modified time | relevance | path

Searched refs:sdformat (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/drivers/staging/media/imx/
Dimx-ic-prp.c130 struct v4l2_subdev_format *sdformat) in prp_get_fmt() argument
136 if (sdformat->pad >= PRP_NUM_PADS) in prp_get_fmt()
141 fmt = __prp_get_fmt(priv, sd_state, sdformat->pad, sdformat->which); in prp_get_fmt()
147 sdformat->format = *fmt; in prp_get_fmt()
155 struct v4l2_subdev_format *sdformat) in prp_set_fmt() argument
163 if (sdformat->pad >= PRP_NUM_PADS) in prp_set_fmt()
173 infmt = __prp_get_fmt(priv, sd_state, PRP_SINK_PAD, sdformat->which); in prp_set_fmt()
175 switch (sdformat->pad) { in prp_set_fmt()
177 v4l_bound_align_image(&sdformat->format.width, MIN_W, MAX_W, in prp_set_fmt()
178 W_ALIGN, &sdformat->format.height, in prp_set_fmt()
[all …]
Dimx-media-vdic.c557 struct v4l2_subdev_format *sdformat) in vdic_get_fmt() argument
563 if (sdformat->pad >= VDIC_NUM_PADS) in vdic_get_fmt()
568 fmt = __vdic_get_fmt(priv, sd_state, sdformat->pad, sdformat->which); in vdic_get_fmt()
574 sdformat->format = *fmt; in vdic_get_fmt()
582 struct v4l2_subdev_format *sdformat, in vdic_try_fmt() argument
587 *cc = imx_media_find_ipu_format(sdformat->format.code, in vdic_try_fmt()
594 sdformat->format.code = (*cc)->codes[0]; in vdic_try_fmt()
598 sdformat->which); in vdic_try_fmt()
600 switch (sdformat->pad) { in vdic_try_fmt()
602 sdformat->format = *infmt; in vdic_try_fmt()
[all …]
Dimx-media-csi.c1358 struct v4l2_subdev_format *sdformat) in csi_get_fmt() argument
1364 if (sdformat->pad >= CSI_NUM_PADS) in csi_get_fmt()
1369 fmt = __csi_get_fmt(priv, sd_state, sdformat->pad, sdformat->which); in csi_get_fmt()
1375 sdformat->format = *fmt; in csi_get_fmt()
1383 struct v4l2_subdev_format *sdformat) in csi_try_field() argument
1386 __csi_get_fmt(priv, sd_state, CSI_SINK_PAD, sdformat->which); in csi_try_field()
1392 if (sdformat->pad == CSI_SINK_PAD) { in csi_try_field()
1393 if (sdformat->format.field == V4L2_FIELD_ANY) in csi_try_field()
1394 sdformat->format.field = V4L2_FIELD_NONE; in csi_try_field()
1406 if (!V4L2_FIELD_IS_SEQUENTIAL(sdformat->format.field)) in csi_try_field()
[all …]
Dimx-ic-prpencvf.c854 struct v4l2_subdev_format *sdformat) in prp_get_fmt() argument
860 if (sdformat->pad >= PRPENCVF_NUM_PADS) in prp_get_fmt()
865 fmt = __prp_get_fmt(priv, sd_state, sdformat->pad, sdformat->which); in prp_get_fmt()
871 sdformat->format = *fmt; in prp_get_fmt()
879 struct v4l2_subdev_format *sdformat, in prp_try_fmt() argument
884 *cc = imx_media_find_ipu_format(sdformat->format.code, in prp_try_fmt()
892 sdformat->format.code = (*cc)->codes[0]; in prp_try_fmt()
896 sdformat->which); in prp_try_fmt()
898 if (sdformat->pad == PRPENCVF_SRC_PAD) { in prp_try_fmt()
899 sdformat->format.field = infmt->field; in prp_try_fmt()
[all …]
Dimx6-mipi-csi2.c511 struct v4l2_subdev_format *sdformat) in csi2_get_fmt() argument
518 fmt = __csi2_get_fmt(csi2, sd_state, sdformat->pad, sdformat->which); in csi2_get_fmt()
520 sdformat->format = *fmt; in csi2_get_fmt()
529 struct v4l2_subdev_format *sdformat) in csi2_set_fmt() argument
535 if (sdformat->pad >= CSI2_NUM_PADS) in csi2_set_fmt()
546 if (sdformat->pad != CSI2_SINK_PAD) in csi2_set_fmt()
547 sdformat->format = csi2->format_mbus; in csi2_set_fmt()
549 fmt = __csi2_get_fmt(csi2, sd_state, sdformat->pad, sdformat->which); in csi2_set_fmt()
551 *fmt = sdformat->format; in csi2_set_fmt()
/linux-6.12.1/drivers/media/i2c/adv748x/
Dadv748x-afe.c347 struct v4l2_subdev_format *sdformat) in adv748x_afe_get_format() argument
353 if (sdformat->pad != ADV748X_AFE_SOURCE) in adv748x_afe_get_format()
356 if (sdformat->which == V4L2_SUBDEV_FORMAT_TRY) { in adv748x_afe_get_format()
358 sdformat->pad); in adv748x_afe_get_format()
359 sdformat->format = *mbusformat; in adv748x_afe_get_format()
361 adv748x_afe_fill_format(afe, &sdformat->format); in adv748x_afe_get_format()
370 struct v4l2_subdev_format *sdformat) in adv748x_afe_set_format() argument
375 if (sdformat->pad != ADV748X_AFE_SOURCE) in adv748x_afe_set_format()
378 if (sdformat->which == V4L2_SUBDEV_FORMAT_ACTIVE) in adv748x_afe_set_format()
379 return adv748x_afe_get_format(sd, sd_state, sdformat); in adv748x_afe_set_format()
[all …]
Dadv748x-csi2.c230 struct v4l2_subdev_format *sdformat) in adv748x_csi2_set_format() argument
235 if (sdformat->pad == ADV748X_CSI2_SOURCE) in adv748x_csi2_set_format()
236 return v4l2_subdev_get_fmt(sd, sd_state, sdformat); in adv748x_csi2_set_format()
242 if (!adv748x_csi2_is_fmt_supported(tx, sdformat->format.code)) in adv748x_csi2_set_format()
243 sdformat->format.code = MEDIA_BUS_FMT_UYVY8_1X16; in adv748x_csi2_set_format()
245 mbusformat = v4l2_subdev_state_get_format(sd_state, sdformat->pad); in adv748x_csi2_set_format()
246 *mbusformat = sdformat->format; in adv748x_csi2_set_format()
250 *mbusformat = sdformat->format; in adv748x_csi2_set_format()
Dadv748x-hdmi.c432 struct v4l2_subdev_format *sdformat) in adv748x_hdmi_get_format() argument
437 if (sdformat->pad != ADV748X_HDMI_SOURCE) in adv748x_hdmi_get_format()
440 if (sdformat->which == V4L2_SUBDEV_FORMAT_TRY) { in adv748x_hdmi_get_format()
442 sdformat->pad); in adv748x_hdmi_get_format()
443 sdformat->format = *mbusformat; in adv748x_hdmi_get_format()
445 adv748x_hdmi_fill_format(hdmi, &sdformat->format); in adv748x_hdmi_get_format()
454 struct v4l2_subdev_format *sdformat) in adv748x_hdmi_set_format() argument
458 if (sdformat->pad != ADV748X_HDMI_SOURCE) in adv748x_hdmi_set_format()
461 if (sdformat->which == V4L2_SUBDEV_FORMAT_ACTIVE) in adv748x_hdmi_set_format()
462 return adv748x_hdmi_get_format(sd, sd_state, sdformat); in adv748x_hdmi_set_format()
[all …]
/linux-6.12.1/drivers/media/platform/
Dvideo-mux.c150 struct v4l2_subdev_format *sdformat) in video_mux_set_format() argument
154 struct media_pad *pad = &vmux->pads[sdformat->pad]; in video_mux_set_format()
157 mbusformat = v4l2_subdev_state_get_format(sd_state, sdformat->pad); in video_mux_set_format()
166 v4l_bound_align_image(&sdformat->format.width, 1, 65536, 0, in video_mux_set_format()
167 &sdformat->format.height, 1, 65536, 0, 0); in video_mux_set_format()
170 switch (sdformat->format.code) { in video_mux_set_format()
261 sdformat->format.code = MEDIA_BUS_FMT_Y8_1X8; in video_mux_set_format()
264 if (sdformat->format.field == V4L2_FIELD_ANY) in video_mux_set_format()
265 sdformat->format.field = V4L2_FIELD_NONE; in video_mux_set_format()
271 sdformat->format = *v4l2_subdev_state_get_format(sd_state, in video_mux_set_format()
[all …]
/linux-6.12.1/drivers/media/platform/nxp/
Dimx8mq-mipi-csi2.c499 struct v4l2_subdev_format *sdformat) in imx8mq_mipi_csi_set_fmt() argument
508 if (sdformat->pad == MIPI_CSI2_PAD_SOURCE) in imx8mq_mipi_csi_set_fmt()
509 return v4l2_subdev_get_fmt(sd, sd_state, sdformat); in imx8mq_mipi_csi_set_fmt()
511 if (sdformat->pad != MIPI_CSI2_PAD_SINK) in imx8mq_mipi_csi_set_fmt()
514 csi2_fmt = find_csi2_format(sdformat->format.code); in imx8mq_mipi_csi_set_fmt()
518 fmt = v4l2_subdev_state_get_format(sd_state, sdformat->pad); in imx8mq_mipi_csi_set_fmt()
521 fmt->width = sdformat->format.width; in imx8mq_mipi_csi_set_fmt()
522 fmt->height = sdformat->format.height; in imx8mq_mipi_csi_set_fmt()
524 sdformat->format = *fmt; in imx8mq_mipi_csi_set_fmt()
528 *fmt = sdformat->format; in imx8mq_mipi_csi_set_fmt()
Dimx-mipi-csis.c1049 struct v4l2_subdev_format *sdformat) in mipi_csis_set_fmt() argument
1059 if (sdformat->pad == CSIS_PAD_SOURCE) in mipi_csis_set_fmt()
1060 return v4l2_subdev_get_fmt(sd, sd_state, sdformat); in mipi_csis_set_fmt()
1062 if (sdformat->pad != CSIS_PAD_SINK) in mipi_csis_set_fmt()
1072 csis_fmt = find_csis_format(sdformat->format.code); in mipi_csis_set_fmt()
1093 v4l_bound_align_image(&sdformat->format.width, 1, in mipi_csis_set_fmt()
1095 &sdformat->format.height, 1, in mipi_csis_set_fmt()
1098 fmt = v4l2_subdev_state_get_format(sd_state, sdformat->pad); in mipi_csis_set_fmt()
1101 fmt->width = sdformat->format.width; in mipi_csis_set_fmt()
1102 fmt->height = sdformat->format.height; in mipi_csis_set_fmt()
[all …]
Dimx7-media-csi.c1853 struct v4l2_subdev_format *sdformat, in imx7_csi_try_fmt() argument
1862 switch (sdformat->pad) { in imx7_csi_try_fmt()
1866 sdformat->format.width = in_fmt->width; in imx7_csi_try_fmt()
1867 sdformat->format.height = in_fmt->height; in imx7_csi_try_fmt()
1868 sdformat->format.code = in_fmt->code; in imx7_csi_try_fmt()
1869 sdformat->format.field = in_fmt->field; in imx7_csi_try_fmt()
1872 sdformat->format.colorspace = in_fmt->colorspace; in imx7_csi_try_fmt()
1873 sdformat->format.xfer_func = in_fmt->xfer_func; in imx7_csi_try_fmt()
1874 sdformat->format.quantization = in_fmt->quantization; in imx7_csi_try_fmt()
1875 sdformat->format.ycbcr_enc = in_fmt->ycbcr_enc; in imx7_csi_try_fmt()
[all …]