Lines Matching full:wd

368 	struct au1xpsc_audio_data *wd;  in au1xpsc_ac97_drvprobe()  local
370 wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data), in au1xpsc_ac97_drvprobe()
372 if (!wd) in au1xpsc_ac97_drvprobe()
375 mutex_init(&wd->lock); in au1xpsc_ac97_drvprobe()
377 wd->mmio = devm_platform_ioremap_resource(pdev, 0); in au1xpsc_ac97_drvprobe()
378 if (IS_ERR(wd->mmio)) in au1xpsc_ac97_drvprobe()
379 return PTR_ERR(wd->mmio); in au1xpsc_ac97_drvprobe()
384 wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; in au1xpsc_ac97_drvprobe()
389 wd->dmaids[SNDRV_PCM_STREAM_CAPTURE] = dmares->start; in au1xpsc_ac97_drvprobe()
392 wd->cfg = PSC_AC97CFG_RT_FIFO8 | PSC_AC97CFG_TT_FIFO8 | in au1xpsc_ac97_drvprobe()
396 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_ac97_drvprobe()
397 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_ac97_drvprobe()
399 __raw_writel(0, PSC_SEL(wd)); in au1xpsc_ac97_drvprobe()
401 __raw_writel(PSC_SEL_PS_AC97MODE | sel, PSC_SEL(wd)); in au1xpsc_ac97_drvprobe()
405 memcpy(&wd->dai_drv, &au1xpsc_ac97_dai_template, in au1xpsc_ac97_drvprobe()
407 wd->dai_drv.name = dev_name(&pdev->dev); in au1xpsc_ac97_drvprobe()
409 platform_set_drvdata(pdev, wd); in au1xpsc_ac97_drvprobe()
416 &wd->dai_drv, 1); in au1xpsc_ac97_drvprobe()
420 au1xpsc_ac97_workdata = wd; in au1xpsc_ac97_drvprobe()
426 struct au1xpsc_audio_data *wd = platform_get_drvdata(pdev); in au1xpsc_ac97_drvremove() local
431 __raw_writel(0, AC97_CFG(wd)); in au1xpsc_ac97_drvremove()
433 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_ac97_drvremove()
442 struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); in au1xpsc_ac97_drvsuspend() local
445 wd->pm[0] = __raw_readl(PSC_SEL(wd)); in au1xpsc_ac97_drvsuspend()
447 __raw_writel(0, AC97_CFG(wd)); in au1xpsc_ac97_drvsuspend()
449 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_ac97_drvsuspend()
457 struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); in au1xpsc_ac97_drvresume() local
460 __raw_writel(wd->pm[0] | PSC_SEL_PS_AC97MODE, PSC_SEL(wd)); in au1xpsc_ac97_drvresume()