Home
last modified time | relevance | path

Searched refs:amd_manager (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/soundwire/
Damd_manager.c30 static int amd_init_sdw_manager(struct amd_sdw_manager *amd_manager) in amd_init_sdw_manager() argument
35 writel(AMD_SDW_ENABLE, amd_manager->mmio + ACP_SW_EN); in amd_init_sdw_manager()
36 ret = readl_poll_timeout(amd_manager->mmio + ACP_SW_EN_STATUS, val, val, ACP_DELAY_US, in amd_init_sdw_manager()
42 writel(AMD_SDW_BUS_RESET_REQ, amd_manager->mmio + ACP_SW_BUS_RESET_CTRL); in amd_init_sdw_manager()
43 ret = readl_poll_timeout(amd_manager->mmio + ACP_SW_BUS_RESET_CTRL, val, in amd_init_sdw_manager()
48 writel(AMD_SDW_BUS_RESET_CLEAR_REQ, amd_manager->mmio + ACP_SW_BUS_RESET_CTRL); in amd_init_sdw_manager()
49 ret = readl_poll_timeout(amd_manager->mmio + ACP_SW_BUS_RESET_CTRL, val, !val, in amd_init_sdw_manager()
52 dev_err(amd_manager->dev, "Failed to reset SoundWire manager instance%d\n", in amd_init_sdw_manager()
53 amd_manager->instance); in amd_init_sdw_manager()
57 writel(AMD_SDW_DISABLE, amd_manager->mmio + ACP_SW_EN); in amd_init_sdw_manager()
[all …]
Damd_init.c151 struct amd_sdw_manager *amd_manager; in sdw_amd_startup() local
158 amd_manager = dev_get_drvdata(&ctx->pdev[i]->dev); in sdw_amd_startup()
159 ret = amd_sdw_manager_start(amd_manager); in sdw_amd_startup()
187 struct amd_sdw_manager *amd_manager; in sdw_amd_get_slave_info() local
198 amd_manager = dev_get_drvdata(&ctx->pdev[index]->dev); in sdw_amd_get_slave_info()
199 if (!amd_manager) in sdw_amd_get_slave_info()
201 bus = &amd_manager->bus; in sdw_amd_get_slave_info()
214 amd_manager = dev_get_drvdata(&ctx->pdev[index]->dev); in sdw_amd_get_slave_info()
215 if (amd_manager) { in sdw_amd_get_slave_info()
216 bus = &amd_manager->bus; in sdw_amd_get_slave_info()
Damd_init.h11 int amd_sdw_manager_start(struct amd_sdw_manager *amd_manager);
DMakefile23 soundwire-amd-y := amd_init.o amd_manager.o
/linux-6.12.1/sound/soc/amd/ps/
Dpci-ps.c132 struct amd_sdw_manager *amd_manager; in acp63_irq_handler() local
150 amd_manager = dev_get_drvdata(&adata->sdw->pdev[0]->dev); in acp63_irq_handler()
151 if (amd_manager) in acp63_irq_handler()
152 schedule_work(&amd_manager->amd_sdw_irq_thread); in acp63_irq_handler()
159 amd_manager = dev_get_drvdata(&adata->sdw->pdev[1]->dev); in acp63_irq_handler()
160 if (amd_manager) in acp63_irq_handler()
161 schedule_work(&amd_manager->amd_sdw_irq_thread); in acp63_irq_handler()
Dps-sdw-dma.c220 struct amd_sdw_manager *amd_manager; in acp63_sdw_dma_open() local
226 amd_manager = snd_soc_dai_get_drvdata(cpu_dai); in acp63_sdw_dma_open()
244 stream->instance = amd_manager->instance; in acp63_sdw_dma_open()
/linux-6.12.1/sound/soc/sof/amd/
Dacp.c423 struct amd_sdw_manager *amd_manager; in acp_irq_handler() local
440 amd_manager = dev_get_drvdata(&adata->sdw->pdev[0]->dev); in acp_irq_handler()
442 if (amd_manager) in acp_irq_handler()
443 schedule_work(&amd_manager->amd_sdw_irq_thread); in acp_irq_handler()
460 amd_manager = dev_get_drvdata(&adata->sdw->pdev[1]->dev); in acp_irq_handler()
463 if (amd_manager) in acp_irq_handler()
464 schedule_work(&amd_manager->amd_sdw_irq_thread); in acp_irq_handler()