Home
last modified time | relevance | path

Searched refs:prtd (Results 1 – 4 of 4) sorted by relevance

/sound/soc/atmel/
Datmel-pcm-pdc.c166 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()
[all …]
Datmel-pcm-dma.c70 struct atmel_pcm_dma_params *prtd; in atmel_pcm_dma_irq() local
72 prtd = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in atmel_pcm_dma_irq()
74 if (ssc_sr & prtd->mask->ssc_error) { in atmel_pcm_dma_irq()
78 ? "underrun" : "overrun", prtd->name, in atmel_pcm_dma_irq()
82 ssc_writex(prtd->ssc->regs, SSC_CR, prtd->mask->ssc_disable); in atmel_pcm_dma_irq()
86 ssc_readx(prtd->ssc->regs, SSC_RHR); in atmel_pcm_dma_irq()
87 ssc_readx(prtd->ssc->regs, SSC_SR); in atmel_pcm_dma_irq()
95 struct atmel_pcm_dma_params *prtd; in atmel_pcm_configure_dma() local
99 prtd = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in atmel_pcm_configure_dma()
100 ssc = prtd->ssc; in atmel_pcm_configure_dma()
[all …]
/sound/soc/samsung/
Didma.c74 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue() local
77 spin_lock(&prtd->lock); in idma_enqueue()
78 prtd->token = (void *) substream; in idma_enqueue()
79 spin_unlock(&prtd->lock); in idma_enqueue()
82 val = idma.lp_tx_addr + prtd->periodsz; in idma_enqueue()
109 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk() local
111 spin_lock(&prtd->lock); in idma_setcallbk()
112 prtd->cb = cb; in idma_setcallbk()
113 spin_unlock(&prtd->lock); in idma_setcallbk()
141 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done() local
[all …]
/sound/core/
Dpcm_dmaengine.c46 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_get_chan() local
48 return prtd->dma_chan; in snd_dmaengine_pcm_get_chan()
136 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete() local
138 prtd->pos += snd_pcm_lib_period_bytes(substream); in dmaengine_pcm_dma_complete()
139 if (prtd->pos >= snd_pcm_lib_buffer_bytes(substream)) in dmaengine_pcm_dma_complete()
140 prtd->pos = 0; in dmaengine_pcm_dma_complete()
147 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_prepare_and_submit() local
148 struct dma_chan *chan = prtd->dma_chan; in dmaengine_pcm_prepare_and_submit()
158 prtd->pos = 0; in dmaengine_pcm_prepare_and_submit()
169 prtd->cookie = dmaengine_submit(desc); in dmaengine_pcm_prepare_and_submit()
[all …]