Lines Matching full:wd
297 struct au1xpsc_audio_data *wd; in au1xpsc_i2s_drvprobe() local
299 wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data), in au1xpsc_i2s_drvprobe()
301 if (!wd) in au1xpsc_i2s_drvprobe()
304 wd->mmio = devm_platform_ioremap_resource(pdev, 0); in au1xpsc_i2s_drvprobe()
305 if (IS_ERR(wd->mmio)) in au1xpsc_i2s_drvprobe()
306 return PTR_ERR(wd->mmio); in au1xpsc_i2s_drvprobe()
311 wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; in au1xpsc_i2s_drvprobe()
316 wd->dmaids[SNDRV_PCM_STREAM_CAPTURE] = dmares->start; in au1xpsc_i2s_drvprobe()
321 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_i2s_drvprobe()
322 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvprobe()
324 __raw_writel(PSC_SEL_PS_I2SMODE | sel, PSC_SEL(wd)); in au1xpsc_i2s_drvprobe()
325 __raw_writel(0, I2S_CFG(wd)); in au1xpsc_i2s_drvprobe()
329 wd->cfg |= PSC_I2SCFG_RT_FIFO8 | PSC_I2SCFG_TT_FIFO8; in au1xpsc_i2s_drvprobe()
337 memcpy(&wd->dai_drv, &au1xpsc_i2s_dai_template, in au1xpsc_i2s_drvprobe()
339 wd->dai_drv.name = dev_name(&pdev->dev); in au1xpsc_i2s_drvprobe()
341 platform_set_drvdata(pdev, wd); in au1xpsc_i2s_drvprobe()
344 &au1xpsc_i2s_component, &wd->dai_drv, 1); in au1xpsc_i2s_drvprobe()
349 struct au1xpsc_audio_data *wd = platform_get_drvdata(pdev); in au1xpsc_i2s_drvremove() local
351 __raw_writel(0, I2S_CFG(wd)); in au1xpsc_i2s_drvremove()
353 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvremove()
360 struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); in au1xpsc_i2s_drvsuspend() local
363 wd->pm[0] = __raw_readl(PSC_SEL(wd)); in au1xpsc_i2s_drvsuspend()
365 __raw_writel(0, I2S_CFG(wd)); in au1xpsc_i2s_drvsuspend()
367 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvsuspend()
375 struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); in au1xpsc_i2s_drvresume() local
378 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvresume()
380 __raw_writel(0, PSC_SEL(wd)); in au1xpsc_i2s_drvresume()
382 __raw_writel(wd->pm[0], PSC_SEL(wd)); in au1xpsc_i2s_drvresume()