Lines Matching refs:edma

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
1325 edma = kzalloc(struct_size(edma, channels, pdata->num_channels), 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()
1377 if (edma->m2m) { in ep93xx_dma_probe()
1381 edma->hw_setup = m2m_hw_setup; in ep93xx_dma_probe()
1382 edma->hw_shutdown = m2m_hw_shutdown; in ep93xx_dma_probe()
1383 edma->hw_submit = m2m_hw_submit; in ep93xx_dma_probe()
1384 edma->hw_interrupt = m2m_hw_interrupt; in ep93xx_dma_probe()
1388 edma->hw_synchronize = m2p_hw_synchronize; in ep93xx_dma_probe()
1389 edma->hw_setup = m2p_hw_setup; in ep93xx_dma_probe()
1390 edma->hw_shutdown = m2p_hw_shutdown; in ep93xx_dma_probe()
1391 edma->hw_submit = m2p_hw_submit; in ep93xx_dma_probe()
1392 edma->hw_interrupt = m2p_hw_interrupt; in ep93xx_dma_probe()
1397 for (i = 0; i < edma->num_channels; i++) { in ep93xx_dma_probe()
1398 struct ep93xx_dma_chan *edmac = &edma->channels[i]; in ep93xx_dma_probe()
1402 kfree(edma); in ep93xx_dma_probe()
1405 edma->m2m ? "M" : "P"); in ep93xx_dma_probe()