Home
last modified time | relevance | path

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

/drivers/staging/media/imx/
Dimx-ic-prp.c132 struct v4l2_subdev_format *sdformat) in prp_get_fmt() argument
138 if (sdformat->pad >= PRP_NUM_PADS) in prp_get_fmt()
143 fmt = __prp_get_fmt(priv, sd_state, sdformat->pad, sdformat->which); in prp_get_fmt()
149 sdformat->format = *fmt; in prp_get_fmt()
157 struct v4l2_subdev_format *sdformat) in prp_set_fmt() argument
165 if (sdformat->pad >= PRP_NUM_PADS) in prp_set_fmt()
175 infmt = __prp_get_fmt(priv, sd_state, PRP_SINK_PAD, sdformat->which); in prp_set_fmt()
177 switch (sdformat->pad) { in prp_set_fmt()
179 v4l_bound_align_image(&sdformat->format.width, MIN_W, MAX_W, in prp_set_fmt()
180 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.c1356 struct v4l2_subdev_format *sdformat) in csi_get_fmt() argument
1362 if (sdformat->pad >= CSI_NUM_PADS) in csi_get_fmt()
1367 fmt = __csi_get_fmt(priv, sd_state, sdformat->pad, sdformat->which); in csi_get_fmt()
1373 sdformat->format = *fmt; in csi_get_fmt()
1381 struct v4l2_subdev_format *sdformat) in csi_try_field() argument
1384 __csi_get_fmt(priv, sd_state, CSI_SINK_PAD, sdformat->which); in csi_try_field()
1390 if (sdformat->pad == CSI_SINK_PAD) { in csi_try_field()
1391 if (sdformat->format.field == V4L2_FIELD_ANY) in csi_try_field()
1392 sdformat->format.field = V4L2_FIELD_NONE; in csi_try_field()
1404 if (!V4L2_FIELD_IS_SEQUENTIAL(sdformat->format.field)) in csi_try_field()
[all …]
Dimx-ic-prpencvf.c856 struct v4l2_subdev_format *sdformat) in prp_get_fmt() argument
862 if (sdformat->pad >= PRPENCVF_NUM_PADS) in prp_get_fmt()
867 fmt = __prp_get_fmt(priv, sd_state, sdformat->pad, sdformat->which); in prp_get_fmt()
873 sdformat->format = *fmt; in prp_get_fmt()
881 struct v4l2_subdev_format *sdformat, in prp_try_fmt() argument
886 *cc = imx_media_find_ipu_format(sdformat->format.code, in prp_try_fmt()
894 sdformat->format.code = (*cc)->codes[0]; in prp_try_fmt()
898 sdformat->which); in prp_try_fmt()
900 if (sdformat->pad == PRPENCVF_SRC_PAD) { in prp_try_fmt()
901 sdformat->format.field = infmt->field; in prp_try_fmt()
[all …]
Dimx8mq-mipi-csi2.c485 struct v4l2_subdev_format *sdformat) in imx8mq_mipi_csi_get_fmt() argument
490 fmt = imx8mq_mipi_csi_get_format(state, sd_state, sdformat->which, in imx8mq_mipi_csi_get_fmt()
491 sdformat->pad); in imx8mq_mipi_csi_get_fmt()
495 sdformat->format = *fmt; in imx8mq_mipi_csi_get_fmt()
537 struct v4l2_subdev_format *sdformat) in imx8mq_mipi_csi_set_fmt() argument
547 if (sdformat->pad == MIPI_CSI2_PAD_SOURCE) in imx8mq_mipi_csi_set_fmt()
548 return imx8mq_mipi_csi_get_fmt(sd, sd_state, sdformat); in imx8mq_mipi_csi_set_fmt()
550 if (sdformat->pad != MIPI_CSI2_PAD_SINK) in imx8mq_mipi_csi_set_fmt()
553 csi2_fmt = find_csi2_format(sdformat->format.code); in imx8mq_mipi_csi_set_fmt()
557 fmt = imx8mq_mipi_csi_get_format(state, sd_state, sdformat->which, in imx8mq_mipi_csi_set_fmt()
[all …]
Dimx7-media-csi.c1754 struct v4l2_subdev_format *sdformat) in imx7_csi_get_fmt() argument
1762 fmt = imx7_csi_get_format(csi, sd_state, sdformat->pad, in imx7_csi_get_fmt()
1763 sdformat->which); in imx7_csi_get_fmt()
1769 sdformat->format = *fmt; in imx7_csi_get_fmt()
1825 struct v4l2_subdev_format *sdformat, in imx7_csi_try_fmt() argument
1833 sdformat->which); in imx7_csi_try_fmt()
1837 switch (sdformat->pad) { in imx7_csi_try_fmt()
1841 sdformat->format.width = in_fmt->width; in imx7_csi_try_fmt()
1842 sdformat->format.height = in_fmt->height; in imx7_csi_try_fmt()
1843 sdformat->format.code = in_fmt->code; in imx7_csi_try_fmt()
[all …]
Dimx6-mipi-csi2.c510 struct v4l2_subdev_format *sdformat) in csi2_get_fmt() argument
517 fmt = __csi2_get_fmt(csi2, sd_state, sdformat->pad, sdformat->which); in csi2_get_fmt()
519 sdformat->format = *fmt; in csi2_get_fmt()
528 struct v4l2_subdev_format *sdformat) in csi2_set_fmt() argument
534 if (sdformat->pad >= CSI2_NUM_PADS) in csi2_set_fmt()
545 if (sdformat->pad != CSI2_SINK_PAD) in csi2_set_fmt()
546 sdformat->format = csi2->format_mbus; in csi2_set_fmt()
548 fmt = __csi2_get_fmt(csi2, sd_state, sdformat->pad, sdformat->which); in csi2_set_fmt()
550 *fmt = sdformat->format; in csi2_set_fmt()
/drivers/media/platform/
Dvideo-mux.c160 struct v4l2_subdev_format *sdformat) in video_mux_get_format() argument
166 sdformat->format = *__video_mux_get_pad_format(sd, sd_state, in video_mux_get_format()
167 sdformat->pad, in video_mux_get_format()
168 sdformat->which); in video_mux_get_format()
177 struct v4l2_subdev_format *sdformat) in video_mux_set_format() argument
181 struct media_pad *pad = &vmux->pads[sdformat->pad]; in video_mux_set_format()
184 mbusformat = __video_mux_get_pad_format(sd, sd_state, sdformat->pad, in video_mux_set_format()
185 sdformat->which); in video_mux_set_format()
191 sdformat->which); in video_mux_set_format()
196 v4l_bound_align_image(&sdformat->format.width, 1, 65536, 0, in video_mux_set_format()
[all …]
/drivers/media/i2c/adv748x/
Dadv748x-csi2.c157 struct v4l2_subdev_format *sdformat) in adv748x_csi2_get_format() argument
163 mbusformat = adv748x_csi2_get_pad_format(sd, sd_state, sdformat->pad, in adv748x_csi2_get_format()
164 sdformat->which); in adv748x_csi2_get_format()
170 sdformat->format = *mbusformat; in adv748x_csi2_get_format()
179 struct v4l2_subdev_format *sdformat) in adv748x_csi2_set_format() argument
186 mbusformat = adv748x_csi2_get_pad_format(sd, sd_state, sdformat->pad, in adv748x_csi2_set_format()
187 sdformat->which); in adv748x_csi2_set_format()
193 if (sdformat->pad == ADV748X_CSI2_SOURCE) { in adv748x_csi2_set_format()
198 sdformat->which); in adv748x_csi2_set_format()
205 sdformat->format = *sink_fmt; in adv748x_csi2_set_format()
[all …]
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-hdmi.c425 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()
435 sdformat->pad); in adv748x_hdmi_get_format()
436 sdformat->format = *mbusformat; in adv748x_hdmi_get_format()
438 adv748x_hdmi_fill_format(hdmi, &sdformat->format); in adv748x_hdmi_get_format()
447 struct v4l2_subdev_format *sdformat) in adv748x_hdmi_set_format() argument
451 if (sdformat->pad != ADV748X_HDMI_SOURCE) in adv748x_hdmi_set_format()
454 if (sdformat->which == V4L2_SUBDEV_FORMAT_ACTIVE) in adv748x_hdmi_set_format()
455 return adv748x_hdmi_get_format(sd, sd_state, sdformat); in adv748x_hdmi_set_format()
[all …]
/drivers/media/platform/nxp/
Dimx-mipi-csis.c1031 struct v4l2_subdev_format *sdformat) in mipi_csis_get_fmt() argument
1036 fmt = mipi_csis_get_format(csis, sd_state, sdformat->which, in mipi_csis_get_fmt()
1037 sdformat->pad); in mipi_csis_get_fmt()
1040 sdformat->format = *fmt; in mipi_csis_get_fmt()
1081 struct v4l2_subdev_format *sdformat) in mipi_csis_set_fmt() argument
1092 if (sdformat->pad == CSIS_PAD_SOURCE) in mipi_csis_set_fmt()
1093 return mipi_csis_get_fmt(sd, sd_state, sdformat); in mipi_csis_set_fmt()
1095 if (sdformat->pad != CSIS_PAD_SINK) in mipi_csis_set_fmt()
1105 csis_fmt = find_csis_format(sdformat->format.code); in mipi_csis_set_fmt()
1126 v4l_bound_align_image(&sdformat->format.width, 1, in mipi_csis_set_fmt()
[all …]