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
162 * a pad. In that case, it represents the source pad.
168 * a pad. In that case, it represents the sink pad.
171 * @reverse: Pointer to the link for the reverse direction of a pad to pad
195 * enum media_pad_signal_type - type of the signal inside a media pad
199 * uniquely identified by the pad number.
201 * The pad contains an analog signal. It can be Radio Frequency,
223 * struct media_pad - A media pad graph object.
226 * @entity: Entity this pad belongs to
227 * @index: Pad index in the entity pads array, numbered from 0 to n
228 * @num_links: Number of links connected to this pad
229 * @sig_type: Type of the signal inside a media pad
230 * @flags: Pad flags, as defined in
233 * @pipe: Pipeline this pad belongs to. Use media_entity_pipeline() to
253 * @get_fwnode_pad: Return the pad number based on a fwnode endpoint or
255 * to map a fwnode to a media pad number. Optional.
265 * means that the other pad will become "locked" and
379 * @iter: The iterator pad
677 * function calls are used. However, if the object (entity, link, pad,
714 * Drivers must set the direction of every pad in the pads array before calling
739 * media_get_pad_index() - retrieves a pad index from an entity
742 * @pad_type: the type of the pad, one of MEDIA_PAD_FL_* pad types
743 * @sig_type: type of signal of the pad to be search
745 * This helper function finds the first pad index inside an entity that
750 * On success, return the pad number. If the pad was not found or the media
759 * @source: pointer to &media_entity of the source pad.
760 * @source_pad: number of the source pad in the pads array
761 * @sink: pointer to &media_entity of the sink pad.
762 * @sink_pad: number of the sink pad in the pads array.
771 * When two or more links target a sink pad, only one of them can be
794 * @source: pointer to &media_entity of the source pad. If NULL, it will use
796 * @source_pad: number of the source pad in the pads array
798 * @sink: pointer to &media_entity of the sink pad. If NULL, it will use
800 * @sink_pad: number of the sink pad in the pads array.
897 * enabled link at a sink pad prevents another link at the same pad from
904 * on media_create_pad_link(), for pad to pad links or the same as described
911 * @source: Source pad
912 * @sink: Sink pad
921 * media_pad_remote_pad_first - Find the first pad at the remote end of a link
922 * @pad: Pad at the local end of the link
924 * Search for a remote pad connected to the given pad by iterating over all
925 * links originating or terminating at that pad until an enabled link is found.
927 * Return: returns a pointer to the pad at the remote end of the first found
930 struct media_pad *media_pad_remote_pad_first(const struct media_pad *pad);
933 * media_pad_remote_pad_unique - Find a remote pad connected to a pad
934 * @pad: The pad
936 * Search for and return a remote pad connected to @pad through an enabled
940 * that support a single active source at a time on a given pad.
942 * Return: A pointer to the remote pad, or one of the following error pointers
946 * * -ENOLINK - No connected pad found
948 struct media_pad *media_pad_remote_pad_unique(const struct media_pad *pad);
951 * media_entity_remote_pad_unique - Find a remote pad connected to an entity
953 * @type: The type of pad to find (MEDIA_PAD_FL_SINK or MEDIA_PAD_FL_SOURCE)
955 * Search for and return a remote pad of @type connected to @entity through an
962 * Return: A pointer to the remote pad, or one of the following error pointers
966 * * -ENOLINK - No connected pad found
973 * media_entity_remote_source_pad_unique - Find a remote source pad connected to
977 * Search for and return a remote source pad connected to @entity through an
984 * Return: A pointer to the remote pad, or one of the following error pointers
988 * * -ENOLINK - No connected pad found
997 * media_pad_is_streaming - Test if a pad is part of a streaming pipeline
998 * @pad: The pad
1000 * Return: True if the pad is part of a pipeline started with the
1003 static inline bool media_pad_is_streaming(const struct media_pad *pad) in media_pad_is_streaming() argument
1005 return pad->pipe; in media_pad_is_streaming()
1017 struct media_pad *pad; in media_entity_is_streaming() local
1019 media_entity_for_each_pad(entity, pad) { in media_entity_is_streaming()
1020 if (media_pad_is_streaming(pad)) in media_entity_is_streaming()
1038 * multiple streams (either on different pads, or on the same pad using
1048 * media_pad_pipeline - Get the media pipeline a pad is part of
1049 * @pad: The pad
1051 * This function returns the media pipeline that a pad has been associated
1055 * Return: The media_pipeline the pad is part of, or NULL if the pad is
1058 struct media_pipeline *media_pad_pipeline(struct media_pad *pad);
1061 * media_entity_get_fwnode_pad - Get pad number from fwnode
1064 * @fwnode: Pointer to the fwnode_handle which should be used to find the pad
1065 * @direction_flags: Expected direction of the pad, as defined in
1069 * This function can be used to resolve the media pad number from
1074 * then this function searches the entity for the first pad that
1077 * Return: returns the pad number on success or a negative error code.
1146 * @pad: Starting pad
1149 * Mark all pads connected to a given pad through enabled links, either
1151 * to every pad in the pipeline and stored in the media_pad pipe field.
1158 __must_check int media_pipeline_start(struct media_pad *pad,
1163 * @pad: Starting pad
1168 __must_check int __media_pipeline_start(struct media_pad *pad,
1173 * @pad: Starting pad
1175 * Mark all pads connected to a given pad through enabled links, either
1183 void media_pipeline_stop(struct media_pad *pad);
1188 * @pad: Starting pad
1192 void __media_pipeline_stop(struct media_pad *pad);
1197 struct media_pad *pad);
1203 * @pad: The iterator pad
1209 #define media_pipeline_for_each_pad(pipe, iter, pad) \ argument
1210 for (pad = __media_pipeline_pad_iter_next((pipe), iter, NULL); \
1211 pad != NULL; \
1212 pad = __media_pipeline_pad_iter_next((pipe), iter, pad))
1266 * @pad: Starting pad
1270 * the pad is already part of a pipeline, or allocate a new pipeline.
1275 __must_check int media_pipeline_alloc_start(struct media_pad *pad);