Lines Matching refs:rx_sgl
166 struct scatterlist *tx_sgl, *rx_sgl; member
613 if (mdata->rx_sgl) { in mtk_spi_setup_dma_addr()
662 mdata->rx_sgl = NULL; in mtk_spi_dma_transfer()
680 mdata->rx_sgl = xfer->rx_sg.sgl; in mtk_spi_dma_transfer()
686 if (mdata->rx_sgl) { in mtk_spi_dma_transfer()
687 xfer->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_dma_transfer()
688 mdata->rx_sgl_len = sg_dma_len(mdata->rx_sgl); in mtk_spi_dma_transfer()
799 if (mdata->rx_sgl) in mtk_spi_interrupt_thread()
809 if (mdata->rx_sgl && (mdata->rx_sgl_len == 0)) { in mtk_spi_interrupt_thread()
810 mdata->rx_sgl = sg_next(mdata->rx_sgl); in mtk_spi_interrupt_thread()
811 if (mdata->rx_sgl) { in mtk_spi_interrupt_thread()
812 xfer->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_interrupt_thread()
813 mdata->rx_sgl_len = sg_dma_len(mdata->rx_sgl); in mtk_spi_interrupt_thread()
817 if (!mdata->tx_sgl && !mdata->rx_sgl) { in mtk_spi_interrupt_thread()