Searched refs:wd (Results 1 – 2 of 2) sorted by relevance
299 struct au1xpsc_audio_data *wd; in au1xpsc_i2s_drvprobe() local301 wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data), in au1xpsc_i2s_drvprobe()303 if (!wd) in au1xpsc_i2s_drvprobe()307 wd->mmio = devm_ioremap_resource(&pdev->dev, iores); in au1xpsc_i2s_drvprobe()308 if (IS_ERR(wd->mmio)) in au1xpsc_i2s_drvprobe()309 return PTR_ERR(wd->mmio); in au1xpsc_i2s_drvprobe()314 wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; in au1xpsc_i2s_drvprobe()319 wd->dmaids[SNDRV_PCM_STREAM_CAPTURE] = dmares->start; in au1xpsc_i2s_drvprobe()324 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_i2s_drvprobe()325 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvprobe()[all …]
372 struct au1xpsc_audio_data *wd; in au1xpsc_ac97_drvprobe() local374 wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data), in au1xpsc_ac97_drvprobe()376 if (!wd) in au1xpsc_ac97_drvprobe()379 mutex_init(&wd->lock); in au1xpsc_ac97_drvprobe()382 wd->mmio = devm_ioremap_resource(&pdev->dev, iores); in au1xpsc_ac97_drvprobe()383 if (IS_ERR(wd->mmio)) in au1xpsc_ac97_drvprobe()384 return PTR_ERR(wd->mmio); in au1xpsc_ac97_drvprobe()389 wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; in au1xpsc_ac97_drvprobe()394 wd->dmaids[SNDRV_PCM_STREAM_CAPTURE] = dmares->start; in au1xpsc_ac97_drvprobe()397 wd->cfg = PSC_AC97CFG_RT_FIFO8 | PSC_AC97CFG_TT_FIFO8 | in au1xpsc_ac97_drvprobe()[all …]