Lines Matching refs:acp_res
276 adev->acp.acp_res = kcalloc(3, sizeof(struct resource), GFP_KERNEL); in acp_hw_init()
277 if (!adev->acp.acp_res) { in acp_hw_init()
295 adev->acp.acp_res[0].name = "acp2x_dma"; in acp_hw_init()
296 adev->acp.acp_res[0].flags = IORESOURCE_MEM; in acp_hw_init()
297 adev->acp.acp_res[0].start = acp_base; in acp_hw_init()
298 adev->acp.acp_res[0].end = acp_base + ACP_DMA_REGS_END; in acp_hw_init()
300 adev->acp.acp_res[1].name = "acp2x_dw_i2s_play_cap"; in acp_hw_init()
301 adev->acp.acp_res[1].flags = IORESOURCE_MEM; in acp_hw_init()
302 adev->acp.acp_res[1].start = acp_base + ACP_I2S_CAP_REGS_START; in acp_hw_init()
303 adev->acp.acp_res[1].end = acp_base + ACP_I2S_CAP_REGS_END; in acp_hw_init()
305 adev->acp.acp_res[2].name = "acp2x_dma_irq"; in acp_hw_init()
306 adev->acp.acp_res[2].flags = IORESOURCE_IRQ; in acp_hw_init()
307 adev->acp.acp_res[2].start = amdgpu_irq_create_mapping(adev, 162); in acp_hw_init()
308 adev->acp.acp_res[2].end = adev->acp.acp_res[2].start; in acp_hw_init()
312 adev->acp.acp_cell[0].resources = &adev->acp.acp_res[0]; in acp_hw_init()
318 adev->acp.acp_cell[1].resources = &adev->acp.acp_res[1]; in acp_hw_init()
339 adev->acp.acp_res = kcalloc(5, sizeof(struct resource), GFP_KERNEL); in acp_hw_init()
340 if (!adev->acp.acp_res) { in acp_hw_init()
393 adev->acp.acp_res[0].name = "acp2x_dma"; in acp_hw_init()
394 adev->acp.acp_res[0].flags = IORESOURCE_MEM; in acp_hw_init()
395 adev->acp.acp_res[0].start = acp_base; in acp_hw_init()
396 adev->acp.acp_res[0].end = acp_base + ACP_DMA_REGS_END; in acp_hw_init()
398 adev->acp.acp_res[1].name = "acp2x_dw_i2s_play"; in acp_hw_init()
399 adev->acp.acp_res[1].flags = IORESOURCE_MEM; in acp_hw_init()
400 adev->acp.acp_res[1].start = acp_base + ACP_I2S_PLAY_REGS_START; in acp_hw_init()
401 adev->acp.acp_res[1].end = acp_base + ACP_I2S_PLAY_REGS_END; in acp_hw_init()
403 adev->acp.acp_res[2].name = "acp2x_dw_i2s_cap"; in acp_hw_init()
404 adev->acp.acp_res[2].flags = IORESOURCE_MEM; in acp_hw_init()
405 adev->acp.acp_res[2].start = acp_base + ACP_I2S_CAP_REGS_START; in acp_hw_init()
406 adev->acp.acp_res[2].end = acp_base + ACP_I2S_CAP_REGS_END; in acp_hw_init()
408 adev->acp.acp_res[3].name = "acp2x_dw_bt_i2s_play_cap"; in acp_hw_init()
409 adev->acp.acp_res[3].flags = IORESOURCE_MEM; in acp_hw_init()
410 adev->acp.acp_res[3].start = acp_base + ACP_BT_PLAY_REGS_START; in acp_hw_init()
411 adev->acp.acp_res[3].end = acp_base + ACP_BT_PLAY_REGS_END; in acp_hw_init()
413 adev->acp.acp_res[4].name = "acp2x_dma_irq"; in acp_hw_init()
414 adev->acp.acp_res[4].flags = IORESOURCE_IRQ; in acp_hw_init()
415 adev->acp.acp_res[4].start = amdgpu_irq_create_mapping(adev, 162); in acp_hw_init()
416 adev->acp.acp_res[4].end = adev->acp.acp_res[4].start; in acp_hw_init()
420 adev->acp.acp_cell[0].resources = &adev->acp.acp_res[0]; in acp_hw_init()
426 adev->acp.acp_cell[1].resources = &adev->acp.acp_res[1]; in acp_hw_init()
432 adev->acp.acp_cell[2].resources = &adev->acp.acp_res[2]; in acp_hw_init()
438 adev->acp.acp_cell[3].resources = &adev->acp.acp_res[3]; in acp_hw_init()
497 kfree(adev->acp.acp_res); in acp_hw_init()
561 kfree(adev->acp.acp_res); in acp_hw_fini()