Lines Matching defs:pads
158 list_add_tail(&gobj->list, &mdev->pads);
195 struct media_pad *pads)
205 entity->pads = pads;
230 * media_entity_has_pad_interdep - Check interdependency between two pads
237 * and @pad1. If two pads are interdependent they are part of the same pipeline
238 * and enabling one of the pads means that the other pad will become "locked"
243 * has_pad_interdep operation is not implemented, all pads of the entity are
247 * The function returns false if both pads are sinks or sources.
251 * Return: true if the pads are connected internally and false otherwise.
259 if (entity->pads[pad0].flags & entity->pads[pad1].flags &
418 * The pipeline traversal stack stores pads that are reached during graph
423 * To find further pads in the pipeline, the traversal algorithm follows
568 list_for_each_entry(ppad, &pipe->pads, list) {
584 list_add_tail(&ppad->list, &pipe->pads);
656 * If we're done iterating over links, iterate over pads of the entity.
657 * This is necessary to discover pads that are not connected with any
666 "media pipeline: adding unconnected pads of '%s'\n",
672 * (already discovered through iterating over links) and pads
690 while (!list_empty(&pipe->pads)) {
693 ppad = list_first_entry(&pipe->pads, typeof(*ppad), list);
710 INIT_LIST_HEAD(&pipe->pads);
733 "media pipeline populated, found pads:\n");
735 list_for_each_entry(ppad, &pipe->pads, list)
779 * Populate the pipeline. This populates the media_pipeline pads list
788 * Now that all the pads in the pipeline have been gathered, perform
792 list_for_each_entry(ppad, &pipe->pads, list) {
814 * Validation of the source pads is performed in the context of
885 list_for_each_entry(err_ppad, &pipe->pads, list) {
926 list_for_each_entry(ppad, &pipe->pads, list)
988 iter->cursor = pipe->pads.next;
990 if (iter->cursor == &pipe->pads)
1019 iter->cursor = pipe->pads.next;
1021 while (iter->cursor != &pipe->pads) {
1101 if ((entity->pads[i].flags &
1105 if (entity->pads[i].sig_type == sig_type)
1128 if (WARN_ON(!(source->pads[source_pad].flags & MEDIA_PAD_FL_SOURCE)))
1130 if (WARN_ON(!(sink->pads[sink_pad].flags & MEDIA_PAD_FL_SINK)))
1137 link->source = &source->pads[source_pad];
1138 link->sink = &sink->pads[sink_pad];
1154 backlink->source = &source->pads[source_pad];
1155 backlink->sink = &sink->pads[sink_pad];
1467 if (entity->pads[i].flags & direction_flags)
1485 if (!(entity->pads[ret].flags & direction_flags))