Lines Matching +full:ref +full:- +full:pad

1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 MEDIA_IOC_G_TOPOLOGY - Enumerate the graph topology and graph element properties
53 .. flat-table:: struct media_v2_topology
54 :header-rows: 0
55 :stub-columns: 0
58 * - __u64
59 - ``topology_version``
60 - Version of the media graph topology. When the graph is created,
64 * - __u32
65 - ``num_entities``
66 - Number of entities in the graph
68 * - __u32
69 - ``reserved1``
70 - Applications and drivers shall set this to 0.
72 * - __u64
73 - ``ptr_entities``
74 - A pointer to a memory area where the entities array will be
75 stored, converted to a 64-bits integer. It can be zero. if zero,
79 * - __u32
80 - ``num_interfaces``
81 - Number of interfaces in the graph
83 * - __u32
84 - ``reserved2``
85 - Applications and drivers shall set this to 0.
87 * - __u64
88 - ``ptr_interfaces``
89 - A pointer to a memory area where the interfaces array will be
90 stored, converted to a 64-bits integer. It can be zero. if zero,
94 * - __u32
95 - ``num_pads``
96 - Total number of pads in the graph
98 * - __u32
99 - ``reserved3``
100 - Applications and drivers shall set this to 0.
102 * - __u64
103 - ``ptr_pads``
104 - A pointer to a memory area where the pads array will be stored,
105 converted to a 64-bits integer. It can be zero. if zero, the ioctl
108 * - __u32
109 - ``num_links``
110 - Total number of data and interface links in the graph
112 * - __u32
113 - ``reserved4``
114 - Applications and drivers shall set this to 0.
116 * - __u64
117 - ``ptr_links``
118 - A pointer to a memory area where the links array will be stored,
119 converted to a 64-bits integer. It can be zero. if zero, the ioctl
126 .. flat-table:: struct media_v2_entity
127 :header-rows: 0
128 :stub-columns: 0
131 * - __u32
132 - ``id``
133 - Unique ID for the entity. Do not expect that the ID will
137 * - char
138 - ``name``\ [64]
139 - Entity name as an UTF-8 NULL-terminated string. This name must be unique
142 * - __u32
143 - ``function``
144 - Entity main function, see :ref:`media-entity-functions` for details.
146 * - __u32
147 - ``flags``
148 - Entity flags, see :ref:`media-entity-flag` for details.
152 :ref:`MEDIA_IOC_DEVICE_INFO`.
154 * - __u32
155 - ``reserved``\ [5]
156 - Reserved for future extensions. Drivers and applications must set
163 .. flat-table:: struct media_v2_interface
164 :header-rows: 0
165 :stub-columns: 0
168 * - __u32
169 - ``id``
170 - Unique ID for the interface. Do not expect that the ID will
174 * - __u32
175 - ``intf_type``
176 - Interface type, see :ref:`media-intf-type` for details.
178 * - __u32
179 - ``flags``
180 - Interface flags. Currently unused.
182 * - __u32
183 - ``reserved``\ [9]
184 - Reserved for future extensions. Drivers and applications must set
187 * - struct media_v2_intf_devnode
188 - ``devnode``
189 - Used only for device node interfaces. See
196 .. flat-table:: struct media_v2_intf_devnode
197 :header-rows: 0
198 :stub-columns: 0
201 * - __u32
202 - ``major``
203 - Device node major number.
205 * - __u32
206 - ``minor``
207 - Device node minor number.
213 .. flat-table:: struct media_v2_pad
214 :header-rows: 0
215 :stub-columns: 0
218 * - __u32
219 - ``id``
220 - Unique ID for the pad. Do not expect that the ID will
222 do not hardcode pad IDs in an application.
224 * - __u32
225 - ``entity_id``
226 - Unique ID for the entity where this pad belongs.
228 * - __u32
229 - ``flags``
230 - Pad flags, see :ref:`media-pad-flag` for more details.
232 * - __u32
233 - ``index``
234 - Pad index, starts at 0. Only valid if ``MEDIA_V2_PAD_HAS_INDEX(media_version)``
237 :ref:`MEDIA_IOC_DEVICE_INFO`.
239 * - __u32
240 - ``reserved``\ [4]
241 - Reserved for future extensions. Drivers and applications must set
248 .. flat-table:: struct media_v2_link
249 :header-rows: 0
250 :stub-columns: 0
253 * - __u32
254 - ``id``
255 - Unique ID for the link. Do not expect that the ID will
259 * - __u32
260 - ``source_id``
261 - On pad to pad links: unique ID for the source pad.
265 * - __u32
266 - ``sink_id``
267 - On pad to pad links: unique ID for the sink pad.
271 * - __u32
272 - ``flags``
273 - Link flags, see :ref:`media-link-flag` for more details.
275 * - __u32
276 - ``reserved``\ [6]
277 - Reserved for future extensions. Drivers and applications must set
283 On success 0 is returned, on error -1 and the ``errno`` variable is set
285 :ref:`Generic Error Codes <gen-errors>` chapter.
289 num_interfaces, num_links or num_pads are non-zero and are