Lines Matching refs:dma_dev
153 struct dma_device dma_dev; member
703 chan = dma_get_any_slave_channel(&tdma->dma_dev); in tegra_dma_of_xlate()
852 INIT_LIST_HEAD(&tdma->dma_dev.channels); in tegra_adma_probe()
865 vchan_init(&tdc->vc, &tdma->dma_dev); in tegra_adma_probe()
882 dma_cap_set(DMA_SLAVE, tdma->dma_dev.cap_mask); in tegra_adma_probe()
883 dma_cap_set(DMA_PRIVATE, tdma->dma_dev.cap_mask); in tegra_adma_probe()
884 dma_cap_set(DMA_CYCLIC, tdma->dma_dev.cap_mask); in tegra_adma_probe()
886 tdma->dma_dev.dev = &pdev->dev; in tegra_adma_probe()
887 tdma->dma_dev.device_alloc_chan_resources = in tegra_adma_probe()
889 tdma->dma_dev.device_free_chan_resources = in tegra_adma_probe()
891 tdma->dma_dev.device_issue_pending = tegra_adma_issue_pending; in tegra_adma_probe()
892 tdma->dma_dev.device_prep_dma_cyclic = tegra_adma_prep_dma_cyclic; in tegra_adma_probe()
893 tdma->dma_dev.device_config = tegra_adma_slave_config; in tegra_adma_probe()
894 tdma->dma_dev.device_tx_status = tegra_adma_tx_status; in tegra_adma_probe()
895 tdma->dma_dev.device_terminate_all = tegra_adma_terminate_all; in tegra_adma_probe()
896 tdma->dma_dev.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in tegra_adma_probe()
897 tdma->dma_dev.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in tegra_adma_probe()
898 tdma->dma_dev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in tegra_adma_probe()
899 tdma->dma_dev.residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; in tegra_adma_probe()
900 tdma->dma_dev.device_pause = tegra_adma_pause; in tegra_adma_probe()
901 tdma->dma_dev.device_resume = tegra_adma_resume; in tegra_adma_probe()
903 ret = dma_async_device_register(&tdma->dma_dev); in tegra_adma_probe()
924 dma_async_device_unregister(&tdma->dma_dev); in tegra_adma_probe()
942 dma_async_device_unregister(&tdma->dma_dev); in tegra_adma_remove()