Lines Matching refs:dma_desc
47 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_hw_params() local
54 dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT); in bcm63xx_pcm_hw_params()
55 if (!dma_desc) in bcm63xx_pcm_hw_params()
58 snd_soc_dai_set_dma_data(asoc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params()
66 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_hw_free() local
69 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free()
70 kfree(dma_desc); in bcm63xx_pcm_hw_free()
148 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_prepare() local
155 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_prepare()
156 dma_desc->dma_len = snd_pcm_lib_period_bytes(substream); in bcm63xx_pcm_prepare()
157 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare()
158 dma_desc->dma_area = runtime->dma_area; in bcm63xx_pcm_prepare()
171 regmap_write(regmap_i2s, regaddr_desclen, dma_desc->dma_len); in bcm63xx_pcm_prepare()
172 regmap_write(regmap_i2s, regaddr_descaddr, dma_desc->dma_addr); in bcm63xx_pcm_prepare()
257 struct i2s_dma_desc *dma_desc; in i2s_dma_isr() local
272 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in i2s_dma_isr()
287 dma_desc->dma_addr += in i2s_dma_isr()
289 dma_desc->dma_area += in i2s_dma_isr()
291 if (dma_desc->dma_addr - runtime->dma_addr >= in i2s_dma_isr()
293 dma_desc->dma_addr = runtime->dma_addr; in i2s_dma_isr()
294 dma_desc->dma_area = runtime->dma_area; in i2s_dma_isr()
297 prtd->dma_addr = dma_desc->dma_addr; in i2s_dma_isr()
301 dma_desc->dma_addr); in i2s_dma_isr()
320 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in i2s_dma_isr()
336 dma_desc->dma_addr += in i2s_dma_isr()
338 dma_desc->dma_area += in i2s_dma_isr()
341 if (dma_desc->dma_addr - runtime->dma_addr >= in i2s_dma_isr()
343 dma_desc->dma_addr = runtime->dma_addr; in i2s_dma_isr()
344 dma_desc->dma_area = runtime->dma_area; in i2s_dma_isr()
347 prtd->dma_addr = dma_desc->dma_addr; in i2s_dma_isr()
351 dma_desc->dma_addr); in i2s_dma_isr()