Lines Matching refs:dma_dev
100 dev_err(chan->pdma->dma_dev.dev, in sf_pdma_prep_dma_memcpy()
250 dev_err(chan->pdma->dma_dev.dev, "NULL desc.\n"); in sf_pdma_xfer_desc()
442 INIT_LIST_HEAD(&pdma->dma_dev.channels); in sf_pdma_setup_chans()
473 vchan_init(&chan->vchan, &pdma->dma_dev); in sf_pdma_setup_chans()
514 pdma->dma_dev.dev = &pdev->dev; in sf_pdma_probe()
517 dma_cap_set(DMA_MEMCPY, pdma->dma_dev.cap_mask); in sf_pdma_probe()
518 pdma->dma_dev.copy_align = 2; in sf_pdma_probe()
519 pdma->dma_dev.src_addr_widths = widths; in sf_pdma_probe()
520 pdma->dma_dev.dst_addr_widths = widths; in sf_pdma_probe()
521 pdma->dma_dev.directions = BIT(DMA_MEM_TO_MEM); in sf_pdma_probe()
522 pdma->dma_dev.residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; in sf_pdma_probe()
523 pdma->dma_dev.descriptor_reuse = true; in sf_pdma_probe()
526 pdma->dma_dev.device_alloc_chan_resources = in sf_pdma_probe()
528 pdma->dma_dev.device_free_chan_resources = in sf_pdma_probe()
530 pdma->dma_dev.device_tx_status = sf_pdma_tx_status; in sf_pdma_probe()
531 pdma->dma_dev.device_prep_dma_memcpy = sf_pdma_prep_dma_memcpy; in sf_pdma_probe()
532 pdma->dma_dev.device_config = sf_pdma_slave_config; in sf_pdma_probe()
533 pdma->dma_dev.device_terminate_all = sf_pdma_terminate_all; in sf_pdma_probe()
534 pdma->dma_dev.device_issue_pending = sf_pdma_issue_pending; in sf_pdma_probe()
543 ret = dma_async_device_register(&pdma->dma_dev); in sf_pdma_probe()
570 dma_async_device_unregister(&pdma->dma_dev); in sf_pdma_remove()