Lines Matching +full:two +full:- +full:lane
1 /* SPDX-License-Identifier: GPL-2.0-only */
8 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
22 #include <media/v4l2-mediabus.h>
31 * struct v4l2_fwnode_bus_mipi_csi2 - MIPI CSI-2 bus data structure
33 * @data_lanes: an array of physical data lane indexes
34 * @clock_lane: physical lane index of the clock lane
48 * struct v4l2_fwnode_bus_parallel - parallel data bus data structure
60 * struct v4l2_fwnode_bus_mipi_csi1 - CSI-1/CCP2 data bus structure
62 * false - not inverted, true - inverted
63 * @strobe: false - data/clock, true - data/strobe
66 * @data_lane: the number of the data lane
67 * @clock_lane: the number of the clock lane
78 * struct v4l2_fwnode_endpoint - the endpoint data structure
112 * V4L2_FWNODE_PROPERTY_UNSET - identify a non initialized property
117 #define V4L2_FWNODE_PROPERTY_UNSET (-1U)
120 * enum v4l2_fwnode_orientation - possible device orientation
132 * struct v4l2_fwnode_device_properties - fwnode device properties
142 * struct v4l2_fwnode_link - a link between two endpoints
160 * enum v4l2_connector_type - connector type
172 * struct v4l2_connector_link - connector link data structure
184 * struct v4l2_fwnode_connector_analog - analog connector data structure
193 * struct v4l2_fwnode_connector - the connector data structure
217 * enum v4l2_fwnode_bus_type - Video bus types defined by firmware properties
218 * @V4L2_FWNODE_BUS_TYPE_GUESS: Default value if no bus-type fwnode property
219 * @V4L2_FWNODE_BUS_TYPE_CSI2_CPHY: MIPI CSI-2 bus, C-PHY physical layer
220 * @V4L2_FWNODE_BUS_TYPE_CSI1: MIPI CSI-1 bus
222 * @V4L2_FWNODE_BUS_TYPE_CSI2_DPHY: MIPI CSI-2 bus, D-PHY physical layer
224 * @V4L2_FWNODE_BUS_TYPE_BT656: BT.656 video format bus-type
225 * @NR_OF_V4L2_FWNODE_BUS_TYPE: Number of bus-types
239 * v4l2_fwnode_endpoint_parse() - parse all fwnode node properties
244 * firmware. There are two ways to use this function, either by letting it
249 * When @vep.bus_type is V4L2_MBUS_UNKNOWN, the function will use the "bus-type"
254 * As a deprecated functionality to support older DT bindings without "bus-type"
255 * property for devices that support multiple types, if the "bus-type" property
262 * bus, and it will return an error if the value of the "bus-type" property
270 * NOTE: This function does not parse "link-frequencies" property as its size is
275 * %-ENOMEM on memory allocation failure
276 * %-EINVAL on parsing failure
277 * %-ENXIO on mismatching bus types
283 * v4l2_fwnode_endpoint_free() - free the V4L2 fwnode acquired by
293 * v4l2_fwnode_endpoint_alloc_parse() - parse all fwnode node properties
298 * firmware. There are two ways to use this function, either by letting it
303 * When @vep.bus_type is V4L2_MBUS_UNKNOWN, the function will use the "bus-type"
308 * As a deprecated functionality to support older DT bindings without "bus-type"
309 * property for devices that support multiple types, if the "bus-type" property
316 * bus, and it will return an error if the value of the "bus-type" property
324 * v4l2_fwnode_endpoint_alloc_parse() has two important differences to
333 * %-ENOMEM on memory allocation failure
334 * %-EINVAL on parsing failure
335 * %-ENXIO on mismatching bus types
341 * v4l2_fwnode_parse_link() - parse a link between two endpoints
349 * grand-parent node of the port node otherwise).
355 * Return: 0 on success, or -ENOLINK if the remote endpoint fwnode can't be
362 * v4l2_fwnode_put_link() - drop references to nodes in a link
371 * v4l2_fwnode_connector_free() - free the V4L2 connector acquired memory
383 * v4l2_fwnode_connector_parse() - initialize the 'struct v4l2_fwnode_connector'
399 * * %-EINVAL if @fwnode is invalid
400 * * %-ENOTCONN if connector type is unknown or connector device can't be found
406 * v4l2_fwnode_connector_add_link - add a link between a connector node and
407 * a v4l2-subdev node.
422 * * %-EINVAL if @fwnode or @connector is invalid or @connector type is unknown
423 * * %-ENOMEM on link memory allocation failure
424 * * %-ENOTCONN if remote connector device can't be found
425 * * %-ENOLINK if link parsing between v4l2 (sub)dev and connector fails
431 * v4l2_fwnode_device_parse() - parse fwnode device properties
442 * %-EINVAL if a parsed property value is not valid
448 * typedef parse_endpoint_func - Driver's callback function to be called on
457 * * %-ENOTCONN if the endpoint is to be skipped but this
459 * * %-EINVAL if the endpoint configuration is invalid
466 * v4l2_async_notifier_parse_fwnode_endpoints - Parse V4L2 fwnode endpoints in a
470 * @asd_struct_size: size of the driver's async sub-device struct, including
473 * the driver's async sub-device struct, i.e. both
480 * drivers/media/pci/intel/ipu3/ipu3-cio2.c .
482 * Parse the fwnode endpoints of the @dev device and populate the async sub-
484 * called for each endpoint with the corresponding async sub-device pointer to
485 * let the caller initialize the driver-specific part of the async sub-device
500 * sub-devices are no longer in use, even if the function returned an error.
502 * Return: %0 on success, including when no async sub-devices are found
503 * %-ENOMEM if memory allocation failed
504 * %-EINVAL if graph or endpoint parsing failed
515 /** v4l2_connector_last_link - Helper macro to get the first
523 list_first_entry_or_null(&(v4l2c)->links, \
526 /** v4l2_connector_last_link - Helper macro to get the last
533 list_last_entry(&(v4l2c)->links, struct v4l2_connector_link, head)