Lines Matching refs:dma_dev

151 	struct dma_device		dma_dev;  member
722 chan = dma_get_any_slave_channel(&tdma->dma_dev); in tegra_dma_of_xlate()
895 INIT_LIST_HEAD(&tdma->dma_dev.channels); in tegra_adma_probe()
912 vchan_init(&tdc->vc, &tdma->dma_dev); in tegra_adma_probe()
927 dma_cap_set(DMA_SLAVE, tdma->dma_dev.cap_mask); in tegra_adma_probe()
928 dma_cap_set(DMA_PRIVATE, tdma->dma_dev.cap_mask); in tegra_adma_probe()
929 dma_cap_set(DMA_CYCLIC, tdma->dma_dev.cap_mask); in tegra_adma_probe()
931 tdma->dma_dev.dev = &pdev->dev; in tegra_adma_probe()
932 tdma->dma_dev.device_alloc_chan_resources = in tegra_adma_probe()
934 tdma->dma_dev.device_free_chan_resources = in tegra_adma_probe()
936 tdma->dma_dev.device_issue_pending = tegra_adma_issue_pending; in tegra_adma_probe()
937 tdma->dma_dev.device_prep_dma_cyclic = tegra_adma_prep_dma_cyclic; in tegra_adma_probe()
938 tdma->dma_dev.device_config = tegra_adma_slave_config; in tegra_adma_probe()
939 tdma->dma_dev.device_tx_status = tegra_adma_tx_status; in tegra_adma_probe()
940 tdma->dma_dev.device_terminate_all = tegra_adma_terminate_all; in tegra_adma_probe()
941 tdma->dma_dev.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in tegra_adma_probe()
942 tdma->dma_dev.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in tegra_adma_probe()
943 tdma->dma_dev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in tegra_adma_probe()
944 tdma->dma_dev.residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; in tegra_adma_probe()
945 tdma->dma_dev.device_pause = tegra_adma_pause; in tegra_adma_probe()
946 tdma->dma_dev.device_resume = tegra_adma_resume; in tegra_adma_probe()
948 ret = dma_async_device_register(&tdma->dma_dev); in tegra_adma_probe()
969 dma_async_device_unregister(&tdma->dma_dev); in tegra_adma_probe()
987 dma_async_device_unregister(&tdma->dma_dev); in tegra_adma_remove()