/kernel/linux/linux-5.10/drivers/staging/media/imx/ |
D | imx-ic-prp.c | 131 struct v4l2_subdev_format *sdformat) in prp_get_fmt() argument 137 if (sdformat->pad >= PRP_NUM_PADS) in prp_get_fmt() 142 fmt = __prp_get_fmt(priv, cfg, sdformat->pad, sdformat->which); in prp_get_fmt() 148 sdformat->format = *fmt; in prp_get_fmt() 156 struct v4l2_subdev_format *sdformat) in prp_set_fmt() argument 164 if (sdformat->pad >= PRP_NUM_PADS) in prp_set_fmt() 174 infmt = __prp_get_fmt(priv, cfg, PRP_SINK_PAD, sdformat->which); in prp_set_fmt() 176 switch (sdformat->pad) { in prp_set_fmt() 178 v4l_bound_align_image(&sdformat->format.width, MIN_W, MAX_W, in prp_set_fmt() 179 W_ALIGN, &sdformat->format.height, in prp_set_fmt() [all …]
|
D | imx-media-vdic.c | 557 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, cfg, 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 …]
|
D | imx-media-csi.c | 1360 struct v4l2_subdev_format *sdformat) in csi_get_fmt() argument 1366 if (sdformat->pad >= CSI_NUM_PADS) in csi_get_fmt() 1371 fmt = __csi_get_fmt(priv, cfg, sdformat->pad, sdformat->which); in csi_get_fmt() 1377 sdformat->format = *fmt; in csi_get_fmt() 1385 struct v4l2_subdev_format *sdformat) in csi_try_field() argument 1388 __csi_get_fmt(priv, cfg, CSI_SINK_PAD, sdformat->which); in csi_try_field() 1394 if (sdformat->pad == CSI_SINK_PAD) { in csi_try_field() 1395 if (sdformat->format.field == V4L2_FIELD_ANY) in csi_try_field() 1396 sdformat->format.field = V4L2_FIELD_NONE; in csi_try_field() 1408 if (!V4L2_FIELD_IS_SEQUENTIAL(sdformat->format.field)) in csi_try_field() [all …]
|
D | imx7-media-csi.c | 949 struct v4l2_subdev_format *sdformat) in imx7_csi_get_fmt() argument 957 fmt = imx7_csi_get_format(csi, cfg, sdformat->pad, sdformat->which); in imx7_csi_get_fmt() 963 sdformat->format = *fmt; in imx7_csi_get_fmt() 973 struct v4l2_subdev_format *sdformat, in imx7_csi_try_fmt() argument 981 sdformat->which); in imx7_csi_try_fmt() 985 switch (sdformat->pad) { in imx7_csi_try_fmt() 990 sdformat->format.width = in_fmt->width; in imx7_csi_try_fmt() 991 sdformat->format.height = in_fmt->height; in imx7_csi_try_fmt() 992 sdformat->format.code = in_fmt->code; in imx7_csi_try_fmt() 993 sdformat->format.field = in_fmt->field; in imx7_csi_try_fmt() [all …]
|
D | imx-ic-prpencvf.c | 859 struct v4l2_subdev_format *sdformat) in prp_get_fmt() argument 865 if (sdformat->pad >= PRPENCVF_NUM_PADS) in prp_get_fmt() 870 fmt = __prp_get_fmt(priv, cfg, sdformat->pad, sdformat->which); in prp_get_fmt() 876 sdformat->format = *fmt; in prp_get_fmt() 884 struct v4l2_subdev_format *sdformat, in prp_try_fmt() argument 889 *cc = imx_media_find_ipu_format(sdformat->format.code, in prp_try_fmt() 897 sdformat->format.code = (*cc)->codes[0]; in prp_try_fmt() 900 infmt = __prp_get_fmt(priv, cfg, PRPENCVF_SINK_PAD, sdformat->which); in prp_try_fmt() 902 if (sdformat->pad == PRPENCVF_SRC_PAD) { in prp_try_fmt() 903 sdformat->format.field = infmt->field; in prp_try_fmt() [all …]
|
D | imx6-mipi-csi2.c | 461 struct v4l2_subdev_format *sdformat) in csi2_get_fmt() argument 468 fmt = __csi2_get_fmt(csi2, cfg, sdformat->pad, sdformat->which); in csi2_get_fmt() 470 sdformat->format = *fmt; in csi2_get_fmt() 479 struct v4l2_subdev_format *sdformat) in csi2_set_fmt() argument 485 if (sdformat->pad >= CSI2_NUM_PADS) in csi2_set_fmt() 496 if (sdformat->pad != CSI2_SINK_PAD) in csi2_set_fmt() 497 sdformat->format = csi2->format_mbus; in csi2_set_fmt() 499 fmt = __csi2_get_fmt(csi2, cfg, sdformat->pad, sdformat->which); in csi2_set_fmt() 501 *fmt = sdformat->format; in csi2_set_fmt()
|
D | imx7-mipi-csis.c | 752 struct v4l2_subdev_format *sdformat) in mipi_csis_get_fmt() argument 758 fmt = mipi_csis_get_format(state, cfg, sdformat->which, sdformat->pad); in mipi_csis_get_fmt() 759 sdformat->format = *fmt; in mipi_csis_get_fmt() 799 struct v4l2_subdev_format *sdformat) in mipi_csis_set_fmt() argument 810 if (sdformat->pad == CSIS_PAD_SOURCE) in mipi_csis_set_fmt() 811 return mipi_csis_get_fmt(mipi_sd, cfg, sdformat); in mipi_csis_set_fmt() 813 if (sdformat->pad != CSIS_PAD_SINK) in mipi_csis_set_fmt() 816 fmt = mipi_csis_get_format(state, cfg, sdformat->which, sdformat->pad); in mipi_csis_set_fmt() 821 csis_fmt = find_csis_format(sdformat->format.code); in mipi_csis_set_fmt() 826 fmt->width = sdformat->format.width; in mipi_csis_set_fmt() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/ |
D | video-mux.c | 160 struct v4l2_subdev_format *sdformat) in video_mux_get_format() argument 166 sdformat->format = *__video_mux_get_pad_format(sd, cfg, sdformat->pad, in video_mux_get_format() 167 sdformat->which); in video_mux_get_format() 176 struct v4l2_subdev_format *sdformat) in video_mux_set_format() argument 180 struct media_pad *pad = &vmux->pads[sdformat->pad]; in video_mux_set_format() 183 mbusformat = __video_mux_get_pad_format(sd, cfg, sdformat->pad, in video_mux_set_format() 184 sdformat->which); in video_mux_set_format() 189 sdformat->which); in video_mux_set_format() 194 v4l_bound_align_image(&sdformat->format.width, 1, 65536, 0, in video_mux_set_format() 195 &sdformat->format.height, 1, 65536, 0, 0); in video_mux_set_format() [all …]
|
/kernel/linux/linux-5.10/drivers/media/i2c/adv748x/ |
D | adv748x-csi2.c | 158 struct v4l2_subdev_format *sdformat) in adv748x_csi2_get_format() argument 164 mbusformat = adv748x_csi2_get_pad_format(sd, cfg, sdformat->pad, in adv748x_csi2_get_format() 165 sdformat->which); in adv748x_csi2_get_format() 171 sdformat->format = *mbusformat; in adv748x_csi2_get_format() 180 struct v4l2_subdev_format *sdformat) in adv748x_csi2_set_format() argument 187 mbusformat = adv748x_csi2_get_pad_format(sd, cfg, sdformat->pad, in adv748x_csi2_set_format() 188 sdformat->which); in adv748x_csi2_set_format() 194 if (sdformat->pad == ADV748X_CSI2_SOURCE) { in adv748x_csi2_set_format() 199 sdformat->which); in adv748x_csi2_set_format() 206 sdformat->format = *sink_fmt; in adv748x_csi2_set_format() [all …]
|
D | adv748x-afe.c | 347 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() 357 mbusformat = v4l2_subdev_get_try_format(sd, cfg, sdformat->pad); in adv748x_afe_get_format() 358 sdformat->format = *mbusformat; in adv748x_afe_get_format() 360 adv748x_afe_fill_format(afe, &sdformat->format); in adv748x_afe_get_format() 369 struct v4l2_subdev_format *sdformat) in adv748x_afe_set_format() argument 374 if (sdformat->pad != ADV748X_AFE_SOURCE) in adv748x_afe_set_format() 377 if (sdformat->which == V4L2_SUBDEV_FORMAT_ACTIVE) in adv748x_afe_set_format() 378 return adv748x_afe_get_format(sd, cfg, sdformat); in adv748x_afe_set_format() [all …]
|
D | adv748x-hdmi.c | 425 struct v4l2_subdev_format *sdformat) in adv748x_hdmi_get_format() argument 430 if (sdformat->pad != ADV748X_HDMI_SOURCE) in adv748x_hdmi_get_format() 433 if (sdformat->which == V4L2_SUBDEV_FORMAT_TRY) { in adv748x_hdmi_get_format() 434 mbusformat = v4l2_subdev_get_try_format(sd, cfg, sdformat->pad); in adv748x_hdmi_get_format() 435 sdformat->format = *mbusformat; in adv748x_hdmi_get_format() 437 adv748x_hdmi_fill_format(hdmi, &sdformat->format); in adv748x_hdmi_get_format() 446 struct v4l2_subdev_format *sdformat) in adv748x_hdmi_set_format() argument 450 if (sdformat->pad != ADV748X_HDMI_SOURCE) in adv748x_hdmi_set_format() 453 if (sdformat->which == V4L2_SUBDEV_FORMAT_ACTIVE) in adv748x_hdmi_set_format() 454 return adv748x_hdmi_get_format(sd, cfg, sdformat); in adv748x_hdmi_set_format() [all …]
|