Lines Matching refs:dma_device
178 if (fdev->dma_device.dev->of_node != dma_spec->np) in st_fdma_of_xlate()
187 chan = dma_get_any_slave_channel(&fdev->dma_device); in st_fdma_of_xlate()
787 INIT_LIST_HEAD(&fdev->dma_device.channels); in st_fdma_probe()
793 vchan_init(&fchan->vchan, &fdev->dma_device); in st_fdma_probe()
799 dma_cap_set(DMA_SLAVE, fdev->dma_device.cap_mask); in st_fdma_probe()
800 dma_cap_set(DMA_CYCLIC, fdev->dma_device.cap_mask); in st_fdma_probe()
801 dma_cap_set(DMA_MEMCPY, fdev->dma_device.cap_mask); in st_fdma_probe()
803 fdev->dma_device.dev = &pdev->dev; in st_fdma_probe()
804 fdev->dma_device.device_alloc_chan_resources = st_fdma_alloc_chan_res; in st_fdma_probe()
805 fdev->dma_device.device_free_chan_resources = st_fdma_free_chan_res; in st_fdma_probe()
806 fdev->dma_device.device_prep_dma_cyclic = st_fdma_prep_dma_cyclic; in st_fdma_probe()
807 fdev->dma_device.device_prep_slave_sg = st_fdma_prep_slave_sg; in st_fdma_probe()
808 fdev->dma_device.device_prep_dma_memcpy = st_fdma_prep_dma_memcpy; in st_fdma_probe()
809 fdev->dma_device.device_tx_status = st_fdma_tx_status; in st_fdma_probe()
810 fdev->dma_device.device_issue_pending = st_fdma_issue_pending; in st_fdma_probe()
811 fdev->dma_device.device_terminate_all = st_fdma_terminate_all; in st_fdma_probe()
812 fdev->dma_device.device_config = st_fdma_slave_config; in st_fdma_probe()
813 fdev->dma_device.device_pause = st_fdma_pause; in st_fdma_probe()
814 fdev->dma_device.device_resume = st_fdma_resume; in st_fdma_probe()
816 fdev->dma_device.src_addr_widths = FDMA_DMA_BUSWIDTHS; in st_fdma_probe()
817 fdev->dma_device.dst_addr_widths = FDMA_DMA_BUSWIDTHS; in st_fdma_probe()
818 fdev->dma_device.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); in st_fdma_probe()
819 fdev->dma_device.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; in st_fdma_probe()
821 ret = dmaenginem_async_device_register(&fdev->dma_device); in st_fdma_probe()