Lines Matching refs:priv
108 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_startup() local
109 struct ssp_device *ssp = priv->ssp; in pxa_ssp_startup()
129 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_shutdown() local
130 struct ssp_device *ssp = priv->ssp; in pxa_ssp_shutdown()
145 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_suspend() local
146 struct ssp_device *ssp = priv->ssp; in pxa_ssp_suspend()
151 priv->cr0 = __raw_readl(ssp->mmio_base + SSCR0); in pxa_ssp_suspend()
152 priv->cr1 = __raw_readl(ssp->mmio_base + SSCR1); in pxa_ssp_suspend()
153 priv->to = __raw_readl(ssp->mmio_base + SSTO); in pxa_ssp_suspend()
154 priv->psp = __raw_readl(ssp->mmio_base + SSPSP); in pxa_ssp_suspend()
163 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_resume() local
164 struct ssp_device *ssp = priv->ssp; in pxa_ssp_resume()
170 __raw_writel(priv->cr0 & ~SSCR0_SSE, ssp->mmio_base + SSCR0); in pxa_ssp_resume()
171 __raw_writel(priv->cr1, ssp->mmio_base + SSCR1); in pxa_ssp_resume()
172 __raw_writel(priv->to, ssp->mmio_base + SSTO); in pxa_ssp_resume()
173 __raw_writel(priv->psp, ssp->mmio_base + SSPSP); in pxa_ssp_resume()
227 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_set_dai_sysclk() local
228 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_sysclk()
245 priv->sysclk = 1843200; in pxa_ssp_set_dai_sysclk()
247 priv->sysclk = 13000000; in pxa_ssp_set_dai_sysclk()
250 priv->sysclk = freq; in pxa_ssp_set_dai_sysclk()
254 priv->sysclk = freq; in pxa_ssp_set_dai_sysclk()
258 priv->sysclk = 0; in pxa_ssp_set_dai_sysclk()
284 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_set_dai_clkdiv() local
285 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_clkdiv()
331 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_set_dai_pll() local
332 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_pll()
396 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_set_dai_tdm_slot() local
397 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_tdm_slot()
431 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_set_dai_tristate() local
432 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_tristate()
453 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_set_dai_fmt() local
454 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_fmt()
458 if (priv->dai_fmt == fmt) in pxa_ssp_set_dai_fmt()
542 priv->dai_fmt = fmt; in pxa_ssp_set_dai_fmt()
555 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_hw_params() local
556 struct ssp_device *ssp = priv->ssp; in pxa_ssp_hw_params()
597 switch (priv->dai_fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in pxa_ssp_hw_params()
685 struct ssp_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in pxa_ssp_trigger() local
686 struct ssp_device *ssp = priv->ssp; in pxa_ssp_trigger()
722 struct ssp_priv *priv; in pxa_ssp_probe() local
725 priv = kzalloc(sizeof(struct ssp_priv), GFP_KERNEL); in pxa_ssp_probe()
726 if (!priv) in pxa_ssp_probe()
729 priv->ssp = pxa_ssp_request(dai->id + 1, "SoC audio"); in pxa_ssp_probe()
730 if (priv->ssp == NULL) { in pxa_ssp_probe()
735 priv->dai_fmt = (unsigned int) -1; in pxa_ssp_probe()
736 snd_soc_dai_set_drvdata(dai, priv); in pxa_ssp_probe()
741 kfree(priv); in pxa_ssp_probe()
747 struct ssp_priv *priv = snd_soc_dai_get_drvdata(dai); in pxa_ssp_remove() local
749 pxa_ssp_free(priv->ssp); in pxa_ssp_remove()
750 kfree(priv); in pxa_ssp_remove()