Lines Matching refs:edma

165 	const struct ep93xx_dma_engine	*edma;  member
742 edmac->edma->hw_submit(edmac); in ep93xx_dma_advance_work()
800 switch (edmac->edma->hw_interrupt(edmac)) { in ep93xx_dma_interrupt()
848 edmac->edma->hw_submit(edmac); in ep93xx_dma_tx_submit()
873 if (!edmac->edma->m2m) { in ep93xx_dma_alloc_chan_resources()
908 ret = edmac->edma->hw_setup(edmac); in ep93xx_dma_alloc_chan_resources()
960 edmac->edma->hw_shutdown(edmac); in ep93xx_dma_free_chan_resources()
1042 if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { in ep93xx_dma_prep_slave_sg()
1123 if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { in ep93xx_dma_prep_dma_cyclic()
1193 if (edmac->edma->hw_synchronize) in ep93xx_dma_synchronize()
1194 edmac->edma->hw_synchronize(edmac); in ep93xx_dma_synchronize()
1213 edmac->edma->hw_shutdown(edmac); in ep93xx_dma_terminate_all()
1221 edmac->edma->hw_setup(edmac); in ep93xx_dma_terminate_all()
1249 if (!edmac->edma->m2m) in ep93xx_dma_slave_config_write()
1319 struct ep93xx_dma_engine *edma; in ep93xx_dma_probe() local
1325 edma = kzalloc(sizeof(*edma) + edma_size, GFP_KERNEL); in ep93xx_dma_probe()
1326 if (!edma) in ep93xx_dma_probe()
1329 dma_dev = &edma->dma_dev; in ep93xx_dma_probe()
1330 edma->m2m = platform_get_device_id(pdev)->driver_data; in ep93xx_dma_probe()
1331 edma->num_channels = pdata->num_channels; in ep93xx_dma_probe()
1336 struct ep93xx_dma_chan *edmac = &edma->channels[i]; in ep93xx_dma_probe()
1341 edmac->edma = edma; in ep93xx_dma_probe()
1378 if (edma->m2m) { in ep93xx_dma_probe()
1382 edma->hw_setup = m2m_hw_setup; in ep93xx_dma_probe()
1383 edma->hw_shutdown = m2m_hw_shutdown; in ep93xx_dma_probe()
1384 edma->hw_submit = m2m_hw_submit; in ep93xx_dma_probe()
1385 edma->hw_interrupt = m2m_hw_interrupt; in ep93xx_dma_probe()
1389 edma->hw_synchronize = m2p_hw_synchronize; in ep93xx_dma_probe()
1390 edma->hw_setup = m2p_hw_setup; in ep93xx_dma_probe()
1391 edma->hw_shutdown = m2p_hw_shutdown; in ep93xx_dma_probe()
1392 edma->hw_submit = m2p_hw_submit; in ep93xx_dma_probe()
1393 edma->hw_interrupt = m2p_hw_interrupt; in ep93xx_dma_probe()
1398 for (i = 0; i < edma->num_channels; i++) { in ep93xx_dma_probe()
1399 struct ep93xx_dma_chan *edmac = &edma->channels[i]; in ep93xx_dma_probe()
1403 kfree(edma); in ep93xx_dma_probe()
1406 edma->m2m ? "M" : "P"); in ep93xx_dma_probe()