Lines Matching refs:dmadev
131 static struct sa11x0_dma_dev *to_sa11x0_dma(struct dma_device *dmadev) in to_sa11x0_dma() argument
133 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
835 static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, in sa11x0_dma_init_dmadev() argument
840 INIT_LIST_HEAD(&dmadev->channels); in sa11x0_dma_init_dmadev()
841 dmadev->dev = dev; in sa11x0_dma_init_dmadev()
842 dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; in sa11x0_dma_init_dmadev()
843 dmadev->device_config = sa11x0_dma_device_config; in sa11x0_dma_init_dmadev()
844 dmadev->device_pause = sa11x0_dma_device_pause; in sa11x0_dma_init_dmadev()
845 dmadev->device_resume = sa11x0_dma_device_resume; in sa11x0_dma_init_dmadev()
846 dmadev->device_terminate_all = sa11x0_dma_device_terminate_all; in sa11x0_dma_init_dmadev()
847 dmadev->device_tx_status = sa11x0_dma_tx_status; in sa11x0_dma_init_dmadev()
848 dmadev->device_issue_pending = sa11x0_dma_issue_pending; in sa11x0_dma_init_dmadev()
865 vchan_init(&c->vc, dmadev); in sa11x0_dma_init_dmadev()
868 return dma_async_device_register(dmadev); in sa11x0_dma_init_dmadev()
890 static void sa11x0_dma_free_channels(struct dma_device *dmadev) in sa11x0_dma_free_channels() argument
894 list_for_each_entry_safe(c, cn, &dmadev->channels, vc.chan.device_node) { in sa11x0_dma_free_channels()