Lines Matching refs:dma_dev
90 dev_err(chan->pdma->dma_dev.dev, in sf_pdma_prep_dma_memcpy()
257 dev_err(chan->pdma->dma_dev.dev, "NULL desc.\n"); in sf_pdma_xfer_desc()
453 INIT_LIST_HEAD(&pdma->dma_dev.channels); in sf_pdma_setup_chans()
484 vchan_init(&chan->vchan, &pdma->dma_dev); in sf_pdma_setup_chans()
530 pdma->dma_dev.dev = &pdev->dev; in sf_pdma_probe()
533 dma_cap_set(DMA_MEMCPY, pdma->dma_dev.cap_mask); in sf_pdma_probe()
534 pdma->dma_dev.copy_align = 2; in sf_pdma_probe()
535 pdma->dma_dev.src_addr_widths = widths; in sf_pdma_probe()
536 pdma->dma_dev.dst_addr_widths = widths; in sf_pdma_probe()
537 pdma->dma_dev.directions = BIT(DMA_MEM_TO_MEM); in sf_pdma_probe()
538 pdma->dma_dev.residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; in sf_pdma_probe()
539 pdma->dma_dev.descriptor_reuse = true; in sf_pdma_probe()
542 pdma->dma_dev.device_alloc_chan_resources = in sf_pdma_probe()
544 pdma->dma_dev.device_free_chan_resources = in sf_pdma_probe()
546 pdma->dma_dev.device_tx_status = sf_pdma_tx_status; in sf_pdma_probe()
547 pdma->dma_dev.device_prep_dma_memcpy = sf_pdma_prep_dma_memcpy; in sf_pdma_probe()
548 pdma->dma_dev.device_config = sf_pdma_slave_config; in sf_pdma_probe()
549 pdma->dma_dev.device_terminate_all = sf_pdma_terminate_all; in sf_pdma_probe()
550 pdma->dma_dev.device_issue_pending = sf_pdma_issue_pending; in sf_pdma_probe()
559 ret = dma_async_device_register(&pdma->dma_dev); in sf_pdma_probe()
586 dma_async_device_unregister(&pdma->dma_dev); in sf_pdma_remove()