Lines Matching refs:dma_dev
234 struct dma_device dma_dev; member
1374 struct dma_device *dma_dev; in ep93xx_dma_of_probe() local
1389 dma_dev = &edma->dma_dev; in ep93xx_dma_of_probe()
1391 INIT_LIST_HEAD(&dma_dev->channels); in ep93xx_dma_of_probe()
1396 edmac->chan.device = dma_dev; in ep93xx_dma_of_probe()
1428 &dma_dev->channels); in ep93xx_dma_of_probe()
1450 dma_cap_mask_t mask = edma->dma_dev.cap_mask; in ep93xx_m2p_dma_of_xlate()
1481 dma_cap_mask_t mask = edma->dma_dev.cap_mask; in ep93xx_m2m_dma_of_xlate()
1506 struct dma_device *dma_dev; in ep93xx_dma_probe() local
1513 dma_dev = &edma->dma_dev; in ep93xx_dma_probe()
1515 dma_cap_zero(dma_dev->cap_mask); in ep93xx_dma_probe()
1516 dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); in ep93xx_dma_probe()
1517 dma_cap_set(DMA_CYCLIC, dma_dev->cap_mask); in ep93xx_dma_probe()
1519 dma_dev->dev = &pdev->dev; in ep93xx_dma_probe()
1520 dma_dev->device_alloc_chan_resources = ep93xx_dma_alloc_chan_resources; in ep93xx_dma_probe()
1521 dma_dev->device_free_chan_resources = ep93xx_dma_free_chan_resources; in ep93xx_dma_probe()
1522 dma_dev->device_prep_slave_sg = ep93xx_dma_prep_slave_sg; in ep93xx_dma_probe()
1523 dma_dev->device_prep_dma_cyclic = ep93xx_dma_prep_dma_cyclic; in ep93xx_dma_probe()
1524 dma_dev->device_config = ep93xx_dma_slave_config; in ep93xx_dma_probe()
1525 dma_dev->device_synchronize = ep93xx_dma_synchronize; in ep93xx_dma_probe()
1526 dma_dev->device_terminate_all = ep93xx_dma_terminate_all; in ep93xx_dma_probe()
1527 dma_dev->device_issue_pending = ep93xx_dma_issue_pending; in ep93xx_dma_probe()
1528 dma_dev->device_tx_status = ep93xx_dma_tx_status; in ep93xx_dma_probe()
1530 dma_set_max_seg_size(dma_dev->dev, DMA_MAX_CHAN_BYTES); in ep93xx_dma_probe()
1533 dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); in ep93xx_dma_probe()
1534 dma_dev->device_prep_dma_memcpy = ep93xx_dma_prep_dma_memcpy; in ep93xx_dma_probe()
1541 dma_cap_set(DMA_PRIVATE, dma_dev->cap_mask); in ep93xx_dma_probe()
1550 ret = dma_async_device_register(dma_dev); in ep93xx_dma_probe()
1564 dev_info(dma_dev->dev, "EP93xx M2%s DMA ready\n", edma->m2m ? "M" : "P"); in ep93xx_dma_probe()
1569 dma_async_device_unregister(dma_dev); in ep93xx_dma_probe()