Lines Matching refs:source
131 struct media_entity *source; in __media_enum_links() local
134 source = exynos_media_get_entity_by_id(media, link->source.entity); in __media_enum_links()
136 if (source == NULL || sink == NULL) { in __media_enum_links()
138 id, i, link->source.entity, in __media_enum_links()
139 link->source.index, in __media_enum_links()
144 fwdlink = __media_entity_add_link(source); in __media_enum_links()
145 fwdlink->source = &source->pads[link->source.index]; in __media_enum_links()
150 backlink->source = &source->pads[link->source.index]; in __media_enum_links()
386 return link->source; in exynos_media_entity_remote_source()
459 struct media_pad *source, in exynos_media_setup_link() argument
468 for (i = 0; i < source->entity->num_links; i++) { in exynos_media_setup_link()
469 link = &source->entity->links[i]; in exynos_media_setup_link()
471 if (link->source->entity == source->entity && in exynos_media_setup_link()
472 link->source->index == source->index && in exynos_media_setup_link()
478 if (i == source->entity->num_links) { in exynos_media_setup_link()
484 ulink.source.entity = source->entity->info.id; in exynos_media_setup_link()
485 ulink.source.index = source->index; in exynos_media_setup_link()
486 ulink.source.flags = MEDIA_PAD_FL_SOURCE; in exynos_media_setup_link()
527 link->source->entity != entity) in exynos_media_reset_links()
530 ret = exynos_media_setup_link(media, link->source, link->sink, in exynos_media_reset_links()
675 struct media_pad *source; in exynos_media_parse_link() local
680 source = exynos_media_parse_pad(media, p, &end); in exynos_media_parse_link()
681 if (source == NULL) in exynos_media_parse_link()
694 for (i = 0; i < source->entity->num_links; i++) { in exynos_media_parse_link()
695 link = &source->entity->links[i]; in exynos_media_parse_link()
697 if (link->source == source && link->sink == sink) in exynos_media_parse_link()
746 link->source->entity->info.id, link->source->index, in exynos_media_parse_setup_link()
750 return exynos_media_setup_link(media, link->source, link->sink, flags); in exynos_media_parse_setup_link()