Lines Matching refs:dma_dev
133 struct dma_device dma_dev; member
182 return mdma->dma_dev.dev; in mdma2dev()
816 list_for_each_entry(chan, &mdma->dma_dev.channels, device_node) { in mdc_of_xlate()
912 dma_cap_zero(mdma->dma_dev.cap_mask); in mdc_dma_probe()
913 dma_cap_set(DMA_SLAVE, mdma->dma_dev.cap_mask); in mdc_dma_probe()
914 dma_cap_set(DMA_PRIVATE, mdma->dma_dev.cap_mask); in mdc_dma_probe()
915 dma_cap_set(DMA_CYCLIC, mdma->dma_dev.cap_mask); in mdc_dma_probe()
916 dma_cap_set(DMA_MEMCPY, mdma->dma_dev.cap_mask); in mdc_dma_probe()
946 mdma->dma_dev.dev = &pdev->dev; in mdc_dma_probe()
947 mdma->dma_dev.device_prep_slave_sg = mdc_prep_slave_sg; in mdc_dma_probe()
948 mdma->dma_dev.device_prep_dma_cyclic = mdc_prep_dma_cyclic; in mdc_dma_probe()
949 mdma->dma_dev.device_prep_dma_memcpy = mdc_prep_dma_memcpy; in mdc_dma_probe()
950 mdma->dma_dev.device_alloc_chan_resources = mdc_alloc_chan_resources; in mdc_dma_probe()
951 mdma->dma_dev.device_free_chan_resources = mdc_free_chan_resources; in mdc_dma_probe()
952 mdma->dma_dev.device_tx_status = mdc_tx_status; in mdc_dma_probe()
953 mdma->dma_dev.device_issue_pending = mdc_issue_pending; in mdc_dma_probe()
954 mdma->dma_dev.device_terminate_all = mdc_terminate_all; in mdc_dma_probe()
955 mdma->dma_dev.device_synchronize = mdc_synchronize; in mdc_dma_probe()
956 mdma->dma_dev.device_config = mdc_slave_config; in mdc_dma_probe()
958 mdma->dma_dev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in mdc_dma_probe()
959 mdma->dma_dev.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; in mdc_dma_probe()
961 mdma->dma_dev.src_addr_widths |= BIT(i); in mdc_dma_probe()
962 mdma->dma_dev.dst_addr_widths |= BIT(i); in mdc_dma_probe()
965 INIT_LIST_HEAD(&mdma->dma_dev.channels); in mdc_dma_probe()
982 vchan_init(&mchan->vc, &mdma->dma_dev); in mdc_dma_probe()
998 ret = dma_async_device_register(&mdma->dma_dev); in mdc_dma_probe()
1012 dma_async_device_unregister(&mdma->dma_dev); in mdc_dma_probe()
1026 dma_async_device_unregister(&mdma->dma_dev); in mdc_dma_remove()
1028 list_for_each_entry_safe(mchan, next, &mdma->dma_dev.channels, in mdc_dma_remove()