Lines Matching refs:prtd

91 	struct atmel_runtime_data *prtd = substream->runtime->private_data;  in atmel_pcm_dma_irq()  local
92 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_dma_irq()
106 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
107 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq()
108 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
111 prtd->period_ptr); in atmel_pcm_dma_irq()
113 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
120 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
121 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq()
122 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
125 prtd->period_ptr); in atmel_pcm_dma_irq()
127 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
142 struct atmel_runtime_data *prtd = runtime->private_data; in atmel_pcm_hw_params() local
148 prtd->params = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in atmel_pcm_hw_params()
149 prtd->params->dma_intr_handler = atmel_pcm_dma_irq; in atmel_pcm_hw_params()
151 prtd->dma_buffer = runtime->dma_addr; in atmel_pcm_hw_params()
152 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params()
153 prtd->period_size = params_period_bytes(params); in atmel_pcm_hw_params()
158 prtd->params->name, in atmel_pcm_hw_params()
160 prtd->period_size); in atmel_pcm_hw_params()
167 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_hw_free() local
168 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_hw_free()
173 prtd->params->dma_intr_handler = NULL; in atmel_pcm_hw_free()
182 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_prepare() local
183 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_prepare()
196 struct atmel_runtime_data *prtd = rtd->private_data; in atmel_pcm_trigger() local
197 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_trigger()
206 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_trigger()
209 prtd->period_ptr); in atmel_pcm_trigger()
211 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
213 prtd->period_ptr += prtd->period_size; in atmel_pcm_trigger()
215 prtd->period_ptr); in atmel_pcm_trigger()
217 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
222 (unsigned long)prtd->period_ptr, in atmel_pcm_trigger()
262 struct atmel_runtime_data *prtd = runtime->private_data; in atmel_pcm_pointer() local
263 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_pointer()
268 x = bytes_to_frames(runtime, ptr - prtd->dma_buffer); in atmel_pcm_pointer()
280 struct atmel_runtime_data *prtd; in atmel_pcm_open() local
291 prtd = kzalloc(sizeof(struct atmel_runtime_data), GFP_KERNEL); in atmel_pcm_open()
292 if (prtd == NULL) { in atmel_pcm_open()
296 runtime->private_data = prtd; in atmel_pcm_open()
305 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_close() local
307 kfree(prtd); in atmel_pcm_close()