Lines Matching defs:entity
18 #include <media/media-entity.h>
39 void (*notify)(struct media_entity *entity, void *notify_data);
89 * @entity_internal_idx: Unique internal entity ID used by the graph traversal
91 * @entity_internal_idx_max: Allocated internal entity indices
120 * @enable_source is a handler to find source entity for the
121 * sink entity and activate the link between them if source
122 * entity is free. Drivers should call this handler before
125 * @disable_source is a handler to find source entity for the
126 * sink entity and deactivate the link between them. Drivers
129 * Use-case: find tuner entity connected to the decoder
130 * entity and check if it is available, and activate the
166 /* notify callback list invoked when a new entity is registered */
174 int (*enable_source)(struct media_entity *entity,
176 void (*disable_source)(struct media_entity *entity);
195 * media_entity_enum_init - Initialise an entity enumeration
219 * So drivers need to first initialize the media device, register any entity
304 * media_device_register_entity() - registers a media entity inside a
308 * @entity: pointer to struct &media_entity to be registered
326 * Entities have flags that describe the entity capabilities and state:
329 * indicates the default entity for a given type.
335 * Drivers should set the entity function before calling this function.
340 struct media_entity *entity);
343 * media_device_unregister_entity() - unregisters a media entity.
345 * @entity: pointer to struct &media_entity to be unregistered
347 * All links associated with the entity and all PADs are automatically
350 * Unregistering an entity will not change the IDs of the other entities and
361 void media_device_unregister_entity(struct media_entity *entity);
372 * When a new entity is registered, all the registered
380 * media_device_unregister_entity_notify() - Unregister a media entity notify
391 #define media_device_for_each_entity(entity, mdev) \
392 list_for_each_entry(entity, &(mdev)->entities, graph_obj.list)
449 struct media_entity *entity)
453 static inline void media_device_unregister_entity(struct media_entity *entity)