Lines Matching refs:rx_chan
29 struct dma_chan *rx_chan; member
78 struct dma_chan *rx_chan = priv->rx_chan; in am654_hbmc_dma_read() local
84 if (!priv->rx_chan || !virt_addr_valid(to) || object_is_on_stack(to)) in am654_hbmc_dma_read()
87 dma_dst = dma_map_single(rx_chan->device->dev, to, len, DMA_FROM_DEVICE); in am654_hbmc_dma_read()
88 if (dma_mapping_error(rx_chan->device->dev, dma_dst)) { in am654_hbmc_dma_read()
94 tx = dmaengine_prep_dma_memcpy(rx_chan, dma_dst, dma_src, len, flags); in am654_hbmc_dma_read()
112 dma_async_issue_pending(rx_chan); in am654_hbmc_dma_read()
114 dmaengine_terminate_sync(rx_chan); in am654_hbmc_dma_read()
120 dma_unmap_single(rx_chan->device->dev, dma_dst, len, DMA_FROM_DEVICE); in am654_hbmc_dma_read()
140 struct dma_chan *rx_chan; in am654_hbmc_request_mmap_dma() local
146 rx_chan = dma_request_chan_by_mask(&mask); in am654_hbmc_request_mmap_dma()
147 if (IS_ERR(rx_chan)) { in am654_hbmc_request_mmap_dma()
148 if (PTR_ERR(rx_chan) == -EPROBE_DEFER) in am654_hbmc_request_mmap_dma()
153 priv->rx_chan = rx_chan; in am654_hbmc_request_mmap_dma()
224 if (dev_priv->rx_chan) in am654_hbmc_probe()
225 dma_release_channel(dev_priv->rx_chan); in am654_hbmc_probe()
242 if (dev_priv->rx_chan) in am654_hbmc_remove()
243 dma_release_channel(dev_priv->rx_chan); in am654_hbmc_remove()