Lines Matching refs:dma_dev

812 	struct dma_device *dma_dev;  in msgdma_probe()  local
860 dma_dev = &mdev->dmadev; in msgdma_probe()
863 dma_cap_zero(dma_dev->cap_mask); in msgdma_probe()
864 dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); in msgdma_probe()
865 dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); in msgdma_probe()
867 dma_dev->src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in msgdma_probe()
868 dma_dev->dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); in msgdma_probe()
869 dma_dev->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM) | in msgdma_probe()
871 dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; in msgdma_probe()
874 INIT_LIST_HEAD(&dma_dev->channels); in msgdma_probe()
877 dma_dev->device_tx_status = dma_cookie_status; in msgdma_probe()
878 dma_dev->device_issue_pending = msgdma_issue_pending; in msgdma_probe()
879 dma_dev->dev = &pdev->dev; in msgdma_probe()
881 dma_dev->copy_align = DMAENGINE_ALIGN_4_BYTES; in msgdma_probe()
882 dma_dev->device_prep_dma_memcpy = msgdma_prep_memcpy; in msgdma_probe()
883 dma_dev->device_prep_slave_sg = msgdma_prep_slave_sg; in msgdma_probe()
884 dma_dev->device_config = msgdma_dma_config; in msgdma_probe()
886 dma_dev->device_alloc_chan_resources = msgdma_alloc_chan_resources; in msgdma_probe()
887 dma_dev->device_free_chan_resources = msgdma_free_chan_resources; in msgdma_probe()
889 mdev->dmachan.device = dma_dev; in msgdma_probe()
890 list_add_tail(&mdev->dmachan.device_node, &dma_dev->channels); in msgdma_probe()
903 ret = dma_async_device_register(dma_dev); in msgdma_probe()
908 of_dma_xlate_by_chan_id, dma_dev); in msgdma_probe()