Lines Matching refs:dma_ch
199 int ret, dma_ch, dir = substream->stream; in lpass_platform_pcmops_open() local
213 dma_ch = v->alloc_dma_channel(drvdata, dir, dai_id); in lpass_platform_pcmops_open()
215 dma_ch = 0; in lpass_platform_pcmops_open()
217 if (dma_ch < 0) { in lpass_platform_pcmops_open()
219 return dma_ch; in lpass_platform_pcmops_open()
225 drvdata->substream[dma_ch] = substream; in lpass_platform_pcmops_open()
229 drvdata->hdmi_substream[dma_ch] = substream; in lpass_platform_pcmops_open()
234 drvdata->rxtx_substream[dma_ch] = substream; in lpass_platform_pcmops_open()
238 drvdata->va_substream[dma_ch] = substream; in lpass_platform_pcmops_open()
244 data->dma_ch = dma_ch; in lpass_platform_pcmops_open()
248 ret = regmap_write(map, LPAIF_DMACTL_REG(v, dma_ch, dir, data->i2s_port), 0); in lpass_platform_pcmops_open()
298 drvdata->substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
301 drvdata->hdmi_substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
305 drvdata->rxtx_substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
308 drvdata->va_substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
315 v->free_dma_channel(drvdata, data->dma_ch, dai_id); in lpass_platform_pcmops_close()
367 id = pcm_data->dma_ch; in __lpass_get_id()
369 id = pcm_data->dma_ch - v->wrdma_channel_start; in __lpass_get_id()
372 id = pcm_data->dma_ch; in __lpass_get_id()
375 id = pcm_data->dma_ch; in __lpass_get_id()
378 id = pcm_data->dma_ch - v->rxtx_wrdma_channel_start; in __lpass_get_id()
381 id = pcm_data->dma_ch - v->va_wrdma_channel_start; in __lpass_get_id()
587 reg = LPAIF_DMACTL_REG(v, pcm_data->dma_ch, substream->stream, dai_id); in lpass_platform_pcmops_hw_free()
611 ch = pcm_data->dma_ch; in lpass_platform_pcmops_prepare()
676 ch = pcm_data->dma_ch; in lpass_platform_pcmops_trigger()
874 ch = pcm_data->dma_ch; in lpass_platform_pcmops_pointer()