Lines Matching refs:dma_dev
311 struct dma_device dma_dev[XGENE_DMA_MAX_CHANNEL]; member
1486 struct dma_device *dma_dev) in xgene_dma_set_caps() argument
1489 dma_cap_zero(dma_dev->cap_mask); in xgene_dma_set_caps()
1504 dma_cap_set(DMA_PQ, dma_dev->cap_mask); in xgene_dma_set_caps()
1505 dma_cap_set(DMA_XOR, dma_dev->cap_mask); in xgene_dma_set_caps()
1508 dma_cap_set(DMA_XOR, dma_dev->cap_mask); in xgene_dma_set_caps()
1512 dma_dev->dev = chan->dev; in xgene_dma_set_caps()
1513 dma_dev->device_alloc_chan_resources = xgene_dma_alloc_chan_resources; in xgene_dma_set_caps()
1514 dma_dev->device_free_chan_resources = xgene_dma_free_chan_resources; in xgene_dma_set_caps()
1515 dma_dev->device_issue_pending = xgene_dma_issue_pending; in xgene_dma_set_caps()
1516 dma_dev->device_tx_status = xgene_dma_tx_status; in xgene_dma_set_caps()
1518 if (dma_has_cap(DMA_XOR, dma_dev->cap_mask)) { in xgene_dma_set_caps()
1519 dma_dev->device_prep_dma_xor = xgene_dma_prep_xor; in xgene_dma_set_caps()
1520 dma_dev->max_xor = XGENE_DMA_MAX_XOR_SRC; in xgene_dma_set_caps()
1521 dma_dev->xor_align = DMAENGINE_ALIGN_64_BYTES; in xgene_dma_set_caps()
1524 if (dma_has_cap(DMA_PQ, dma_dev->cap_mask)) { in xgene_dma_set_caps()
1525 dma_dev->device_prep_dma_pq = xgene_dma_prep_pq; in xgene_dma_set_caps()
1526 dma_dev->max_pq = XGENE_DMA_MAX_XOR_SRC; in xgene_dma_set_caps()
1527 dma_dev->pq_align = DMAENGINE_ALIGN_64_BYTES; in xgene_dma_set_caps()
1534 struct dma_device *dma_dev = &pdma->dma_dev[id]; in xgene_dma_async_register() local
1537 chan->dma_chan.device = dma_dev; in xgene_dma_async_register()
1550 xgene_dma_set_caps(chan, dma_dev); in xgene_dma_async_register()
1553 INIT_LIST_HEAD(&dma_dev->channels); in xgene_dma_async_register()
1554 list_add_tail(&chan->dma_chan.device_node, &dma_dev->channels); in xgene_dma_async_register()
1557 ret = dma_async_device_register(dma_dev); in xgene_dma_async_register()
1568 dma_has_cap(DMA_XOR, dma_dev->cap_mask) ? "XOR " : "", in xgene_dma_async_register()
1569 dma_has_cap(DMA_PQ, dma_dev->cap_mask) ? "PQ " : ""); in xgene_dma_async_register()
1582 dma_async_device_unregister(&pdma->dma_dev[j]); in xgene_dma_init_async()
1598 dma_async_device_unregister(&pdma->dma_dev[i]); in xgene_dma_async_unregister()