Lines Matching full:edma

166  * @edma: pointer to the engine device
195 const struct ep93xx_dma_engine *edma; member
801 edmac->edma->hw_submit(edmac); in ep93xx_dma_advance_work()
859 switch (edmac->edma->hw_interrupt(edmac)) { in ep93xx_dma_interrupt()
907 edmac->edma->hw_submit(edmac); in ep93xx_dma_tx_submit()
931 if (!edmac->edma->m2m) { in ep93xx_dma_alloc_chan_resources()
961 ret = edmac->edma->hw_setup(edmac); in ep93xx_dma_alloc_chan_resources()
1013 edmac->edma->hw_shutdown(edmac); in ep93xx_dma_free_chan_resources()
1095 if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { in ep93xx_dma_prep_slave_sg()
1176 if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { in ep93xx_dma_prep_dma_cyclic()
1246 if (edmac->edma->hw_synchronize) in ep93xx_dma_synchronize()
1247 edmac->edma->hw_synchronize(edmac); in ep93xx_dma_synchronize()
1266 edmac->edma->hw_shutdown(edmac); in ep93xx_dma_terminate_all()
1274 edmac->edma->hw_setup(edmac); in ep93xx_dma_terminate_all()
1302 if (!edmac->edma->m2m) in ep93xx_dma_slave_config_write()
1373 struct ep93xx_dma_engine *edma; in ep93xx_dma_of_probe() local
1382 edma = devm_kzalloc(dev, struct_size(edma, channels, data->num_channels), in ep93xx_dma_of_probe()
1384 if (!edma) in ep93xx_dma_of_probe()
1387 edma->m2m = data->id; in ep93xx_dma_of_probe()
1388 edma->num_channels = data->num_channels; in ep93xx_dma_of_probe()
1389 dma_dev = &edma->dma_dev; in ep93xx_dma_of_probe()
1392 for (i = 0; i < edma->num_channels; i++) { in ep93xx_dma_of_probe()
1393 struct ep93xx_dma_chan *edmac = &edma->channels[i]; in ep93xx_dma_of_probe()
1405 edmac->edma = edma; in ep93xx_dma_of_probe()
1407 if (edma->m2m) in ep93xx_dma_of_probe()
1431 return edma; in ep93xx_dma_of_probe()
1449 struct ep93xx_dma_engine *edma = ofdma->of_dma_data; in ep93xx_m2p_dma_of_xlate() local
1450 dma_cap_mask_t mask = edma->dma_dev.cap_mask; in ep93xx_m2p_dma_of_xlate()
1480 struct ep93xx_dma_engine *edma = ofdma->of_dma_data; in ep93xx_m2m_dma_of_xlate() local
1481 dma_cap_mask_t mask = edma->dma_dev.cap_mask; in ep93xx_m2m_dma_of_xlate()
1505 struct ep93xx_dma_engine *edma; in ep93xx_dma_probe() local
1509 edma = ep93xx_dma_of_probe(pdev); in ep93xx_dma_probe()
1510 if (IS_ERR(edma)) in ep93xx_dma_probe()
1511 return PTR_ERR(edma); in ep93xx_dma_probe()
1513 dma_dev = &edma->dma_dev; in ep93xx_dma_probe()
1532 if (edma->m2m) { in ep93xx_dma_probe()
1536 edma->hw_setup = m2m_hw_setup; in ep93xx_dma_probe()
1537 edma->hw_shutdown = m2m_hw_shutdown; in ep93xx_dma_probe()
1538 edma->hw_submit = m2m_hw_submit; in ep93xx_dma_probe()
1539 edma->hw_interrupt = m2m_hw_interrupt; in ep93xx_dma_probe()
1543 edma->hw_synchronize = m2p_hw_synchronize; in ep93xx_dma_probe()
1544 edma->hw_setup = m2p_hw_setup; in ep93xx_dma_probe()
1545 edma->hw_shutdown = m2p_hw_shutdown; in ep93xx_dma_probe()
1546 edma->hw_submit = m2p_hw_submit; in ep93xx_dma_probe()
1547 edma->hw_interrupt = m2p_hw_interrupt; in ep93xx_dma_probe()
1554 if (edma->m2m) { in ep93xx_dma_probe()
1556 edma); in ep93xx_dma_probe()
1559 edma); in ep93xx_dma_probe()
1564 dev_info(dma_dev->dev, "EP93xx M2%s DMA ready\n", edma->m2m ? "M" : "P"); in ep93xx_dma_probe()