Lines Matching refs:dma_xfer
180 } *dma_xfer; in mxs_spi_txrx_dma() local
185 dma_xfer = kcalloc(sgs, sizeof(*dma_xfer), GFP_KERNEL); in mxs_spi_txrx_dma()
186 if (!dma_xfer) in mxs_spi_txrx_dma()
217 dma_xfer[sg_count].pio[0] = ctrl0; in mxs_spi_txrx_dma()
218 dma_xfer[sg_count].pio[3] = min; in mxs_spi_txrx_dma()
227 sg_init_table(&dma_xfer[sg_count].sg, 1); in mxs_spi_txrx_dma()
228 sg_set_page(&dma_xfer[sg_count].sg, vm_page, in mxs_spi_txrx_dma()
231 sg_init_one(&dma_xfer[sg_count].sg, buf, min); in mxs_spi_txrx_dma()
234 ret = dma_map_sg(ssp->dev, &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma()
242 (struct scatterlist *)dma_xfer[sg_count].pio, in mxs_spi_txrx_dma()
254 &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma()
290 dma_unmap_sg(ssp->dev, &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma()
294 kfree(dma_xfer); in mxs_spi_txrx_dma()