Lines Matching refs:runtime
30 struct snd_pcm_runtime *runtime = sub->substream->runtime; in aiodma_pcm_irq() local
31 int bytes = runtime->period_size * in aiodma_pcm_irq()
32 runtime->channels * samples_to_bytes(runtime, 1); in aiodma_pcm_irq()
36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq()
41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq()
50 struct snd_compr_runtime *runtime = sub->cstream->runtime; in aiodma_compr_irq() local
51 int bytes = runtime->fragment_size; in aiodma_compr_irq()
99 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_open() local
103 return snd_pcm_hw_constraint_step(runtime, 0, in uniphier_aiodma_open()
110 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_prepare() local
114 int bytes = runtime->period_size * in uniphier_aiodma_prepare()
115 runtime->channels * samples_to_bytes(runtime, 1); in uniphier_aiodma_prepare()
124 ret = aiodma_rb_set_buffer(sub, runtime->dma_addr, in uniphier_aiodma_prepare()
125 runtime->dma_addr + runtime->dma_bytes, in uniphier_aiodma_prepare()
137 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_trigger() local
142 int bytes = runtime->period_size * in uniphier_aiodma_trigger()
143 runtime->channels * samples_to_bytes(runtime, 1); in uniphier_aiodma_trigger()
149 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, in uniphier_aiodma_trigger()
173 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_pointer() local
177 int bytes = runtime->period_size * in uniphier_aiodma_pointer()
178 runtime->channels * samples_to_bytes(runtime, 1); in uniphier_aiodma_pointer()
183 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in uniphier_aiodma_pointer()
186 pos = bytes_to_frames(runtime, sub->rd_offs); in uniphier_aiodma_pointer()
188 pos = bytes_to_frames(runtime, sub->wr_offs); in uniphier_aiodma_pointer()
201 substream->runtime->dma_addr >> PAGE_SHIFT, in uniphier_aiodma_mmap()