Lines Matching +full:remote +full:- +full:bus

1 /* SPDX-License-Identifier: GPL-2.0-only */
8 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
22 #include <media/v4l2-mediabus.h>
29 * struct v4l2_fwnode_endpoint - the endpoint data structure
31 * @bus_type: bus type
32 * @bus: bus configuration data structure
33 * @bus.parallel: embedded &struct v4l2_mbus_config_parallel.
34 * Used if the bus is parallel.
35 * @bus.mipi_csi1: embedded &struct v4l2_mbus_config_mipi_csi1.
36 * Used if the bus is MIPI Alliance's Camera Serial
40 * @bus.mipi_csi2: embedded &struct v4l2_mbus_config_mipi_csi2.
41 * Used if the bus is MIPI Alliance's Camera Serial
53 } bus; member
59 * V4L2_FWNODE_PROPERTY_UNSET - identify a non initialized property
64 #define V4L2_FWNODE_PROPERTY_UNSET (-1U)
67 * enum v4l2_fwnode_orientation - possible device orientation
79 * struct v4l2_fwnode_device_properties - fwnode device properties
89 * struct v4l2_fwnode_link - a link between two endpoints
93 * @remote_node: pointer to device_node of the remote endpoint
94 * @remote_port: identifier of the port the remote endpoint belongs to
95 * @remote_id: identifier of the id the remote endpoint belongs to
107 * enum v4l2_connector_type - connector type
119 * struct v4l2_connector_link - connector link data structure
131 * struct v4l2_fwnode_connector_analog - analog connector data structure
140 * struct v4l2_fwnode_connector - the connector data structure
164 * enum v4l2_fwnode_bus_type - Video bus types defined by firmware properties
165 * @V4L2_FWNODE_BUS_TYPE_GUESS: Default value if no bus-type fwnode property
166 * @V4L2_FWNODE_BUS_TYPE_CSI2_CPHY: MIPI CSI-2 bus, C-PHY physical layer
167 * @V4L2_FWNODE_BUS_TYPE_CSI1: MIPI CSI-1 bus
168 * @V4L2_FWNODE_BUS_TYPE_CCP2: SMIA Compact Camera Port 2 bus
169 * @V4L2_FWNODE_BUS_TYPE_CSI2_DPHY: MIPI CSI-2 bus, D-PHY physical layer
170 * @V4L2_FWNODE_BUS_TYPE_PARALLEL: Camera Parallel Interface bus
171 * @V4L2_FWNODE_BUS_TYPE_BT656: BT.656 video format bus-type
172 * @V4L2_FWNODE_BUS_TYPE_DPI: Video Parallel Interface bus
173 * @NR_OF_V4L2_FWNODE_BUS_TYPE: Number of bus-types
188 * v4l2_fwnode_endpoint_parse() - parse all fwnode node properties
194 * obtain the type of the bus (by setting the @vep.bus_type field to
195 * V4L2_MBUS_UNKNOWN) or specifying the bus type explicitly to one of the &enum
198 * When @vep.bus_type is V4L2_MBUS_UNKNOWN, the function will use the "bus-type"
203 * As a deprecated functionality to support older DT bindings without "bus-type"
204 * property for devices that support multiple types, if the "bus-type" property
206 * endpoint properties available. NEVER RELY ON GUESSING THE BUS TYPE IN NEW
209 * It is also possible to set @vep.bus_type corresponding to an actual bus. In
211 * bus, and it will return an error if the value of the "bus-type" property
212 * corresponds to a different bus.
219 * NOTE: This function does not parse "link-frequencies" property as its size is
224 * %-ENOMEM on memory allocation failure
225 * %-EINVAL on parsing failure
226 * %-ENXIO on mismatching bus types
232 * v4l2_fwnode_endpoint_free() - free the V4L2 fwnode acquired by
242 * v4l2_fwnode_endpoint_alloc_parse() - parse all fwnode node properties
248 * obtain the type of the bus (by setting the @vep.bus_type field to
249 * V4L2_MBUS_UNKNOWN) or specifying the bus type explicitly to one of the &enum
252 * When @vep.bus_type is V4L2_MBUS_UNKNOWN, the function will use the "bus-type"
257 * As a deprecated functionality to support older DT bindings without "bus-type"
258 * property for devices that support multiple types, if the "bus-type" property
260 * endpoint properties available. NEVER RELY ON GUESSING THE BUS TYPE IN NEW
263 * It is also possible to set @vep.bus_type corresponding to an actual bus. In
265 * bus, and it will return an error if the value of the "bus-type" property
266 * corresponds to a different bus.
282 * %-ENOMEM on memory allocation failure
283 * %-EINVAL on parsing failure
284 * %-ENXIO on mismatching bus types
290 * v4l2_fwnode_parse_link() - parse a link between two endpoints
294 * Fill the link structure with the local and remote nodes and port numbers.
296 * remote port's parent nodes respectively (the port parent node being the
298 * grand-parent node of the port node otherwise).
300 * A reference is taken to both the local and remote nodes, the caller must use
304 * Return: 0 on success, or -ENOLINK if the remote endpoint fwnode can't be
311 * v4l2_fwnode_put_link() - drop references to nodes in a link
314 * Drop references to the local and remote nodes in the link. This function
320 * v4l2_fwnode_connector_free() - free the V4L2 connector acquired memory
332 * v4l2_fwnode_connector_parse() - initialize the 'struct v4l2_fwnode_connector'
348 * * %-EINVAL if @fwnode is invalid
349 * * %-ENOTCONN if connector type is unknown or connector device can't be found
355 * v4l2_fwnode_connector_add_link - add a link between a connector node and
356 * a v4l2-subdev node.
371 * * %-EINVAL if @fwnode or @connector is invalid or @connector type is unknown
372 * * %-ENOMEM on link memory allocation failure
373 * * %-ENOTCONN if remote connector device can't be found
374 * * %-ENOLINK if link parsing between v4l2 (sub)dev and connector fails
380 * v4l2_fwnode_device_parse() - parse fwnode device properties
391 * %-EINVAL if a parsed property value is not valid
397 * typedef parse_endpoint_func - Driver's callback function to be called on
406 * * %-ENOTCONN if the endpoint is to be skipped but this
408 * * %-EINVAL if the endpoint configuration is invalid
415 * v4l2_async_nf_parse_fwnode_endpoints - Parse V4L2 fwnode endpoints in a
419 * @asd_struct_size: size of the driver's async sub-device struct, including
422 * the driver's async sub-device struct, i.e. both
429 * drivers/media/pci/intel/ipu3/ipu3-cio2.c .
431 * Parse the fwnode endpoints of the @dev device and populate the async sub-
433 * called for each endpoint with the corresponding async sub-device pointer to
434 * let the caller initialize the driver-specific part of the async sub-device
449 * sub-devices are no longer in use, even if the function returned an error.
451 * Return: %0 on success, including when no async sub-devices are found
452 * %-ENOMEM if memory allocation failed
453 * %-EINVAL if graph or endpoint parsing failed
464 /** v4l2_connector_last_link - Helper macro to get the first
472 list_first_entry_or_null(&(v4l2c)->links, \
475 /** v4l2_connector_last_link - Helper macro to get the last
482 list_last_entry(&(v4l2c)->links, struct v4l2_connector_link, head)