Lines Matching +full:zero +full:- +full:initialised
1 /* SPDX-License-Identifier: GPL-2.0-only */
17 #include <media/media-devnode.h>
18 #include <media/media-entity.h>
25 * struct media_entity_notify - Media Entity Notify
43 * struct media_device_ops - Media device operations
75 * struct media_device - Media device
79 * %MEDIA_IOC_DEVICE_INFO will return ``dev->driver->name``.
110 * This structure represents an abstract high-level media device. It allows easy
111 * access to entities and provides basic media device-level support. The
129 * Use-case: find tuner entity connected to the decoder
145 /* dev->driver_data points to this struct. */
195 * media_entity_enum_init - Initialise an entity enumeration
197 * @ent_enum: Entity enumeration to be initialised
200 * Return: zero on success or a negative error code.
206 mdev->entity_internal_idx_max + 1); in media_entity_enum_init()
210 * media_device_init() - Initializes a media device element
216 * to avoid race conditions and make the media device available to user-space
226 * media_device_cleanup() - Cleanups a media device element
236 * __media_device_register() - Registers a media device element
246 * - &media_entity.dev must point to the parent device (usually a &pci_dev,
249 * - &media_entity.model must be filled with the device model name as a
250 * NUL-terminated UTF-8 string. The device/model revision must not be
255 * - &media_entity.serial is a unique serial number stored as a
256 * NUL-terminated ASCII string. The field is big enough to store a GUID
260 * - &media_entity.bus_info represents the location of the device in the
261 * system as a NUL-terminated ASCII string. For PCI/PCIe devices
267 * - &media_entity.hw_revision is the hardware device revision in a
268 * driver-specific format. When possible the revision should be formatted
273 …* #) Upon successful registration a character device named media[0-9]+ is created. The device m…
277 * Return: returns zero on success or a negative error code.
284 * media_device_register() - Registers a media device element
294 * media_device_unregister() - Unregisters a media device element
298 * It is safe to call this function on an unregistered (but initialised)
304 * media_device_register_entity() - registers a media entity inside a
318 * calling media_device_register_entity(). Entities embedded in higher-level
319 * standard structures can have some of those fields set by the higher-level
343 * media_device_unregister_entity() - unregisters a media entity.
364 * media_device_register_entity_notify() - Registers a media entity_notify
380 * media_device_unregister_entity_notify() - Unregister a media entity notify
392 list_for_each_entry(entity, &(mdev)->entities, graph_obj.list)
396 list_for_each_entry(intf, &(mdev)->interfaces, graph_obj.list)
400 list_for_each_entry(pad, &(mdev)->pads, graph_obj.list)
404 list_for_each_entry(link, &(mdev)->links, graph_obj.list)
407 * media_device_pci_init() - create and initialize a
419 * __media_device_usb_init() - create and initialize a
427 * given by ``udev->dev->driver->name``, with is usually the wrong
484 * media_device_usb_init() - create and initialize a