Lines Matching refs:tx_sgl
165 struct scatterlist *tx_sgl, *rx_sgl; member
602 if (mdata->tx_sgl) { in mtk_spi_setup_dma_addr()
660 mdata->tx_sgl = NULL; in mtk_spi_dma_transfer()
677 mdata->tx_sgl = xfer->tx_sg.sgl; in mtk_spi_dma_transfer()
681 if (mdata->tx_sgl) { in mtk_spi_dma_transfer()
682 xfer->tx_dma = sg_dma_address(mdata->tx_sgl); in mtk_spi_dma_transfer()
683 mdata->tx_sgl_len = sg_dma_len(mdata->tx_sgl); in mtk_spi_dma_transfer()
808 if (mdata->tx_sgl) in mtk_spi_interrupt()
813 if (mdata->tx_sgl && (mdata->tx_sgl_len == 0)) { in mtk_spi_interrupt()
814 mdata->tx_sgl = sg_next(mdata->tx_sgl); in mtk_spi_interrupt()
815 if (mdata->tx_sgl) { in mtk_spi_interrupt()
816 trans->tx_dma = sg_dma_address(mdata->tx_sgl); in mtk_spi_interrupt()
817 mdata->tx_sgl_len = sg_dma_len(mdata->tx_sgl); in mtk_spi_interrupt()
828 if (!mdata->tx_sgl && !mdata->rx_sgl) { in mtk_spi_interrupt()