Lines Matching refs:pads
111 … links.pads = (struct media_pad_desc*)malloc(entity->info.pads * sizeof(struct media_pad_desc)); in __media_enum_links()
116 free(links.pads); in __media_enum_links()
121 for (i = 0; i < entity->info.pads; ++i) { in __media_enum_links()
122 entity->pads[i].entity = entity; in __media_enum_links()
123 entity->pads[i].index = links.pads[i].index; in __media_enum_links()
124 entity->pads[i].flags = links.pads[i].flags; in __media_enum_links()
145 fwdlink->source = &source->pads[link->source.index]; in __media_enum_links()
146 fwdlink->sink = &sink->pads[link->sink.index]; in __media_enum_links()
150 backlink->source = &source->pads[link->source.index]; in __media_enum_links()
151 backlink->sink = &sink->pads[link->sink.index]; in __media_enum_links()
159 free(links.pads); in __media_enum_links()
244 entity->max_links = entity->info.pads + entity->info.links; in __media_enum_entities()
246 entity->pads = (struct media_pad*)malloc(entity->info.pads * sizeof(*entity->pads)); in __media_enum_entities()
248 if (entity->pads == NULL || entity->links == NULL) { in __media_enum_entities()
351 free(entity->pads); in exynos_media_close()
648 if (pad >= entity->info.pads) in exynos_media_parse_pad()
655 return &entity->pads[pad]; in exynos_media_parse_pad()