Home
last modified time | relevance | path

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

/linux-6.1.9/sound/soc/fsl/
Dmpc5200_dma.c32 struct psc_dma *psc_dma = _psc_dma; in psc_dma_status_irq() local
33 struct mpc52xx_psc __iomem *regs = psc_dma->psc_regs; in psc_dma_status_irq()
39 if (psc_dma->playback.active && (isr & MPC52xx_PSC_IMR_TXEMP)) in psc_dma_status_irq()
40 psc_dma->stats.underrun_count++; in psc_dma_status_irq()
43 if (psc_dma->capture.active && (isr & MPC52xx_PSC_IMR_ORERR)) in psc_dma_status_irq()
44 psc_dma->stats.overrun_count++; in psc_dma_status_irq()
80 spin_lock(&s->psc_dma->lock); in psc_dma_bcom_irq()
91 spin_unlock(&s->psc_dma->lock); in psc_dma_bcom_irq()
111 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(rtd, 0)); in psc_dma_trigger() local
113 struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma); in psc_dma_trigger()
[all …]
Dmpc5200_psc_ac97.c28 static struct psc_dma *psc_dma; variable
35 mutex_lock(&psc_dma->mutex); in psc_ac97_read()
38 status = spin_event_timeout(!(in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_read()
42 mutex_unlock(&psc_dma->mutex); in psc_ac97_read()
47 in_be32(&psc_dma->psc_regs->ac97_data); in psc_ac97_read()
50 out_be32(&psc_dma->psc_regs->ac97_cmd, (1<<31) | ((reg & 0x7f) << 24)); in psc_ac97_read()
53 status = spin_event_timeout((in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_read()
57 in_be16(&psc_dma->psc_regs->sr_csr.status)); in psc_ac97_read()
58 mutex_unlock(&psc_dma->mutex); in psc_ac97_read()
62 val = in_be32(&psc_dma->psc_regs->ac97_data); in psc_ac97_read()
[all …]
Dmpc5200_psc_i2s.c42 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(rtd, 0)); in psc_i2s_hw_params() local
45 dev_dbg(psc_dma->dev, "%s(substream=%p) p_size=%i p_bytes=%i" in psc_i2s_hw_params()
65 dev_dbg(psc_dma->dev, "invalid format\n"); in psc_i2s_hw_params()
68 out_be32(&psc_dma->psc_regs->sicr, psc_dma->sicr | mode); in psc_i2s_hw_params()
90 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(cpu_dai); in psc_i2s_set_sysclk() local
91 dev_dbg(psc_dma->dev, "psc_i2s_set_sysclk(cpu_dai=%p, dir=%i)\n", in psc_i2s_set_sysclk()
109 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(cpu_dai); in psc_i2s_set_fmt() local
110 dev_dbg(psc_dma->dev, "psc_i2s_set_fmt(cpu_dai=%p, format=%i)\n", in psc_i2s_set_fmt()
163 struct psc_dma *psc_dma; in psc_i2s_of_probe() local
177 psc_dma = dev_get_drvdata(&op->dev); in psc_i2s_of_probe()
[all …]
Dmpc5200_dma.h25 struct psc_dma *psc_dma; member
51 struct psc_dma { struct
78 to_psc_dma_stream(struct snd_pcm_substream *substream, struct psc_dma *psc_dma) in to_psc_dma_stream() argument
81 return &psc_dma->capture; in to_psc_dma_stream()
82 return &psc_dma->playback; in to_psc_dma_stream()