Lines Matching full: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()
98 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_open() local
102 return snd_pcm_hw_constraint_step(runtime, 0, in uniphier_aiodma_open()
110 substream->runtime->dma_bytes = params_buffer_bytes(params); in uniphier_aiodma_hw_params()
118 substream->runtime->dma_bytes = 0; in uniphier_aiodma_hw_free()
125 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_prepare() local
129 int bytes = runtime->period_size * in uniphier_aiodma_prepare()
130 runtime->channels * samples_to_bytes(runtime, 1); in uniphier_aiodma_prepare()
139 ret = aiodma_rb_set_buffer(sub, runtime->dma_addr, in uniphier_aiodma_prepare()
140 runtime->dma_addr + runtime->dma_bytes, in uniphier_aiodma_prepare()
151 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_trigger() local
156 int bytes = runtime->period_size * in uniphier_aiodma_trigger()
157 runtime->channels * samples_to_bytes(runtime, 1); in uniphier_aiodma_trigger()
163 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, in uniphier_aiodma_trigger()
186 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_pointer() local
190 int bytes = runtime->period_size * in uniphier_aiodma_pointer()
191 runtime->channels * samples_to_bytes(runtime, 1); in uniphier_aiodma_pointer()
196 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in uniphier_aiodma_pointer()
199 pos = bytes_to_frames(runtime, sub->rd_offs); in uniphier_aiodma_pointer()
201 pos = bytes_to_frames(runtime, sub->wr_offs); in uniphier_aiodma_pointer()