Lines Matching full:binding

618 static int avs_path_binding_arm(struct avs_dev *adev, struct avs_path_binding *binding)  in avs_path_binding_arm()  argument
625 t = binding->template; in avs_path_binding_arm()
626 this_mod = avs_path_find_module(binding->owner, in avs_path_binding_arm()
656 binding->sink = this_mod; in avs_path_binding_arm()
657 binding->sink_pin = t->mod_pin; in avs_path_binding_arm()
658 binding->source = target_mod; in avs_path_binding_arm()
659 binding->source_pin = t->target_mod_pin; in avs_path_binding_arm()
661 binding->sink = target_mod; in avs_path_binding_arm()
662 binding->sink_pin = t->target_mod_pin; in avs_path_binding_arm()
663 binding->source = this_mod; in avs_path_binding_arm()
664 binding->source_pin = t->mod_pin; in avs_path_binding_arm()
670 static void avs_path_binding_free(struct avs_dev *adev, struct avs_path_binding *binding) in avs_path_binding_free() argument
672 kfree(binding); in avs_path_binding_free()
679 struct avs_path_binding *binding; in avs_path_binding_create() local
681 binding = kzalloc(sizeof(*binding), GFP_KERNEL); in avs_path_binding_create()
682 if (!binding) in avs_path_binding_create()
685 binding->template = t; in avs_path_binding_create()
686 binding->owner = owner; in avs_path_binding_create()
687 INIT_LIST_HEAD(&binding->node); in avs_path_binding_create()
689 return binding; in avs_path_binding_create()
725 struct avs_path_binding *binding, *bsave; in avs_path_pipeline_free() local
728 list_for_each_entry_safe(binding, bsave, &ppl->binding_list, node) { in avs_path_pipeline_free()
729 list_del(&binding->node); in avs_path_pipeline_free()
730 avs_path_binding_free(adev, binding); in avs_path_pipeline_free()
789 struct avs_path_binding *binding; in avs_path_pipeline_create() local
791 binding = avs_path_binding_create(adev, ppl, template->bindings[i]); in avs_path_pipeline_create()
792 if (IS_ERR(binding)) { in avs_path_pipeline_create()
793 ret = PTR_ERR(binding); in avs_path_pipeline_create()
794 dev_err(adev->dev, "error creating binding %d\n", ret); in avs_path_pipeline_create()
798 list_add_tail(&binding->node, &ppl->binding_list); in avs_path_pipeline_create()
840 struct avs_path_binding *binding; in avs_path_arm() local
845 * Arm all ppl bindings before binding internal modules in avs_path_arm()
848 list_for_each_entry(binding, &ppl->binding_list, node) { in avs_path_arm()
849 ret = avs_path_binding_arm(adev, binding); in avs_path_arm()
938 struct avs_path_binding *binding) in avs_path_bind_prepare() argument
941 struct avs_tplg_module *tsource = binding->source->template; in avs_path_bind_prepare()
942 struct avs_path_module *source = binding->source; in avs_path_bind_prepare()
949 if (!binding->source_pin) in avs_path_bind_prepare()
955 sink_fmt = binding->sink->template->in_fmt; in avs_path_bind_prepare()
958 source->instance_id, binding->source_pin, in avs_path_bind_prepare()
975 struct avs_path_binding *binding; in avs_path_bind() local
977 list_for_each_entry(binding, &ppl->binding_list, node) { in avs_path_bind()
980 source = binding->source; in avs_path_bind()
981 sink = binding->sink; in avs_path_bind()
983 ret = avs_path_bind_prepare(adev, binding); in avs_path_bind()
989 sink->instance_id, binding->sink_pin, in avs_path_bind()
990 binding->source_pin); in avs_path_bind()
1008 struct avs_path_binding *binding; in avs_path_unbind() local
1010 list_for_each_entry(binding, &ppl->binding_list, node) { in avs_path_unbind()
1013 source = binding->source; in avs_path_unbind()
1014 sink = binding->sink; in avs_path_unbind()
1018 sink->instance_id, binding->sink_pin, in avs_path_unbind()
1019 binding->source_pin); in avs_path_unbind()