Lines Matching refs:adata

200 static void acp3x_enable_interrupts(struct acp_dev_data *adata)  in acp3x_enable_interrupts()  argument
202 struct acp_resource *rsrc = adata->rsrc; in acp3x_enable_interrupts()
205 writel(0x01, ACP_EXTERNAL_INTR_ENB(adata)); in acp3x_enable_interrupts()
206 ext_intr_ctrl = readl(ACP_EXTERNAL_INTR_CNTL(adata, rsrc->irqp_used)); in acp3x_enable_interrupts()
208 writel(ext_intr_ctrl, ACP_EXTERNAL_INTR_CNTL(adata, rsrc->irqp_used)); in acp3x_enable_interrupts()
211 static void acp3x_disable_interrupts(struct acp_dev_data *adata) in acp3x_disable_interrupts() argument
213 struct acp_resource *rsrc = adata->rsrc; in acp3x_disable_interrupts()
216 ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used)); in acp3x_disable_interrupts()
217 writel(0x00, ACP_EXTERNAL_INTR_ENB(adata)); in acp3x_disable_interrupts()
261 struct acp_dev_data *adata; in renoir_audio_probe() local
282 adata = devm_kzalloc(dev, sizeof(struct acp_dev_data), GFP_KERNEL); in renoir_audio_probe()
283 if (!adata) in renoir_audio_probe()
292 adata->acp_base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); in renoir_audio_probe()
293 if (!adata->acp_base) in renoir_audio_probe()
299 adata->i2s_irq = ret; in renoir_audio_probe()
301 adata->dev = dev; in renoir_audio_probe()
302 adata->dai_driver = acp_renoir_dai; in renoir_audio_probe()
303 adata->num_dai = ARRAY_SIZE(acp_renoir_dai); in renoir_audio_probe()
304 adata->rsrc = &rsrc; in renoir_audio_probe()
306 adata->machines = snd_soc_acpi_amd_acp_machines; in renoir_audio_probe()
307 acp_machine_select(adata); in renoir_audio_probe()
309 dev_set_drvdata(dev, adata); in renoir_audio_probe()
310 acp3x_enable_interrupts(adata); in renoir_audio_probe()
319 struct acp_dev_data *adata = dev_get_drvdata(dev); in renoir_audio_remove() local
325 acp3x_disable_interrupts(adata); in renoir_audio_remove()