Lines Matching +full:link +full:- +full:frequencies

1 /* SPDX-License-Identifier: GPL-2.0-only */
8 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
22 #include <media/v4l2-mediabus.h>
25 * struct v4l2_fwnode_endpoint - the endpoint data structure
39 * @link_frequencies: array of supported link frequencies
55 * V4L2_FWNODE_PROPERTY_UNSET - identify a non initialized property
60 #define V4L2_FWNODE_PROPERTY_UNSET (-1U)
63 * enum v4l2_fwnode_orientation - possible device orientation
75 * struct v4l2_fwnode_device_properties - fwnode device properties
85 * struct v4l2_fwnode_link - a link between two endpoints
103 * enum v4l2_connector_type - connector type
115 * struct v4l2_connector_link - connector link data structure
116 * @head: structure to be used to add the link to the
118 * @fwnode_link: &struct v4l2_fwnode_link link between the connector and the
127 * struct v4l2_fwnode_connector_analog - analog connector data structure
136 * struct v4l2_fwnode_connector - the connector data structure
160 * enum v4l2_fwnode_bus_type - Video bus types defined by firmware properties
161 * @V4L2_FWNODE_BUS_TYPE_GUESS: Default value if no bus-type fwnode property
162 * @V4L2_FWNODE_BUS_TYPE_CSI2_CPHY: MIPI CSI-2 bus, C-PHY physical layer
163 * @V4L2_FWNODE_BUS_TYPE_CSI1: MIPI CSI-1 bus
165 * @V4L2_FWNODE_BUS_TYPE_CSI2_DPHY: MIPI CSI-2 bus, D-PHY physical layer
167 * @V4L2_FWNODE_BUS_TYPE_BT656: BT.656 video format bus-type
169 * @NR_OF_V4L2_FWNODE_BUS_TYPE: Number of bus-types
184 * v4l2_fwnode_endpoint_parse() - parse all fwnode node properties
194 * When @vep.bus_type is V4L2_MBUS_UNKNOWN, the function will use the "bus-type"
199 * As a deprecated functionality to support older DT bindings without "bus-type"
200 * property for devices that support multiple types, if the "bus-type" property
207 * bus, and it will return an error if the value of the "bus-type" property
215 * NOTE: This function does not parse "link-frequencies" property as its size is
220 * %-ENOMEM on memory allocation failure
221 * %-EINVAL on parsing failure
222 * %-ENXIO on mismatching bus types
228 * v4l2_fwnode_endpoint_free() - free the V4L2 fwnode acquired by
238 * v4l2_fwnode_endpoint_alloc_parse() - parse all fwnode node properties
248 * When @vep.bus_type is V4L2_MBUS_UNKNOWN, the function will use the "bus-type"
253 * As a deprecated functionality to support older DT bindings without "bus-type"
254 * property for devices that support multiple types, if the "bus-type" property
261 * bus, and it will return an error if the value of the "bus-type" property
278 * %-ENOMEM on memory allocation failure
279 * %-EINVAL on parsing failure
280 * %-ENXIO on mismatching bus types
286 * v4l2_fwnode_parse_link() - parse a link between two endpoints
287 * @fwnode: pointer to the endpoint's fwnode at the local end of the link
288 * @link: pointer to the V4L2 fwnode link data structure
290 * Fill the link structure with the local and remote nodes and port numbers.
294 * grand-parent node of the port node otherwise).
298 * link.
300 * Return: 0 on success, or -ENOLINK if the remote endpoint fwnode can't be
304 struct v4l2_fwnode_link *link);
307 * v4l2_fwnode_put_link() - drop references to nodes in a link
308 * @link: pointer to the V4L2 fwnode link data structure
310 * Drop references to the local and remote nodes in the link. This function
311 * must be called on every link parsed with v4l2_fwnode_parse_link().
313 void v4l2_fwnode_put_link(struct v4l2_fwnode_link *link);
316 * v4l2_fwnode_connector_free() - free the V4L2 connector acquired memory
328 * v4l2_fwnode_connector_parse() - initialize the 'struct v4l2_fwnode_connector'
344 * * %-EINVAL if @fwnode is invalid
345 * * %-ENOTCONN if connector type is unknown or connector device can't be found
351 * v4l2_fwnode_connector_add_link - add a link between a connector node and
352 * a v4l2-subdev node.
357 * Add a new &struct v4l2_connector_link link to the
358 * &struct v4l2_fwnode_connector connector links list. The link local_node
367 * * %-EINVAL if @fwnode or @connector is invalid or @connector type is unknown
368 * * %-ENOMEM on link memory allocation failure
369 * * %-ENOTCONN if remote connector device can't be found
370 * * %-ENOLINK if link parsing between v4l2 (sub)dev and connector fails
376 * v4l2_fwnode_device_parse() - parse fwnode device properties
387 * %-EINVAL if a parsed property value is not valid
394 /** v4l2_connector_last_link - Helper macro to get the first
395 * &struct v4l2_fwnode_connector link
399 * link or @NULL if the connector has no links.
402 list_first_entry_or_null(&(v4l2c)->links, \
405 /** v4l2_connector_last_link - Helper macro to get the last
406 * &struct v4l2_fwnode_connector link
409 * This marco returns the last &struct v4l2_connector_link added connector link.
412 list_last_entry(&(v4l2c)->links, struct v4l2_connector_link, head)