Lines Matching +full:sub +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>
31 * struct v4l2_fwnode_bus_mipi_csi2 - MIPI CSI-2 bus data structure
32 * @flags: media bus (V4L2_MBUS_*) flags
48 * struct v4l2_fwnode_bus_parallel - parallel data bus data structure
49 * @flags: media bus (V4L2_MBUS_*) flags
50 * @bus_width: bus width in bits
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
80 * @bus_type: bus type
81 * @bus: bus configuration data structure
82 * @bus.parallel: embedded &struct v4l2_fwnode_bus_parallel.
83 * Used if the bus is parallel.
84 * @bus.mipi_csi1: embedded &struct v4l2_fwnode_bus_mipi_csi1.
85 * Used if the bus is MIPI Alliance's Camera Serial
89 * @bus.mipi_csi2: embedded &struct v4l2_fwnode_bus_mipi_csi2.
90 * Used if the bus is MIPI Alliance's Camera Serial
106 } bus; member
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
221 * @V4L2_FWNODE_BUS_TYPE_CCP2: SMIA Compact Camera Port 2 bus
222 * @V4L2_FWNODE_BUS_TYPE_CSI2_DPHY: MIPI CSI-2 bus, D-PHY physical layer
223 * @V4L2_FWNODE_BUS_TYPE_PARALLEL: Camera Parallel Interface bus
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
245 * obtain the type of the bus (by setting the @vep.bus_type field to
246 * V4L2_MBUS_UNKNOWN) or specifying the bus type explicitly to one of the &enum
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
257 * endpoint properties available. NEVER RELY ON GUESSING THE BUS TYPE IN NEW
260 * It is also possible to set @vep.bus_type corresponding to an actual bus. In
262 * bus, and it will return an error if the value of the "bus-type" property
263 * corresponds to a different bus.
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
299 * obtain the type of the bus (by setting the @vep.bus_type field to
300 * V4L2_MBUS_UNKNOWN) or specifying the bus type explicitly to one of the &enum
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
311 * endpoint properties available. NEVER RELY ON GUESSING THE BUS TYPE IN NEW
314 * It is also possible to set @vep.bus_type corresponding to an actual bus. In
316 * bus, and it will return an error if the value of the "bus-type" property
317 * corresponds to a different bus.
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.
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
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)