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
60 /* FIELD = 0/1 - Field1 (odd)/Field2 (even) */
62 /* FIELD = 1/0 - Field1 (odd)/Field2 (even) */
64 /* Active state of Sync-on-green (SoG) signal, 0/1 for LOW/HIGH respectively. */
71 /* Clock non-continuous mode support. */
77 * enum v4l2_mbus_csi2_cphy_line_orders_type - CSI-2 C-PHY line order
78 * @V4L2_MBUS_CSI2_CPHY_LINE_ORDER_ABC: C-PHY line order ABC (default)
79 * @V4L2_MBUS_CSI2_CPHY_LINE_ORDER_ACB: C-PHY line order ACB
80 * @V4L2_MBUS_CSI2_CPHY_LINE_ORDER_BAC: C-PHY line order BAC
81 * @V4L2_MBUS_CSI2_CPHY_LINE_ORDER_BCA: C-PHY line order BCA
82 * @V4L2_MBUS_CSI2_CPHY_LINE_ORDER_CAB: C-PHY line order CAB
83 * @V4L2_MBUS_CSI2_CPHY_LINE_ORDER_CBA: C-PHY line order CBA
95 * struct v4l2_mbus_config_mipi_csi2 - MIPI CSI-2 data bus configuration
96 * @flags: media bus (V4L2_MBUS_*) flags
115 * struct v4l2_mbus_config_parallel - parallel data bus configuration
116 * @flags: media bus (V4L2_MBUS_*) flags
117 * @bus_width: bus width in bits
127 * struct v4l2_mbus_config_mipi_csi1 - CSI-1/CCP2 data bus configuration
129 * false - not inverted, true - inverted
130 * @strobe: false - data/clock, true - data/strobe
145 * enum v4l2_mbus_type - media bus type
146 * @V4L2_MBUS_UNKNOWN: unknown bus type, no V4L2 mediabus configuration
150 * @V4L2_MBUS_CSI1: MIPI CSI-1 serial interface
152 * @V4L2_MBUS_CSI2_DPHY: MIPI CSI-2 serial interface, with D-PHY
153 * @V4L2_MBUS_CSI2_CPHY: MIPI CSI-2 serial interface, with C-PHY
155 * @V4L2_MBUS_INVALID: invalid bus type (keep as last)
170 * struct v4l2_mbus_config - media bus configuration
172 * @bus: bus configuration data structure
173 * @bus.parallel: embedded &struct v4l2_mbus_config_parallel.
174 * Used if the bus is parallel or BT.656.
175 * @bus.mipi_csi1: embedded &struct v4l2_mbus_config_mipi_csi1.
176 * Used if the bus is MIPI Alliance's Camera Serial
180 * @bus.mipi_csi2: embedded &struct v4l2_mbus_config_mipi_csi2.
181 * Used if the bus is MIPI Alliance's Camera Serial
190 } bus;
194 * v4l2_fill_pix_format - Ancillary routine that fills a &struct
204 pix_fmt->width = mbus_fmt->width;
205 pix_fmt->height = mbus_fmt->height;
206 pix_fmt->field = mbus_fmt->field;
207 pix_fmt->colorspace = mbus_fmt->colorspace;
208 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc;
209 pix_fmt->quantization = mbus_fmt->quantization;
210 pix_fmt->xfer_func = mbus_fmt->xfer_func;
214 * v4l2_fill_mbus_format - Ancillary routine that fills a &struct
226 mbus_fmt->width = pix_fmt->width;
227 mbus_fmt->height = pix_fmt->height;
228 mbus_fmt->field = pix_fmt->field;
229 mbus_fmt->colorspace = pix_fmt->colorspace;
230 mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc;
231 mbus_fmt->quantization = pix_fmt->quantization;
232 mbus_fmt->xfer_func = pix_fmt->xfer_func;
233 mbus_fmt->code = code;
237 * v4l2_fill_pix_format_mplane - Ancillary routine that fills a &struct
238 * v4l2_pix_format_mplane fields from a media bus structure.
247 pix_mp_fmt->width = mbus_fmt->width;
248 pix_mp_fmt->height = mbus_fmt->height;
249 pix_mp_fmt->field = mbus_fmt->field;
250 pix_mp_fmt->colorspace = mbus_fmt->colorspace;
251 pix_mp_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc;
252 pix_mp_fmt->quantization = mbus_fmt->quantization;
253 pix_mp_fmt->xfer_func = mbus_fmt->xfer_func;
257 * v4l2_fill_mbus_format_mplane - Ancillary routine that fills a &struct
267 mbus_fmt->width = pix_mp_fmt->width;
268 mbus_fmt->height = pix_mp_fmt->height;
269 mbus_fmt->field = pix_mp_fmt->field;
270 mbus_fmt->colorspace = pix_mp_fmt->colorspace;
271 mbus_fmt->ycbcr_enc = pix_mp_fmt->ycbcr_enc;
272 mbus_fmt->quantization = pix_mp_fmt->quantization;
273 mbus_fmt->xfer_func = pix_mp_fmt->xfer_func;