• Home
  • Raw
  • Download

Lines Matching full:wd

296 	struct au1xpsc_audio_data *wd;  in au1xpsc_i2s_drvprobe()  local
298 wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data), in au1xpsc_i2s_drvprobe()
300 if (!wd) in au1xpsc_i2s_drvprobe()
303 wd->mmio = devm_platform_ioremap_resource(pdev, 0); in au1xpsc_i2s_drvprobe()
304 if (IS_ERR(wd->mmio)) in au1xpsc_i2s_drvprobe()
305 return PTR_ERR(wd->mmio); in au1xpsc_i2s_drvprobe()
310 wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; in au1xpsc_i2s_drvprobe()
315 wd->dmaids[SNDRV_PCM_STREAM_CAPTURE] = dmares->start; in au1xpsc_i2s_drvprobe()
320 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_i2s_drvprobe()
321 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvprobe()
323 __raw_writel(PSC_SEL_PS_I2SMODE | sel, PSC_SEL(wd)); in au1xpsc_i2s_drvprobe()
324 __raw_writel(0, I2S_CFG(wd)); in au1xpsc_i2s_drvprobe()
328 wd->cfg |= PSC_I2SCFG_RT_FIFO8 | PSC_I2SCFG_TT_FIFO8; in au1xpsc_i2s_drvprobe()
336 memcpy(&wd->dai_drv, &au1xpsc_i2s_dai_template, in au1xpsc_i2s_drvprobe()
338 wd->dai_drv.name = dev_name(&pdev->dev); in au1xpsc_i2s_drvprobe()
340 platform_set_drvdata(pdev, wd); in au1xpsc_i2s_drvprobe()
343 &au1xpsc_i2s_component, &wd->dai_drv, 1); in au1xpsc_i2s_drvprobe()
348 struct au1xpsc_audio_data *wd = platform_get_drvdata(pdev); in au1xpsc_i2s_drvremove() local
350 __raw_writel(0, I2S_CFG(wd)); in au1xpsc_i2s_drvremove()
352 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvremove()
361 struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); in au1xpsc_i2s_drvsuspend() local
364 wd->pm[0] = __raw_readl(PSC_SEL(wd)); in au1xpsc_i2s_drvsuspend()
366 __raw_writel(0, I2S_CFG(wd)); in au1xpsc_i2s_drvsuspend()
368 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvsuspend()
376 struct au1xpsc_audio_data *wd = dev_get_drvdata(dev); in au1xpsc_i2s_drvresume() local
379 __raw_writel(PSC_CTRL_DISABLE, PSC_CTRL(wd)); in au1xpsc_i2s_drvresume()
381 __raw_writel(0, PSC_SEL(wd)); in au1xpsc_i2s_drvresume()
383 __raw_writel(wd->pm[0], PSC_SEL(wd)); in au1xpsc_i2s_drvresume()