Lines Matching refs:runtime
147 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_prepare() local
152 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare()
153 dma_desc->dma_area = runtime->dma_area; in bcm63xx_pcm_prepare()
177 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer()
180 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer()
182 x = bytes_to_frames(substream->runtime, in bcm63xx_pcm_pointer()
183 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer()
185 return x == substream->runtime->buffer_size ? 0 : x; in bcm63xx_pcm_pointer()
192 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_open() local
195 runtime->hw = bcm63xx_pcm_hardware; in bcm63xx_pcm_open()
196 ret = snd_pcm_hw_constraint_step(runtime, 0, in bcm63xx_pcm_open()
201 ret = snd_pcm_hw_constraint_step(runtime, 0, in bcm63xx_pcm_open()
206 ret = snd_pcm_hw_constraint_integer(runtime, in bcm63xx_pcm_open()
216 runtime->private_data = prtd; in bcm63xx_pcm_open()
225 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_close() local
226 struct bcm63xx_runtime_data *prtd = runtime->private_data; in bcm63xx_pcm_close()
237 struct snd_pcm_runtime *runtime; in i2s_dma_isr() local
251 runtime = substream->runtime; in i2s_dma_isr()
253 prtd = runtime->private_data; in i2s_dma_isr()
273 if (dma_desc->dma_addr - runtime->dma_addr >= in i2s_dma_isr()
274 runtime->dma_bytes) { in i2s_dma_isr()
275 dma_desc->dma_addr = runtime->dma_addr; in i2s_dma_isr()
276 dma_desc->dma_area = runtime->dma_area; in i2s_dma_isr()
299 runtime = substream->runtime; in i2s_dma_isr()
301 prtd = runtime->private_data; in i2s_dma_isr()
323 if (dma_desc->dma_addr - runtime->dma_addr >= in i2s_dma_isr()
324 runtime->dma_bytes) { in i2s_dma_isr()
325 dma_desc->dma_addr = runtime->dma_addr; in i2s_dma_isr()
326 dma_desc->dma_area = runtime->dma_area; in i2s_dma_isr()