• Home
  • Raw
  • Download

Lines Matching full:entity

2  * Media entity
34 * @MEDIA_GRAPH_ENTITY: Identify a media entity
76 * @bmap: Bit map in which each bit represents one entity at struct
91 * @stack.entity: pointer to &struct media_entity at the graph.
98 struct media_entity *entity; member
121 * @list: Linked list associated with an entity or an interface that
133 * @entity: Part of a union. Used only if the second object (gobj1) is
134 * an entity.
151 struct media_entity *entity; member
162 * @entity: Entity this pad belongs to
163 * @index: Pad index in the entity pads array, numbered from 0 to n
170 struct media_entity *entity; member
176 * struct media_entity_operations - Media entity operations
180 * @link_setup: Notify the entity of link changes. The operation can
183 * @link_validate: Return whether a link is valid from the entity point of
194 int (*link_setup)(struct media_entity *entity,
201 * enum media_entity_type - Media entity type
204 * The entity isn't embedded in another subsystem structure.
206 * The entity is embedded in a struct video_device instance.
208 * The entity is embedded in a struct v4l2_subdev instance.
210 * Media entity objects are often not instantiated directly, but the media
211 * entity structure is inherited by (through embedding) other subsystem-specific
212 * structures. The media entity type identifies the type of the subclass
213 * structure that implements a media entity instance.
216 * the correct object type. For instance, a media entity structure instance
228 * struct media_entity - A media entity graph object.
231 * @name: Entity name.
233 * @function: Entity main function, as defined in
236 * @flags: Entity flags, as defined in
242 * @internal_idx: An unique internal entity specific number. The numbers are
246 * @ops: Entity operations.
247 * @stream_count: Stream count for the entity.
248 * @use_count: Use count for the entity.
249 * @pipe: Pipeline this entity belongs to.
336 * media_entity_id() - return the media entity graph object id
338 * @entity: pointer to &media_entity
340 static inline u32 media_entity_id(struct media_entity *entity) in media_entity_id() argument
342 return entity->graph_obj.id; in media_entity_id()
382 * is_media_entity_v4l2_video_device() - Check if the entity is a video_device
383 * @entity: pointer to entity
385 * Return: %true if the entity is an instance of a video_device object and can
389 static inline bool is_media_entity_v4l2_video_device(struct media_entity *entity) in is_media_entity_v4l2_video_device() argument
391 return entity && entity->obj_type == MEDIA_ENTITY_TYPE_VIDEO_DEVICE; in is_media_entity_v4l2_video_device()
395 * is_media_entity_v4l2_subdev() - Check if the entity is a v4l2_subdev
396 * @entity: pointer to entity
398 * Return: %true if the entity is an instance of a &v4l2_subdev object and can
402 static inline bool is_media_entity_v4l2_subdev(struct media_entity *entity) in is_media_entity_v4l2_subdev() argument
404 return entity && entity->obj_type == MEDIA_ENTITY_TYPE_V4L2_SUBDEV; in is_media_entity_v4l2_subdev()
408 * __media_entity_enum_init - Initialise an entity enumeration
410 * @ent_enum: Entity enumeration to be initialised
419 * media_entity_enum_cleanup - Release resources of an entity enumeration
421 * @ent_enum: Entity enumeration to be released
428 * @ent_enum: Entity enumeration to be cleared
436 * media_entity_enum_set - Mark a single entity in the enum
438 * @ent_enum: Entity enumeration
439 * @entity: Entity to be marked
442 struct media_entity *entity) in media_entity_enum_set() argument
444 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_set()
447 __set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_set()
451 * media_entity_enum_clear - Unmark a single entity in the enum
453 * @ent_enum: Entity enumeration
454 * @entity: Entity to be unmarked
457 struct media_entity *entity) in media_entity_enum_clear() argument
459 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_clear()
462 __clear_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_clear()
466 * media_entity_enum_test - Test whether the entity is marked
468 * @ent_enum: Entity enumeration
469 * @entity: Entity to be tested
471 * Returns %true if the entity was marked.
474 struct media_entity *entity) in media_entity_enum_test() argument
476 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_test()
479 return test_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test()
483 * media_entity_enum_test_and_set - Test whether the entity is marked,
486 * @ent_enum: Entity enumeration
487 * @entity: Entity to be tested
489 * Returns %true if the entity was marked, and mark it before doing so.
493 struct media_entity *entity) in media_entity_enum_test_and_set() argument
495 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_test_and_set()
498 return __test_and_set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test_and_set()
504 * @ent_enum: Entity enumeration
506 * Return: %true if the entity was empty.
516 * @ent_enum1: First entity enumeration
517 * @ent_enum2: Second entity enumeration
519 * Return: %true if entity enumerations @ent_enum1 and @ent_enum2 intersect,
586 * function calls are used. However, if the object (entity, link, pad,
605 * media_entity_pads_init() - Initialize the entity pads
607 * @entity: entity where the pads belong
611 * The pads array is managed by the entity driver and passed to
620 * dynamically but is managed by the entity driver. Most drivers will embed the
626 int media_entity_pads_init(struct media_entity *entity, u16 num_pads,
630 * media_entity_cleanup() - free resources associated with an entity
632 * @entity: entity where the pads belong
635 * the entity (currently, it does nothing).
638 static inline void media_entity_cleanup(struct media_entity *entity) {} in media_entity_cleanup() argument
640 #define media_entity_cleanup(entity) do { } while (false) argument
728 void __media_entity_remove_links(struct media_entity *entity);
731 * media_entity_remove_links() - remove all links associated with an entity
733 * @entity: pointer to &media_entity
737 * This is called automatically when an entity is unregistered via
740 void media_entity_remove_links(struct media_entity *entity);
771 * link_setup call is made on the first entity to restore the original link
779 * Entity drivers must implement the link_setup operation if any of their links
792 * on media_create_intf_link(), for interface to entity links.
822 * @entity: The entity
826 * The function will return immediately if @entity is %NULL.
828 * Return: returns a pointer to the entity on success or %NULL on failure.
830 struct media_entity *media_entity_get(struct media_entity *entity);
835 * @entity: The entity
845 * If the entity does not implement the get_fwnode_pad() operation
846 * then this function searches the entity for the first pad that
851 int media_entity_get_fwnode_pad(struct media_entity *entity,
874 * @entity: The entity
878 * The function will return immediately if @entity is %NULL.
880 void media_entity_put(struct media_entity *entity);
884 * given entity
887 * @entity: Starting entity
892 * entities graph starting at the given entity. The traversal
898 struct media_entity *entity);
901 * media_graph_walk_next - Get the next entity in the graph
909 * Return: returns the next entity in the graph or %NULL if the whole graph
916 * @entity: Starting entity
919 * Mark all entities connected to a given entity through enabled links, either
921 * to every entity in the pipeline and stored in the media_entity pipe field.
928 __must_check int media_pipeline_start(struct media_entity *entity,
933 * @entity: Starting entity
938 __must_check int __media_pipeline_start(struct media_entity *entity,
943 * @entity: Starting entity
945 * Mark all entities connected to a given entity through enabled links, either
953 void media_pipeline_stop(struct media_entity *entity);
958 * @entity: Starting entity
962 void __media_pipeline_stop(struct media_entity *entity);
1000 * media_create_intf_link() - creates a link between an entity and an interface
1002 * @entity: pointer to %media_entity
1012 * Indicates that the interface is connected to the entity hardware.
1028 __must_check media_create_intf_link(struct media_entity *entity,
1065 * #) This is called automatically when an entity is unregistered via
1074 * an entity
1076 * @entity: entity where the @operation will be called
1081 * it will issue a call to @operation\(@entity, @args\).
1084 #define media_entity_call(entity, operation, args...) \ argument
1085 (((entity)->ops && (entity)->ops->operation) ? \
1086 (entity)->ops->operation((entity) , ##args) : -ENOIOCTLCMD)