Lines Matching refs:dma_channels
123 int dma_channels; member
223 if (i >= pdev->dma_channels) in mmp_pdma_int_handler()
255 for (prio = 0; prio <= ((pdev->dma_channels - 1) & 0xf) >> 2; prio++) { in lookup_phy()
256 for (i = 0; i < pdev->dma_channels; i++) { in lookup_phy()
944 for (i = 0; i < pdev->dma_channels; i++) { in mmp_pdma_remove()
949 if (irq_num != pdev->dma_channels) { in mmp_pdma_remove()
953 for (i = 0; i < pdev->dma_channels; i++) { in mmp_pdma_remove()
1026 int dma_channels = 0, irq_num = 0; in mmp_pdma_probe() local
1047 &dma_channels)) in mmp_pdma_probe()
1049 &dma_channels); in mmp_pdma_probe()
1050 } else if (pdata && pdata->dma_channels) { in mmp_pdma_probe()
1051 dma_channels = pdata->dma_channels; in mmp_pdma_probe()
1053 dma_channels = 32; /* default 32 channel */ in mmp_pdma_probe()
1055 pdev->dma_channels = dma_channels; in mmp_pdma_probe()
1057 for (i = 0; i < dma_channels; i++) { in mmp_pdma_probe()
1062 pdev->phy = devm_kcalloc(pdev->dev, dma_channels, sizeof(*pdev->phy), in mmp_pdma_probe()
1069 if (irq_num != dma_channels) { in mmp_pdma_probe()
1078 for (i = 0; i < dma_channels; i++) { in mmp_pdma_probe()
1079 irq = (irq_num != dma_channels) ? 0 : platform_get_irq(op, i); in mmp_pdma_probe()
1128 dev_info(pdev->device.dev, "initialized %d channels\n", dma_channels); in mmp_pdma_probe()