Lines Matching refs:dmadev
135 static struct sa11x0_dma_dev *to_sa11x0_dma(struct dma_device *dmadev) in to_sa11x0_dma() argument
137 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
826 static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, in sa11x0_dma_init_dmadev() argument
831 INIT_LIST_HEAD(&dmadev->channels); in sa11x0_dma_init_dmadev()
832 dmadev->dev = dev; in sa11x0_dma_init_dmadev()
833 dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; in sa11x0_dma_init_dmadev()
834 dmadev->device_config = sa11x0_dma_device_config; in sa11x0_dma_init_dmadev()
835 dmadev->device_pause = sa11x0_dma_device_pause; in sa11x0_dma_init_dmadev()
836 dmadev->device_resume = sa11x0_dma_device_resume; in sa11x0_dma_init_dmadev()
837 dmadev->device_terminate_all = sa11x0_dma_device_terminate_all; in sa11x0_dma_init_dmadev()
838 dmadev->device_tx_status = sa11x0_dma_tx_status; in sa11x0_dma_init_dmadev()
839 dmadev->device_issue_pending = sa11x0_dma_issue_pending; in sa11x0_dma_init_dmadev()
856 vchan_init(&c->vc, dmadev); in sa11x0_dma_init_dmadev()
859 return dma_async_device_register(dmadev); in sa11x0_dma_init_dmadev()
881 static void sa11x0_dma_free_channels(struct dma_device *dmadev) in sa11x0_dma_free_channels() argument
885 list_for_each_entry_safe(c, cn, &dmadev->channels, vc.chan.device_node) { in sa11x0_dma_free_channels()