Lines Matching refs:adata

45 	struct acp_dev_data *adata = dev_get_drvdata(dev);  in acp_dmic_prepare()  local
50 writel(PDM_CLK_FREQ_MASK, adata->acp_base + ACP_WOV_CLK_CTRL); in acp_dmic_prepare()
51 dmic_ctrl = readl(adata->acp_base + ACP_WOV_MISC_CTRL); in acp_dmic_prepare()
53 writel(dmic_ctrl, adata->acp_base + ACP_WOV_MISC_CTRL); in acp_dmic_prepare()
63 writel(physical_addr, adata->acp_base + ACP_WOV_RX_RINGBUFADDR); in acp_dmic_prepare()
64 writel(size_dmic, adata->acp_base + ACP_WOV_RX_RINGBUFSIZE); in acp_dmic_prepare()
65 writel(period_bytes, adata->acp_base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in acp_dmic_prepare()
66 writel(0x01, adata->acp_base + ACPAXI2AXI_ATU_CTRL); in acp_dmic_prepare()
75 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_dmic_dai_trigger() local
83 dma_enable = readl(adata->acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp_dmic_dai_trigger()
85 writel(PDM_ENABLE, adata->acp_base + ACP_WOV_PDM_ENABLE); in acp_dmic_dai_trigger()
86 writel(PDM_ENABLE, adata->acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp_dmic_dai_trigger()
89 ret = readl_poll_timeout_atomic(adata->acp_base + ACP_WOV_PDM_DMA_ENABLE, in acp_dmic_dai_trigger()
96 dma_enable = readl(adata->acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp_dmic_dai_trigger()
98 writel(PDM_DISABLE, adata->acp_base + ACP_WOV_PDM_ENABLE); in acp_dmic_dai_trigger()
99 writel(PDM_DISABLE, adata->acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp_dmic_dai_trigger()
103 ret = readl_poll_timeout_atomic(adata->acp_base + ACP_WOV_PDM_DMA_ENABLE, in acp_dmic_dai_trigger()
119 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_dmic_hwparams() local
143 writel(ch_mask, adata->acp_base + ACP_WOV_PDM_NO_OF_CHANNELS); in acp_dmic_hwparams()
144 writel(PDM_DEC_64, adata->acp_base + ACP_WOV_PDM_DECIMATION_FACTOR); in acp_dmic_hwparams()
154 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_dmic_dai_startup() local
163 ext_int_ctrl = readl(ACP_EXTERNAL_INTR_CNTL(adata, 0)); in acp_dmic_dai_startup()
165 writel(ext_int_ctrl, ACP_EXTERNAL_INTR_CNTL(adata, 0)); in acp_dmic_dai_startup()
174 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_dmic_dai_shutdown() local
178 ext_int_ctrl = readl(ACP_EXTERNAL_INTR_CNTL(adata, 0)); in acp_dmic_dai_shutdown()
180 writel(ext_int_ctrl, ACP_EXTERNAL_INTR_CNTL(adata, 0)); in acp_dmic_dai_shutdown()