Lines Matching refs:dma_tx
602 dmaengine_terminate_async(ctlr->dma_tx); in bcm2835_spi_dma_rx_done()
674 chan = ctlr->dma_tx; in bcm2835_spi_prepare_sg()
795 dma_async_issue_pending(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma()
809 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_spi_transfer_one_dma()
855 if (ctlr->dma_tx) { in bcm2835_dma_release()
856 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_dma_release()
862 dma_unmap_page_attrs(ctlr->dma_tx->device->dev, in bcm2835_dma_release()
867 dma_release_channel(ctlr->dma_tx); in bcm2835_dma_release()
868 ctlr->dma_tx = NULL; in bcm2835_dma_release()
907 ctlr->dma_tx = dma_request_chan(dev, "tx"); in bcm2835_dma_init()
908 if (IS_ERR(ctlr->dma_tx)) { in bcm2835_dma_init()
910 ret = PTR_ERR(ctlr->dma_tx); in bcm2835_dma_init()
911 ctlr->dma_tx = NULL; in bcm2835_dma_init()
930 ret = dmaengine_slave_config(ctlr->dma_tx, &slave_config); in bcm2835_dma_init()
934 bs->fill_tx_addr = dma_map_page_attrs(ctlr->dma_tx->device->dev, in bcm2835_dma_init()
938 if (dma_mapping_error(ctlr->dma_tx->device->dev, bs->fill_tx_addr)) { in bcm2835_dma_init()
945 bs->fill_tx_desc = dmaengine_prep_dma_cyclic(ctlr->dma_tx, in bcm2835_dma_init()
1176 dmaengine_terminate_sync(ctlr->dma_tx); in bcm2835_spi_handle_err()