Lines Matching refs:dma_tx
604 dmaengine_terminate_async(ctlr->dma_tx); in bcm2835_spi_dma_rx_done()
676 chan = ctlr->dma_tx; in bcm2835_spi_prepare_sg()
797 dma_async_issue_pending(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma()
811 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma()
857 if (ctlr->dma_tx) { in bcm2835_dma_release()
858 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_dma_release()
864 dma_unmap_page_attrs(ctlr->dma_tx->device->dev, in bcm2835_dma_release()
869 dma_release_channel(ctlr->dma_tx); in bcm2835_dma_release()
870 ctlr->dma_tx = NULL; in bcm2835_dma_release()
909 ctlr->dma_tx = dma_request_chan(dev, "tx"); in bcm2835_dma_init()
910 if (IS_ERR(ctlr->dma_tx)) { in bcm2835_dma_init()
912 ret = PTR_ERR(ctlr->dma_tx); in bcm2835_dma_init()
913 ctlr->dma_tx = NULL; in bcm2835_dma_init()
932 ret = dmaengine_slave_config(ctlr->dma_tx, &slave_config); in bcm2835_dma_init()
936 bs->fill_tx_addr = dma_map_page_attrs(ctlr->dma_tx->device->dev, in bcm2835_dma_init()
940 if (dma_mapping_error(ctlr->dma_tx->device->dev, bs->fill_tx_addr)) { in bcm2835_dma_init()
947 bs->fill_tx_desc = dmaengine_prep_dma_cyclic(ctlr->dma_tx, in bcm2835_dma_init()
1177 if (ctlr->dma_tx) { in bcm2835_spi_handle_err()
1178 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_spi_handle_err()