Lines Matching refs:pipeline
159 int dsp_pipeline_init(struct dsp_pipeline *pipeline) in dsp_pipeline_init() argument
161 if (!pipeline) in dsp_pipeline_init()
164 INIT_LIST_HEAD(&pipeline->list); in dsp_pipeline_init()
169 static inline void _dsp_pipeline_destroy(struct dsp_pipeline *pipeline) in _dsp_pipeline_destroy() argument
173 list_for_each_entry_safe(entry, n, &pipeline->list, list) { in _dsp_pipeline_destroy()
176 dsp_hwec_disable(container_of(pipeline, struct dsp, in _dsp_pipeline_destroy()
177 pipeline)); in _dsp_pipeline_destroy()
184 void dsp_pipeline_destroy(struct dsp_pipeline *pipeline) in dsp_pipeline_destroy() argument
187 if (!pipeline) in dsp_pipeline_destroy()
190 _dsp_pipeline_destroy(pipeline); in dsp_pipeline_destroy()
193 int dsp_pipeline_build(struct dsp_pipeline *pipeline, const char *cfg) in dsp_pipeline_build() argument
201 if (!pipeline) in dsp_pipeline_build()
204 if (!list_empty(&pipeline->list)) in dsp_pipeline_build()
205 _dsp_pipeline_destroy(pipeline); in dsp_pipeline_build()
235 dsp_hwec_enable(container_of(pipeline, in dsp_pipeline_build()
236 struct dsp, pipeline), args); in dsp_pipeline_build()
238 &pipeline->list); in dsp_pipeline_build()
243 list, &pipeline->list); in dsp_pipeline_build()
264 if (!list_empty(&pipeline->list)) in dsp_pipeline_build()
265 pipeline->inuse = 1; in dsp_pipeline_build()
267 pipeline->inuse = 0; in dsp_pipeline_build()
273 void dsp_pipeline_process_tx(struct dsp_pipeline *pipeline, u8 *data, int len) in dsp_pipeline_process_tx() argument
277 if (!pipeline) in dsp_pipeline_process_tx()
280 list_for_each_entry(entry, &pipeline->list, list) in dsp_pipeline_process_tx()
285 void dsp_pipeline_process_rx(struct dsp_pipeline *pipeline, u8 *data, int len, in dsp_pipeline_process_rx() argument
290 if (!pipeline) in dsp_pipeline_process_rx()
293 list_for_each_entry_reverse(entry, &pipeline->list, list) in dsp_pipeline_process_rx()