Lines Matching refs:edma
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()
960 ret = edmac->edma->hw_setup(edmac); in ep93xx_dma_alloc_chan_resources()
1012 edmac->edma->hw_shutdown(edmac); in ep93xx_dma_free_chan_resources()
1094 if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { in ep93xx_dma_prep_slave_sg()
1175 if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { in ep93xx_dma_prep_dma_cyclic()
1245 if (edmac->edma->hw_synchronize) in ep93xx_dma_synchronize()
1246 edmac->edma->hw_synchronize(edmac); in ep93xx_dma_synchronize()
1265 edmac->edma->hw_shutdown(edmac); in ep93xx_dma_terminate_all()
1273 edmac->edma->hw_setup(edmac); in ep93xx_dma_terminate_all()
1301 if (!edmac->edma->m2m) in ep93xx_dma_slave_config_write()
1372 struct ep93xx_dma_engine *edma; in ep93xx_dma_of_probe() local
1381 edma = devm_kzalloc(dev, struct_size(edma, channels, data->num_channels), in ep93xx_dma_of_probe()
1383 if (!edma) in ep93xx_dma_of_probe()
1386 edma->m2m = data->id; in ep93xx_dma_of_probe()
1387 edma->num_channels = data->num_channels; in ep93xx_dma_of_probe()
1388 dma_dev = &edma->dma_dev; in ep93xx_dma_of_probe()
1391 for (i = 0; i < edma->num_channels; i++) { in ep93xx_dma_of_probe()
1392 struct ep93xx_dma_chan *edmac = &edma->channels[i]; in ep93xx_dma_of_probe()
1404 edmac->edma = edma; in ep93xx_dma_of_probe()
1406 if (edma->m2m) in ep93xx_dma_of_probe()
1430 return edma; in ep93xx_dma_of_probe()
1448 struct ep93xx_dma_engine *edma = ofdma->of_dma_data; in ep93xx_m2p_dma_of_xlate() local
1449 dma_cap_mask_t mask = edma->dma_dev.cap_mask; in ep93xx_m2p_dma_of_xlate()
1479 struct ep93xx_dma_engine *edma = ofdma->of_dma_data; in ep93xx_m2m_dma_of_xlate() local
1480 dma_cap_mask_t mask = edma->dma_dev.cap_mask; in ep93xx_m2m_dma_of_xlate()
1504 struct ep93xx_dma_engine *edma; in ep93xx_dma_probe() local
1508 edma = ep93xx_dma_of_probe(pdev); in ep93xx_dma_probe()
1509 if (IS_ERR(edma)) in ep93xx_dma_probe()
1510 return PTR_ERR(edma); in ep93xx_dma_probe()
1512 dma_dev = &edma->dma_dev; in ep93xx_dma_probe()
1531 if (edma->m2m) { in ep93xx_dma_probe()
1535 edma->hw_setup = m2m_hw_setup; in ep93xx_dma_probe()
1536 edma->hw_shutdown = m2m_hw_shutdown; in ep93xx_dma_probe()
1537 edma->hw_submit = m2m_hw_submit; in ep93xx_dma_probe()
1538 edma->hw_interrupt = m2m_hw_interrupt; in ep93xx_dma_probe()
1542 edma->hw_synchronize = m2p_hw_synchronize; in ep93xx_dma_probe()
1543 edma->hw_setup = m2p_hw_setup; in ep93xx_dma_probe()
1544 edma->hw_shutdown = m2p_hw_shutdown; in ep93xx_dma_probe()
1545 edma->hw_submit = m2p_hw_submit; in ep93xx_dma_probe()
1546 edma->hw_interrupt = m2p_hw_interrupt; in ep93xx_dma_probe()
1553 if (edma->m2m) { in ep93xx_dma_probe()
1555 edma); in ep93xx_dma_probe()
1558 edma); in ep93xx_dma_probe()
1563 dev_info(dma_dev->dev, "EP93xx M2%s DMA ready\n", edma->m2m ? "M" : "P"); in ep93xx_dma_probe()