Lines Matching refs:dma_dev
93 dev_err(chan->pdma->dma_dev.dev, in sf_pdma_prep_dma_memcpy()
260 dev_err(chan->pdma->dma_dev.dev, "NULL desc.\n"); in sf_pdma_xfer_desc()
456 INIT_LIST_HEAD(&pdma->dma_dev.channels); in sf_pdma_setup_chans()
487 vchan_init(&chan->vchan, &pdma->dma_dev); in sf_pdma_setup_chans()
542 pdma->dma_dev.dev = &pdev->dev; in sf_pdma_probe()
545 dma_cap_set(DMA_MEMCPY, pdma->dma_dev.cap_mask); in sf_pdma_probe()
546 pdma->dma_dev.copy_align = 2; in sf_pdma_probe()
547 pdma->dma_dev.src_addr_widths = widths; in sf_pdma_probe()
548 pdma->dma_dev.dst_addr_widths = widths; in sf_pdma_probe()
549 pdma->dma_dev.directions = BIT(DMA_MEM_TO_MEM); in sf_pdma_probe()
550 pdma->dma_dev.residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; in sf_pdma_probe()
551 pdma->dma_dev.descriptor_reuse = true; in sf_pdma_probe()
554 pdma->dma_dev.device_alloc_chan_resources = in sf_pdma_probe()
556 pdma->dma_dev.device_free_chan_resources = in sf_pdma_probe()
558 pdma->dma_dev.device_tx_status = sf_pdma_tx_status; in sf_pdma_probe()
559 pdma->dma_dev.device_prep_dma_memcpy = sf_pdma_prep_dma_memcpy; in sf_pdma_probe()
560 pdma->dma_dev.device_config = sf_pdma_slave_config; in sf_pdma_probe()
561 pdma->dma_dev.device_terminate_all = sf_pdma_terminate_all; in sf_pdma_probe()
562 pdma->dma_dev.device_issue_pending = sf_pdma_issue_pending; in sf_pdma_probe()
571 ret = dma_async_device_register(&pdma->dma_dev); in sf_pdma_probe()
589 dma_async_device_unregister(&pdma->dma_dev); in sf_pdma_probe()
614 dma_async_device_unregister(&pdma->dma_dev); in sf_pdma_remove()