Lines Matching refs:dma_dev

141 	struct dma_device		dma_dev;  member
625 chan = dma_get_any_slave_channel(&tdma->dma_dev); in tegra_dma_of_xlate()
713 INIT_LIST_HEAD(&tdma->dma_dev.channels); in tegra_adma_probe()
725 vchan_init(&tdc->vc, &tdma->dma_dev); in tegra_adma_probe()
730 dma_cap_set(DMA_SLAVE, tdma->dma_dev.cap_mask); in tegra_adma_probe()
731 dma_cap_set(DMA_PRIVATE, tdma->dma_dev.cap_mask); in tegra_adma_probe()
732 dma_cap_set(DMA_CYCLIC, tdma->dma_dev.cap_mask); in tegra_adma_probe()
734 tdma->dma_dev.dev = &pdev->dev; in tegra_adma_probe()
735 tdma->dma_dev.device_alloc_chan_resources = in tegra_adma_probe()
737 tdma->dma_dev.device_free_chan_resources = in tegra_adma_probe()
739 tdma->dma_dev.device_issue_pending = tegra_adma_issue_pending; in tegra_adma_probe()
740 tdma->dma_dev.device_prep_dma_cyclic = tegra_adma_prep_dma_cyclic; in tegra_adma_probe()
741 tdma->dma_dev.device_config = tegra_adma_slave_config; in tegra_adma_probe()
742 tdma->dma_dev.device_tx_status = tegra_adma_tx_status; in tegra_adma_probe()
743 tdma->dma_dev.device_terminate_all = tegra_adma_terminate_all; in tegra_adma_probe()
744 tdma->dma_dev.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in tegra_adma_probe()
745 tdma->dma_dev.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in tegra_adma_probe()
746 tdma->dma_dev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in tegra_adma_probe()
747 tdma->dma_dev.residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; in tegra_adma_probe()
749 ret = dma_async_device_register(&tdma->dma_dev); in tegra_adma_probe()
770 dma_async_device_unregister(&tdma->dma_dev); in tegra_adma_probe()
789 dma_async_device_unregister(&tdma->dma_dev); in tegra_adma_remove()