Lines Matching +full:sub +full:- +full:function

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
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
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
243 * This function parses the V4L2 fwnode endpoint specific parameters from the
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
256 * does not exist, the function will attempt to guess the type based on the
261 * this case the function will only attempt to parse properties related to this
262 * bus, and it will return an error if the value of the "bus-type" property
268 * The function does not change the V4L2 fwnode endpoint state if it fails.
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
287 * It is safe to call this function with NULL argument or on a V4L2 fwnode the
293 * v4l2_fwnode_endpoint_alloc_parse() - parse all fwnode node properties
297 * This function parses the V4L2 fwnode endpoint specific parameters from the
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
310 * does not exist, the function will attempt to guess the type based on the
315 * this case the function will only attempt to parse properties related to this
316 * bus, and it will return an error if the value of the "bus-type" property
322 * The function does not change the V4L2 fwnode endpoint state if it fails.
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
365 * Drop references to the local and remote nodes in the link. This function
371 * v4l2_fwnode_connector_free() - free the V4L2 connector acquired memory
377 * It is safe to call this function with NULL argument or on a V4L2 connector
383 * v4l2_fwnode_connector_parse() - initialize the 'struct v4l2_fwnode_connector'
390 * so it is set to %NULL if no one was found. The function initialize the links
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.
414 * points to the connector node, the remote_node to the host v4l2 (sub)dev.
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
436 * This function parses and validates the V4L2 fwnode device properties from the
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
475 * @parse_endpoint: Driver's callback function called on each V4L2 fwnode
478 * DEPRECATED! This function is deprecated. Don't use it in new drivers.
479 * Instead see an example in cio2_parse_firmware() function in
480 * drivers/media/pci/intel/ipu3/ipu3-cio2.c .
482 * Parse the fwnode endpoints of the @dev device and populate the async sub-
483 * devices list in the notifier. The @parse_endpoint callback function is
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
488 * The notifier memory shall be zeroed before this function is called on the
491 * This function may not be called on a registered notifier and may be called on
494 * The &struct v4l2_fwnode_endpoint passed to the callback function
495 * @parse_endpoint is released once the function is finished. If there is a need
498 * Any notifier populated using this function must be released with a call to
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)