Lines Matching full:edma
135 * @edma: pointer to the engine device
166 const struct ep93xx_dma_engine *edma; member
744 edmac->edma->hw_submit(edmac); in ep93xx_dma_advance_work()
802 switch (edmac->edma->hw_interrupt(edmac)) { in ep93xx_dma_interrupt()
850 edmac->edma->hw_submit(edmac); in ep93xx_dma_tx_submit()
875 if (!edmac->edma->m2m) { in ep93xx_dma_alloc_chan_resources()
910 ret = edmac->edma->hw_setup(edmac); in ep93xx_dma_alloc_chan_resources()
962 edmac->edma->hw_shutdown(edmac); in ep93xx_dma_free_chan_resources()
1044 if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { in ep93xx_dma_prep_slave_sg()
1125 if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { in ep93xx_dma_prep_dma_cyclic()
1195 if (edmac->edma->hw_synchronize) in ep93xx_dma_synchronize()
1196 edmac->edma->hw_synchronize(edmac); in ep93xx_dma_synchronize()
1215 edmac->edma->hw_shutdown(edmac); in ep93xx_dma_terminate_all()
1223 edmac->edma->hw_setup(edmac); in ep93xx_dma_terminate_all()
1251 if (!edmac->edma->m2m) in ep93xx_dma_slave_config_write()
1321 struct ep93xx_dma_engine *edma; in ep93xx_dma_probe() local
1327 edma = kzalloc(sizeof(*edma) + edma_size, GFP_KERNEL); in ep93xx_dma_probe()
1328 if (!edma) in ep93xx_dma_probe()
1331 dma_dev = &edma->dma_dev; in ep93xx_dma_probe()
1332 edma->m2m = platform_get_device_id(pdev)->driver_data; in ep93xx_dma_probe()
1333 edma->num_channels = pdata->num_channels; in ep93xx_dma_probe()
1338 struct ep93xx_dma_chan *edmac = &edma->channels[i]; in ep93xx_dma_probe()
1343 edmac->edma = edma; in ep93xx_dma_probe()
1379 if (edma->m2m) { in ep93xx_dma_probe()
1383 edma->hw_setup = m2m_hw_setup; in ep93xx_dma_probe()
1384 edma->hw_shutdown = m2m_hw_shutdown; in ep93xx_dma_probe()
1385 edma->hw_submit = m2m_hw_submit; in ep93xx_dma_probe()
1386 edma->hw_interrupt = m2m_hw_interrupt; in ep93xx_dma_probe()
1390 edma->hw_synchronize = m2p_hw_synchronize; in ep93xx_dma_probe()
1391 edma->hw_setup = m2p_hw_setup; in ep93xx_dma_probe()
1392 edma->hw_shutdown = m2p_hw_shutdown; in ep93xx_dma_probe()
1393 edma->hw_submit = m2p_hw_submit; in ep93xx_dma_probe()
1394 edma->hw_interrupt = m2p_hw_interrupt; in ep93xx_dma_probe()
1399 for (i = 0; i < edma->num_channels; i++) { in ep93xx_dma_probe()
1400 struct ep93xx_dma_chan *edmac = &edma->channels[i]; in ep93xx_dma_probe()
1404 kfree(edma); in ep93xx_dma_probe()
1407 edma->m2m ? "M" : "P"); in ep93xx_dma_probe()