Lines Matching refs:ecc

112 	struct edma_cc			*ecc;  member
220 echan->ecc->dummy_slot); in edma_execute()
957 static void __init edma_chan_init(struct edma_cc *ecc, in edma_chan_init() argument
965 echan->ch_num = EDMA_CTLR_CHAN(ecc->ctlr, i); in edma_chan_init()
966 echan->ecc = ecc; in edma_chan_init()
982 static void edma_dma_init(struct edma_cc *ecc, struct dma_device *dma, in edma_dma_init() argument
1015 struct edma_cc *ecc; in edma_probe() local
1022 ecc = devm_kzalloc(&pdev->dev, sizeof(*ecc), GFP_KERNEL); in edma_probe()
1023 if (!ecc) { in edma_probe()
1028 ecc->ctlr = pdev->id; in edma_probe()
1029 ecc->dummy_slot = edma_alloc_slot(ecc->ctlr, EDMA_SLOT_ANY); in edma_probe()
1030 if (ecc->dummy_slot < 0) { in edma_probe()
1032 return ecc->dummy_slot; in edma_probe()
1035 dma_cap_zero(ecc->dma_slave.cap_mask); in edma_probe()
1036 dma_cap_set(DMA_SLAVE, ecc->dma_slave.cap_mask); in edma_probe()
1037 dma_cap_set(DMA_CYCLIC, ecc->dma_slave.cap_mask); in edma_probe()
1038 dma_cap_set(DMA_MEMCPY, ecc->dma_slave.cap_mask); in edma_probe()
1040 edma_dma_init(ecc, &ecc->dma_slave, &pdev->dev); in edma_probe()
1042 edma_chan_init(ecc, &ecc->dma_slave, ecc->slave_chans); in edma_probe()
1044 ret = dma_async_device_register(&ecc->dma_slave); in edma_probe()
1048 platform_set_drvdata(pdev, ecc); in edma_probe()
1055 edma_free_slot(ecc->dummy_slot); in edma_probe()
1062 struct edma_cc *ecc = dev_get_drvdata(dev); in edma_remove() local
1064 dma_async_device_unregister(&ecc->dma_slave); in edma_remove()
1065 edma_free_slot(ecc->dummy_slot); in edma_remove()