Lines Matching defs:rx_sgl
283 struct scatterlist rx_sgl, tx_sgl[2];
1084 count = sport->rx_sgl.length - ring->tail;
1183 dma_sync_sg_for_cpu(chan->device->dev, &sport->rx_sgl, 1,
1193 ring->head = sport->rx_sgl.length - state.residue;
1194 BUG_ON(ring->head > sport->rx_sgl.length);
1207 * 0 <= ring->head <= sport->rx_sgl.length
1210 * 0 <= ring->tail <= sport->rx_sgl.length - 1
1217 count = sport->rx_sgl.length - ring->tail;
1235 if (ring->head >= sport->rx_sgl.length)
1244 dma_sync_sg_for_device(chan->device->dev, &sport->rx_sgl, 1,
1275 ring->head = sport->rx_sgl.length - state.residue;
1276 count = CIRC_CNT(ring->head, ring->tail, sport->rx_sgl.length);
1328 ring->head = sport->rx_sgl.length - state.residue;
1329 count = CIRC_CNT(ring->head, ring->tail, sport->rx_sgl.length);
1380 sg_init_one(&sport->rx_sgl, ring->buf, sport->rx_dma_rng_buf_len);
1381 nent = dma_map_sg(chan->device->dev, &sport->rx_sgl, 1,
1402 sg_dma_address(&sport->rx_sgl),
1403 sport->rx_sgl.length,
1404 sport->rx_sgl.length / 2,
1445 dma_unmap_sg(chan->device->dev, &sport->rx_sgl, 1, DMA_FROM_DEVICE);