Lines Matching refs:dma_dev
217 struct dma_device dma_dev; member
1236 chan = dma_get_any_slave_channel(&tdma->dma_dev); in tegra_dma_of_xlate()
1376 INIT_LIST_HEAD(&tdma->dma_dev.channels); in tegra_dma_probe()
1400 tdc->dma_chan.device = &tdma->dma_dev; in tegra_dma_probe()
1403 &tdma->dma_dev.channels); in tegra_dma_probe()
1417 dma_cap_set(DMA_SLAVE, tdma->dma_dev.cap_mask); in tegra_dma_probe()
1418 dma_cap_set(DMA_PRIVATE, tdma->dma_dev.cap_mask); in tegra_dma_probe()
1419 dma_cap_set(DMA_CYCLIC, tdma->dma_dev.cap_mask); in tegra_dma_probe()
1421 tdma->dma_dev.dev = &pdev->dev; in tegra_dma_probe()
1422 tdma->dma_dev.device_alloc_chan_resources = in tegra_dma_probe()
1424 tdma->dma_dev.device_free_chan_resources = in tegra_dma_probe()
1426 tdma->dma_dev.device_prep_slave_sg = tegra_dma_prep_slave_sg; in tegra_dma_probe()
1427 tdma->dma_dev.device_prep_dma_cyclic = tegra_dma_prep_dma_cyclic; in tegra_dma_probe()
1428 tdma->dma_dev.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | in tegra_dma_probe()
1432 tdma->dma_dev.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | in tegra_dma_probe()
1436 tdma->dma_dev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in tegra_dma_probe()
1442 tdma->dma_dev.residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; in tegra_dma_probe()
1443 tdma->dma_dev.device_config = tegra_dma_slave_config; in tegra_dma_probe()
1444 tdma->dma_dev.device_terminate_all = tegra_dma_terminate_all; in tegra_dma_probe()
1445 tdma->dma_dev.device_tx_status = tegra_dma_tx_status; in tegra_dma_probe()
1446 tdma->dma_dev.device_issue_pending = tegra_dma_issue_pending; in tegra_dma_probe()
1448 ret = dma_async_device_register(&tdma->dma_dev); in tegra_dma_probe()
1468 dma_async_device_unregister(&tdma->dma_dev); in tegra_dma_probe()
1488 dma_async_device_unregister(&tdma->dma_dev); in tegra_dma_remove()