Lines Matching full:sink
121 pad->flags & MEDIA_PAD_FL_SINK ? "sink " : "", in dev_dbg_obj()
246 * One of @pad0 and @pad1 must be a sink pad and the other one a source pad.
273 return link->sink->entity; in media_entity_other()
366 link->sink->entity->name, link->sink->index); in media_graph_walk_iter()
618 link->sink->entity->name, link->sink->index); in media_pipeline_explore_next_link()
623 remote = link->sink; in media_pipeline_explore_next_link()
625 local = link->sink; in media_pipeline_explore_next_link()
819 * 2. Validate all active links whose sink is the current pad. in __media_pipeline_start()
821 * the connected sink pad to avoid duplicating checks. in __media_pipeline_start()
825 if (link->sink != pad && link->source != pad) in __media_pipeline_start()
834 * current pad as its sink. in __media_pipeline_start()
839 if (link->sink != pad) in __media_pipeline_start()
851 link->sink->entity->name, in __media_pipeline_start()
852 link->sink->index, ret); in __media_pipeline_start()
860 link->sink->entity->name, in __media_pipeline_start()
861 link->sink->index); in __media_pipeline_start()
1069 link->sink->num_links--; in __media_entity_remove_link()
1072 remote = link->sink->entity; in __media_entity_remove_link()
1120 struct media_entity *sink, u16 sink_pad, u32 flags) in media_create_pad_link() argument
1130 if (WARN_ON(!source || !sink) || in media_create_pad_link()
1132 WARN_ON(sink_pad >= sink->num_pads)) in media_create_pad_link()
1136 if (WARN_ON(!(sink->pads[sink_pad].flags & MEDIA_PAD_FL_SINK))) in media_create_pad_link()
1144 link->sink = &sink->pads[sink_pad]; in media_create_pad_link()
1154 backlink = media_add_link(&sink->links); in media_create_pad_link()
1161 backlink->sink = &sink->pads[sink_pad]; in media_create_pad_link()
1166 media_gobj_create(sink->graph_obj.mdev, MEDIA_GRAPH_LINK, in media_create_pad_link()
1172 sink->num_backlinks++; in media_create_pad_link()
1173 sink->num_links++; in media_create_pad_link()
1177 link->sink->num_links++; in media_create_pad_link()
1188 struct media_entity *sink, in media_create_pad_links() argument
1198 if (source && sink) in media_create_pad_links()
1200 sink, sink_pad, flags); in media_create_pad_links()
1203 if (!source && !sink) { in media_create_pad_links()
1209 media_device_for_each_entity(sink, mdev) { in media_create_pad_links()
1210 if (sink->function != sink_function) in media_create_pad_links()
1213 sink, sink_pad, in media_create_pad_links()
1239 sink, sink_pad, flags); in media_create_pad_links()
1280 link->source, link->sink, flags); in __media_entity_setup_link_notify()
1284 ret = media_entity_call(link->sink->entity, link_setup, in __media_entity_setup_link_notify()
1285 link->sink, link->source, flags); in __media_entity_setup_link_notify()
1288 link->source, link->sink, link->flags); in __media_entity_setup_link_notify()
1302 struct media_pad *source, *sink; in __media_entity_setup_link() local
1319 sink = link->sink; in __media_entity_setup_link()
1322 (media_pad_is_streaming(source) || media_pad_is_streaming(sink))) in __media_entity_setup_link()
1357 media_entity_find_link(struct media_pad *source, struct media_pad *sink) in media_entity_find_link() argument
1364 link->sink->entity == sink->entity && in media_entity_find_link()
1365 link->sink->index == sink->index) in media_entity_find_link()
1382 return link->sink; in media_pad_remote_pad_first()
1384 if (link->sink == pad) in media_pad_remote_pad_first()
1410 local_pad = link->sink; in media_entity_remote_pad_unique()
1414 remote_pad = link->sink; in media_entity_remote_pad_unique()
1443 if (link->sink == pad) in media_pad_remote_pad_unique()
1446 remote_pad = link->sink; in media_pad_remote_pad_unique()