Lines Matching refs:dma_xfer
179 } *dma_xfer; in mxs_spi_txrx_dma() local
184 dma_xfer = kcalloc(sgs, sizeof(*dma_xfer), GFP_KERNEL); in mxs_spi_txrx_dma()
185 if (!dma_xfer) in mxs_spi_txrx_dma()
216 dma_xfer[sg_count].pio[0] = ctrl0; in mxs_spi_txrx_dma()
217 dma_xfer[sg_count].pio[3] = min; in mxs_spi_txrx_dma()
226 sg_init_table(&dma_xfer[sg_count].sg, 1); in mxs_spi_txrx_dma()
227 sg_set_page(&dma_xfer[sg_count].sg, vm_page, in mxs_spi_txrx_dma()
230 sg_init_one(&dma_xfer[sg_count].sg, buf, min); in mxs_spi_txrx_dma()
233 ret = dma_map_sg(ssp->dev, &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma()
241 (struct scatterlist *)dma_xfer[sg_count].pio, in mxs_spi_txrx_dma()
253 &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma()
289 dma_unmap_sg(ssp->dev, &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma()
293 kfree(dma_xfer); in mxs_spi_txrx_dma()