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