• Home
  • Raw
  • Download

Lines Matching refs:prtd

166 	struct atmel_runtime_data *prtd = substream->runtime->private_data;  in atmel_pcm_dma_irq()  local
167 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_dma_irq()
181 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
182 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq()
183 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
186 prtd->period_ptr); in atmel_pcm_dma_irq()
188 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
195 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
196 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq()
197 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
200 prtd->period_ptr); in atmel_pcm_dma_irq()
202 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
216 struct atmel_runtime_data *prtd = runtime->private_data; in atmel_pcm_hw_params() local
225 prtd->params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in atmel_pcm_hw_params()
226 prtd->params->dma_intr_handler = atmel_pcm_dma_irq; in atmel_pcm_hw_params()
228 prtd->dma_buffer = runtime->dma_addr; in atmel_pcm_hw_params()
229 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params()
230 prtd->period_size = params_period_bytes(params); in atmel_pcm_hw_params()
235 prtd->params->name, in atmel_pcm_hw_params()
237 prtd->period_size); in atmel_pcm_hw_params()
243 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_hw_free() local
244 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_hw_free()
249 prtd->params->dma_intr_handler = NULL; in atmel_pcm_hw_free()
257 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_prepare() local
258 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_prepare()
271 struct atmel_runtime_data *prtd = rtd->private_data; in atmel_pcm_trigger() local
272 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_trigger()
281 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_trigger()
284 prtd->period_ptr); in atmel_pcm_trigger()
286 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
288 prtd->period_ptr += prtd->period_size; in atmel_pcm_trigger()
290 prtd->period_ptr); in atmel_pcm_trigger()
292 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
297 (unsigned long)prtd->period_ptr, in atmel_pcm_trigger()
337 struct atmel_runtime_data *prtd = runtime->private_data; in atmel_pcm_pointer() local
338 struct atmel_pcm_dma_params *params = prtd->params; in atmel_pcm_pointer()
343 x = bytes_to_frames(runtime, ptr - prtd->dma_buffer); in atmel_pcm_pointer()
354 struct atmel_runtime_data *prtd; in atmel_pcm_open() local
365 prtd = kzalloc(sizeof(struct atmel_runtime_data), GFP_KERNEL); in atmel_pcm_open()
366 if (prtd == NULL) { in atmel_pcm_open()
370 runtime->private_data = prtd; in atmel_pcm_open()
378 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_close() local
380 kfree(prtd); in atmel_pcm_close()