Lines Matching +full:bus +full:- +full:width

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Media Bus API header
11 #include <linux/v4l2-mediabus.h>
17 * bus configuration parameter. One and only one bit of each group of flags
20 * reporting the media bus configuration. For example, it is invalid to set or
59 /* FIELD = 0/1 - Field1 (odd)/Field2 (even) */
61 /* FIELD = 1/0 - Field1 (odd)/Field2 (even) */
63 /* Active state of Sync-on-green (SoG) signal, 0/1 for LOW/HIGH respectively. */
70 /* Clock non-continuous mode support. */
76 * struct v4l2_mbus_config_mipi_csi2 - MIPI CSI-2 data bus configuration
77 * @flags: media bus (V4L2_MBUS_*) flags
93 * struct v4l2_mbus_config_parallel - parallel data bus configuration
94 * @flags: media bus (V4L2_MBUS_*) flags
95 * @bus_width: bus width in bits
105 * struct v4l2_mbus_config_mipi_csi1 - CSI-1/CCP2 data bus configuration
107 * false - not inverted, true - inverted
108 * @strobe: false - data/clock, true - data/strobe
123 * enum v4l2_mbus_type - media bus type
124 * @V4L2_MBUS_UNKNOWN: unknown bus type, no V4L2 mediabus configuration
128 * @V4L2_MBUS_CSI1: MIPI CSI-1 serial interface
130 * @V4L2_MBUS_CSI2_DPHY: MIPI CSI-2 serial interface, with D-PHY
131 * @V4L2_MBUS_CSI2_CPHY: MIPI CSI-2 serial interface, with C-PHY
133 * @V4L2_MBUS_INVALID: invalid bus type (keep as last)
148 * struct v4l2_mbus_config - media bus configuration
150 * @bus: bus configuration data structure
151 * @bus.parallel: embedded &struct v4l2_mbus_config_parallel.
152 * Used if the bus is parallel or BT.656.
153 * @bus.mipi_csi1: embedded &struct v4l2_mbus_config_mipi_csi1.
154 * Used if the bus is MIPI Alliance's Camera Serial
158 * @bus.mipi_csi2: embedded &struct v4l2_mbus_config_mipi_csi2.
159 * Used if the bus is MIPI Alliance's Camera Serial
168 } bus; member
172 * v4l2_fill_pix_format - Ancillary routine that fills a &struct
182 pix_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format()
183 pix_fmt->height = mbus_fmt->height; in v4l2_fill_pix_format()
184 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format()
185 pix_fmt->colorspace = mbus_fmt->colorspace; in v4l2_fill_pix_format()
186 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format()
187 pix_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format()
188 pix_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format()
192 * v4l2_fill_mbus_format - Ancillary routine that fills a &struct
204 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format()
205 mbus_fmt->height = pix_fmt->height; in v4l2_fill_mbus_format()
206 mbus_fmt->field = pix_fmt->field; in v4l2_fill_mbus_format()
207 mbus_fmt->colorspace = pix_fmt->colorspace; in v4l2_fill_mbus_format()
208 mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc; in v4l2_fill_mbus_format()
209 mbus_fmt->quantization = pix_fmt->quantization; in v4l2_fill_mbus_format()
210 mbus_fmt->xfer_func = pix_fmt->xfer_func; in v4l2_fill_mbus_format()
211 mbus_fmt->code = code; in v4l2_fill_mbus_format()
215 * v4l2_fill_pix_format_mplane - Ancillary routine that fills a &struct
216 * v4l2_pix_format_mplane fields from a media bus structure.
225 pix_mp_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format_mplane()
226 pix_mp_fmt->height = mbus_fmt->height; in v4l2_fill_pix_format_mplane()
227 pix_mp_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format_mplane()
228 pix_mp_fmt->colorspace = mbus_fmt->colorspace; in v4l2_fill_pix_format_mplane()
229 pix_mp_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format_mplane()
230 pix_mp_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format_mplane()
231 pix_mp_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format_mplane()
235 * v4l2_fill_mbus_format_mplane - Ancillary routine that fills a &struct
245 mbus_fmt->width = pix_mp_fmt->width; in v4l2_fill_mbus_format_mplane()
246 mbus_fmt->height = pix_mp_fmt->height; in v4l2_fill_mbus_format_mplane()
247 mbus_fmt->field = pix_mp_fmt->field; in v4l2_fill_mbus_format_mplane()
248 mbus_fmt->colorspace = pix_mp_fmt->colorspace; in v4l2_fill_mbus_format_mplane()
249 mbus_fmt->ycbcr_enc = pix_mp_fmt->ycbcr_enc; in v4l2_fill_mbus_format_mplane()
250 mbus_fmt->quantization = pix_mp_fmt->quantization; in v4l2_fill_mbus_format_mplane()
251 mbus_fmt->xfer_func = pix_mp_fmt->xfer_func; in v4l2_fill_mbus_format_mplane()