Lines Matching defs:source
2 * Copyright (C) 2011 The Android Open Source Project
19 * \brief source file for libexynosv4l2
131 struct media_entity *source;
134 source = exynos_media_get_entity_by_id(media, link->source.entity);
136 if (source == NULL || sink == NULL) {
138 id, i, link->source.entity,
139 link->source.index,
144 fwdlink = __media_entity_add_link(source);
145 fwdlink->source = &source->pads[link->source.index];
150 backlink->source = &source->pads[link->source.index];
365 * Locate the source pad connected to @a pad through an enabled link. As only one
366 * link connected to a sink pad can be enabled at a time, the connected source
369 * @return A pointer to the connected source pad, or NULL if all links connected
386 return link->source;
445 * @param source - source pad at the link origin.
449 * Locate the link between @a source and @a sink, and configure it by applying
459 struct media_pad *source,
468 for (i = 0; i < source->entity->num_links; i++) {
469 link = &source->entity->links[i];
471 if (link->source->entity == source->entity &&
472 link->source->index == source->index &&
478 if (i == source->entity->num_links) {
483 /* source pad */
484 ulink.source.entity = source->entity->info.id;
485 ulink.source.index = source->index;
486 ulink.source.flags = MEDIA_PAD_FL_SOURCE;
527 link->source->entity != entity)
530 ret = exynos_media_setup_link(media, link->source, link->sink,
675 struct media_pad *source;
680 source = exynos_media_parse_pad(media, p, &end);
681 if (source == NULL)
694 for (i = 0; i < source->entity->num_links; i++) {
695 link = &source->entity->links[i];
697 if (link->source == source && link->sink == sink)
746 link->source->entity->info.id, link->source->index,
750 return exynos_media_setup_link(media, link->source, link->sink, flags);