Lines Matching refs:runtime
42 struct snd_pcm_runtime *runtime = substream->runtime; in __pxa2xx_pcm_hw_params() local
43 struct pxa2xx_runtime_data *rtd = runtime->private_data; in __pxa2xx_pcm_hw_params()
79 runtime->dma_bytes = totsize; in __pxa2xx_pcm_hw_params()
83 dma_buff_phys = runtime->dma_addr; in __pxa2xx_pcm_hw_params()
108 struct pxa2xx_runtime_data *rtd = substream->runtime->private_data; in __pxa2xx_pcm_hw_free()
122 struct pxa2xx_runtime_data *prtd = substream->runtime->private_data; in pxa2xx_pcm_trigger()
156 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_pointer() local
157 struct pxa2xx_runtime_data *prtd = runtime->private_data; in pxa2xx_pcm_pointer()
161 snd_pcm_uframes_t x = bytes_to_frames(runtime, ptr - runtime->dma_addr); in pxa2xx_pcm_pointer()
163 if (x == runtime->buffer_size) in pxa2xx_pcm_pointer()
171 struct pxa2xx_runtime_data *prtd = substream->runtime->private_data; in __pxa2xx_pcm_prepare()
210 struct snd_pcm_runtime *runtime = substream->runtime; in __pxa2xx_pcm_open() local
214 runtime->hw = pxa2xx_pcm_hardware; in __pxa2xx_pcm_open()
221 ret = snd_pcm_hw_constraint_step(runtime, 0, in __pxa2xx_pcm_open()
226 ret = snd_pcm_hw_constraint_step(runtime, 0, in __pxa2xx_pcm_open()
231 ret = snd_pcm_hw_constraint_integer(runtime, in __pxa2xx_pcm_open()
247 runtime->private_data = rtd; in __pxa2xx_pcm_open()
259 struct snd_pcm_runtime *runtime = substream->runtime; in __pxa2xx_pcm_close() local
260 struct pxa2xx_runtime_data *rtd = runtime->private_data; in __pxa2xx_pcm_close()
272 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_mmap() local
274 runtime->dma_area, in pxa2xx_pcm_mmap()
275 runtime->dma_addr, in pxa2xx_pcm_mmap()
276 runtime->dma_bytes); in pxa2xx_pcm_mmap()