Lines Matching refs:dma_params

142 	struct atmel_pcm_dma_params *dma_params;  in atmel_ssc_interrupt()  local
156 for (i = 0; i < ARRAY_SIZE(ssc_p->dma_params); i++) { in atmel_ssc_interrupt()
157 dma_params = ssc_p->dma_params[i]; in atmel_ssc_interrupt()
159 if ((dma_params != NULL) && in atmel_ssc_interrupt()
160 (dma_params->dma_intr_handler != NULL)) { in atmel_ssc_interrupt()
161 ssc_substream_mask = (dma_params->mask->ssc_endx | in atmel_ssc_interrupt()
162 dma_params->mask->ssc_endbuf); in atmel_ssc_interrupt()
164 dma_params->dma_intr_handler(ssc_sr, in atmel_ssc_interrupt()
165 dma_params-> in atmel_ssc_interrupt()
274 struct atmel_pcm_dma_params *dma_params; in atmel_ssc_startup() local
312 dma_params = &ssc_dma_params[pdev->id][dir]; in atmel_ssc_startup()
313 dma_params->ssc = ssc_p->ssc; in atmel_ssc_startup()
314 dma_params->substream = substream; in atmel_ssc_startup()
316 ssc_p->dma_params[dir] = dma_params; in atmel_ssc_startup()
318 snd_soc_dai_set_dma_data(dai, substream, dma_params); in atmel_ssc_startup()
337 struct atmel_pcm_dma_params *dma_params; in atmel_ssc_shutdown() local
345 dma_params = ssc_p->dma_params[dir]; in atmel_ssc_shutdown()
347 if (dma_params != NULL) { in atmel_ssc_shutdown()
348 dma_params->ssc = NULL; in atmel_ssc_shutdown()
349 dma_params->substream = NULL; in atmel_ssc_shutdown()
350 ssc_p->dma_params[dir] = NULL; in atmel_ssc_shutdown()
465 struct atmel_pcm_dma_params *dma_params; in atmel_ssc_hw_params() local
524 dma_params = ssc_p->dma_params[dir]; in atmel_ssc_hw_params()
534 dma_params->pdc_xfer_size = 1; in atmel_ssc_hw_params()
538 dma_params->pdc_xfer_size = 2; in atmel_ssc_hw_params()
542 dma_params->pdc_xfer_size = 4; in atmel_ssc_hw_params()
546 dma_params->pdc_xfer_size = 4; in atmel_ssc_hw_params()
717 struct atmel_pcm_dma_params *dma_params; in atmel_ssc_prepare() local
725 dma_params = ssc_p->dma_params[dir]; in atmel_ssc_prepare()
727 ssc_writel(ssc_p->ssc->regs, CR, dma_params->mask->ssc_disable); in atmel_ssc_prepare()
728 ssc_writel(ssc_p->ssc->regs, IDR, dma_params->mask->ssc_error); in atmel_ssc_prepare()
741 struct atmel_pcm_dma_params *dma_params; in atmel_ssc_trigger() local
749 dma_params = ssc_p->dma_params[dir]; in atmel_ssc_trigger()
755 ssc_writel(ssc_p->ssc->regs, CR, dma_params->mask->ssc_enable); in atmel_ssc_trigger()
758 ssc_writel(ssc_p->ssc->regs, CR, dma_params->mask->ssc_disable); in atmel_ssc_trigger()