Lines Matching refs:elem
21 struct mISDN_dsp_element *elem; member
26 struct mISDN_dsp_element *elem; member
39 struct mISDN_dsp_element *elem = dev_get_drvdata(dev); in attr_show_args() local
44 for (i = 0; i < elem->num_args; i++) in attr_show_args()
46 elem->args[i].name, in attr_show_args()
47 elem->args[i].def ? "Default: " : "", in attr_show_args()
48 elem->args[i].def ? elem->args[i].def : "", in attr_show_args()
49 elem->args[i].def ? "\n" : "", in attr_show_args()
50 elem->args[i].desc); in attr_show_args()
68 int mISDN_dsp_element_register(struct mISDN_dsp_element *elem) in mISDN_dsp_element_register() argument
73 if (!elem) in mISDN_dsp_element_register()
81 entry->elem = elem; in mISDN_dsp_element_register()
85 dev_set_drvdata(&entry->dev, elem); in mISDN_dsp_element_register()
86 dev_set_name(&entry->dev, "%s", elem->name); in mISDN_dsp_element_register()
90 __func__, elem->name); in mISDN_dsp_element_register()
116 void mISDN_dsp_element_unregister(struct mISDN_dsp_element *elem) in mISDN_dsp_element_unregister() argument
120 if (!elem) in mISDN_dsp_element_unregister()
124 if (entry->elem == elem) { in mISDN_dsp_element_unregister()
128 printk(KERN_ERR "%s: element %s not in list.\n", __func__, elem->name); in mISDN_dsp_element_unregister()
154 __func__, entry->elem->name); in dsp_pipeline_module_exit()
175 if (entry->elem == dsp_hwec) in _dsp_pipeline_destroy()
179 entry->elem->free(entry->p); in _dsp_pipeline_destroy()
199 struct mISDN_dsp_element *elem; in dsp_pipeline_build() local
219 if (!strcmp(entry->elem->name, name)) { in dsp_pipeline_build()
220 elem = entry->elem; in dsp_pipeline_build()
227 "memory)\n", __func__, elem->name); in dsp_pipeline_build()
230 pipeline_entry->elem = elem; in dsp_pipeline_build()
232 if (elem == dsp_hwec) { in dsp_pipeline_build()
240 pipeline_entry->p = elem->new(args); in dsp_pipeline_build()
248 __func__, elem->name); in dsp_pipeline_build()
281 if (entry->elem->process_tx) in dsp_pipeline_process_tx()
282 entry->elem->process_tx(entry->p, data, len); in dsp_pipeline_process_tx()
294 if (entry->elem->process_rx) in dsp_pipeline_process_rx()
295 entry->elem->process_rx(entry->p, data, len, txlen); in dsp_pipeline_process_rx()