Lines Matching full:pad
29 * @MEDIA_GRAPH_PAD: Identify a media pad
116 * struct media_pipeline_pad - A pad part of a media pipeline
119 * @pipe: The media_pipeline that the pad is part of
120 * @pad: The media pad
122 * This structure associate a pad with a media pipeline. Instances of
130 struct media_pad *pad; member
142 * a pad. In that case, it represents the source pad.
148 * a pad. In that case, it represents the sink pad.
151 * @reverse: Pointer to the link for the reverse direction of a pad to pad
175 * enum media_pad_signal_type - type of the signal inside a media pad
179 * uniquely identified by the pad number.
181 * The pad contains an analog signal. It can be Radio Frequency,
203 * struct media_pad - A media pad graph object.
206 * @entity: Entity this pad belongs to
207 * @index: Pad index in the entity pads array, numbered from 0 to n
208 * @sig_type: Type of the signal inside a media pad
209 * @flags: Pad flags, as defined in
212 * @pipe: Pipeline this pad belongs to. Use media_entity_pipeline() to
231 * @get_fwnode_pad: Return the pad number based on a fwnode endpoint or
233 * to map a fwnode to a media pad number. Optional.
243 * means that the other pad will become "locked" and
359 * @iter: The iterator pad
657 * function calls are used. However, if the object (entity, link, pad,
694 * Drivers must set the direction of every pad in the pads array before calling
719 * media_get_pad_index() - retrieves a pad index from an entity
722 * @is_sink: true if the pad is a sink, false if it is a source
723 * @sig_type: type of signal of the pad to be search
725 * This helper function finds the first pad index inside an entity that
730 * On success, return the pad number. If the pad was not found or the media
739 * @source: pointer to &media_entity of the source pad.
740 * @source_pad: number of the source pad in the pads array
741 * @sink: pointer to &media_entity of the sink pad.
742 * @sink_pad: number of the sink pad in the pads array.
751 * When two or more links target a sink pad, only one of them can be
774 * @source: pointer to &media_entity of the source pad. If NULL, it will use
776 * @source_pad: number of the source pad in the pads array
778 * @sink: pointer to &media_entity of the sink pad. If NULL, it will use
780 * @sink_pad: number of the sink pad in the pads array.
877 * enabled link at a sink pad prevents another link at the same pad from
884 * on media_create_pad_link(), for pad to pad links or the same as described
891 * @source: Source pad
892 * @sink: Sink pad
901 * media_pad_remote_pad_first - Find the first pad at the remote end of a link
902 * @pad: Pad at the local end of the link
904 * Search for a remote pad connected to the given pad by iterating over all
905 * links originating or terminating at that pad until an enabled link is found.
907 * Return: returns a pointer to the pad at the remote end of the first found
910 struct media_pad *media_pad_remote_pad_first(const struct media_pad *pad);
913 * media_pad_remote_pad_unique - Find a remote pad connected to a pad
914 * @pad: The pad
916 * Search for and return a remote pad connected to @pad through an enabled
920 * that support a single active source at a time on a given pad.
922 * Return: A pointer to the remote pad, or one of the following error pointers
926 * * -ENOLINK - No connected pad found
928 struct media_pad *media_pad_remote_pad_unique(const struct media_pad *pad);
931 * media_entity_remote_pad_unique - Find a remote pad connected to an entity
933 * @type: The type of pad to find (MEDIA_PAD_FL_SINK or MEDIA_PAD_FL_SOURCE)
935 * Search for and return a remote pad of @type connected to @entity through an
942 * Return: A pointer to the remote pad, or one of the following error pointers
946 * * -ENOLINK - No connected pad found
953 * media_entity_remote_source_pad_unique - Find a remote source pad connected to
957 * Search for and return a remote source pad connected to @entity through an
964 * Return: A pointer to the remote pad, or one of the following error pointers
968 * * -ENOLINK - No connected pad found
977 * media_pad_is_streaming - Test if a pad is part of a streaming pipeline
978 * @pad: The pad
980 * Return: True if the pad is part of a pipeline started with the
983 static inline bool media_pad_is_streaming(const struct media_pad *pad) in media_pad_is_streaming() argument
985 return pad->pipe; in media_pad_is_streaming()
997 struct media_pad *pad; in media_entity_is_streaming() local
999 media_entity_for_each_pad(entity, pad) { in media_entity_is_streaming()
1000 if (media_pad_is_streaming(pad)) in media_entity_is_streaming()
1018 * multiple streams (either on different pads, or on the same pad using
1028 * media_pad_pipeline - Get the media pipeline a pad is part of
1029 * @pad: The pad
1031 * This function returns the media pipeline that a pad has been associated
1035 * Return: The media_pipeline the pad is part of, or NULL if the pad is
1038 struct media_pipeline *media_pad_pipeline(struct media_pad *pad);
1041 * media_entity_get_fwnode_pad - Get pad number from fwnode
1044 * @fwnode: Pointer to the fwnode_handle which should be used to find the pad
1045 * @direction_flags: Expected direction of the pad, as defined in
1049 * This function can be used to resolve the media pad number from
1054 * then this function searches the entity for the first pad that
1057 * Return: returns the pad number on success or a negative error code.
1118 * @pad: Starting pad
1121 * Mark all pads connected to a given pad through enabled links, either
1123 * to every pad in the pipeline and stored in the media_pad pipe field.
1130 __must_check int media_pipeline_start(struct media_pad *pad,
1135 * @pad: Starting pad
1140 __must_check int __media_pipeline_start(struct media_pad *pad,
1145 * @pad: Starting pad
1155 void media_pipeline_stop(struct media_pad *pad);
1160 * @pad: Starting pad
1164 void __media_pipeline_stop(struct media_pad *pad);
1168 * @pad: Starting pad
1172 * the pad is already part of a pipeline, or allocate a new pipeline.
1177 __must_check int media_pipeline_alloc_start(struct media_pad *pad);