Lines Matching +full:enum +full:- +full:model
1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <linux/v4l2-mediabus.h>
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
85 enum v4l2_mbus_csi2_cphy_line_orders_type {
95 * struct v4l2_mbus_config_mipi_csi2 - MIPI CSI-2 data bus configuration
111 enum v4l2_mbus_csi2_cphy_line_orders_type line_orders[V4L2_MBUS_CSI2_MAX_DATA_LANES];
115 * struct v4l2_mbus_config_parallel - parallel data bus configuration
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
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
157 enum v4l2_mbus_type {
170 * struct v4l2_mbus_config - media bus configuration
185 enum v4l2_mbus_type type;
194 * v4l2_fill_pix_format - Ancillary routine that fills a &struct
198 * @mbus_fmt: pointer to &struct v4l2_mbus_framefmt to be used as model
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
219 * @pix_fmt: pointer to &struct v4l2_pix_format to be used as model
220 * @code: data format code (from &enum v4l2_mbus_pixelcode)
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
241 * @mbus_fmt: pointer to &struct v4l2_mbus_framefmt to be used as model
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
261 * @pix_mp_fmt: pointer to &struct v4l2_pix_format_mplane to be used as model
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;