Lines Matching refs:res
463 struct resource *res; in asoc_mcpdm_probe() local
473 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dma"); in asoc_mcpdm_probe()
474 if (res == NULL) in asoc_mcpdm_probe()
477 mcpdm->dma_data[0].addr = res->start + MCPDM_REG_DN_DATA; in asoc_mcpdm_probe()
478 mcpdm->dma_data[1].addr = res->start + MCPDM_REG_UP_DATA; in asoc_mcpdm_probe()
480 res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "dn_link"); in asoc_mcpdm_probe()
481 if (!res) in asoc_mcpdm_probe()
484 mcpdm->dma_req[0] = res->start; in asoc_mcpdm_probe()
487 res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "up_link"); in asoc_mcpdm_probe()
488 if (!res) in asoc_mcpdm_probe()
491 mcpdm->dma_req[1] = res->start; in asoc_mcpdm_probe()
494 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu"); in asoc_mcpdm_probe()
495 if (res == NULL) in asoc_mcpdm_probe()
498 mcpdm->io_base = devm_ioremap_resource(&pdev->dev, res); in asoc_mcpdm_probe()