Lines Matching refs:pipeline

194 int dsp_pipeline_init(struct dsp_pipeline *pipeline)  in dsp_pipeline_init()  argument
196 if (!pipeline) in dsp_pipeline_init()
199 INIT_LIST_HEAD(&pipeline->list); in dsp_pipeline_init()
208 static inline void _dsp_pipeline_destroy(struct dsp_pipeline *pipeline) in _dsp_pipeline_destroy() argument
212 list_for_each_entry_safe(entry, n, &pipeline->list, list) { in _dsp_pipeline_destroy()
215 dsp_hwec_disable(container_of(pipeline, struct dsp, in _dsp_pipeline_destroy()
216 pipeline)); in _dsp_pipeline_destroy()
223 void dsp_pipeline_destroy(struct dsp_pipeline *pipeline) in dsp_pipeline_destroy() argument
226 if (!pipeline) in dsp_pipeline_destroy()
229 _dsp_pipeline_destroy(pipeline); in dsp_pipeline_destroy()
236 int dsp_pipeline_build(struct dsp_pipeline *pipeline, const char *cfg) in dsp_pipeline_build() argument
244 if (!pipeline) in dsp_pipeline_build()
247 if (!list_empty(&pipeline->list)) in dsp_pipeline_build()
248 _dsp_pipeline_destroy(pipeline); in dsp_pipeline_build()
287 dsp_hwec_enable(container_of(pipeline, in dsp_pipeline_build()
288 struct dsp, pipeline), args); in dsp_pipeline_build()
290 &pipeline->list); in dsp_pipeline_build()
295 list, &pipeline->list); in dsp_pipeline_build()
326 if (!list_empty(&pipeline->list)) in dsp_pipeline_build()
327 pipeline->inuse = 1; in dsp_pipeline_build()
329 pipeline->inuse = 0; in dsp_pipeline_build()
339 void dsp_pipeline_process_tx(struct dsp_pipeline *pipeline, u8 *data, int len) in dsp_pipeline_process_tx() argument
343 if (!pipeline) in dsp_pipeline_process_tx()
346 list_for_each_entry(entry, &pipeline->list, list) in dsp_pipeline_process_tx()
351 void dsp_pipeline_process_rx(struct dsp_pipeline *pipeline, u8 *data, int len, in dsp_pipeline_process_rx() argument
356 if (!pipeline) in dsp_pipeline_process_rx()
359 list_for_each_entry_reverse(entry, &pipeline->list, list) in dsp_pipeline_process_rx()