• Home
  • Raw
  • Download

Lines Matching refs:delta

1167 	int page, p, pp, delta, i;  in vortex_adbdma_bufshift()  local
1173 delta = (page - dma->period_real) & 3; in vortex_adbdma_bufshift()
1175 delta = (page - dma->period_real); in vortex_adbdma_bufshift()
1176 if (delta < 0) in vortex_adbdma_bufshift()
1177 delta += dma->nr_periods; in vortex_adbdma_bufshift()
1179 if (delta == 0) in vortex_adbdma_bufshift()
1184 for (i = 0; i < delta; i++) { in vortex_adbdma_bufshift()
1203 dma->period_virt += delta; in vortex_adbdma_bufshift()
1207 if (delta != 1) in vortex_adbdma_bufshift()
1210 adbdma, dma->period_virt, dma->period_real, delta); in vortex_adbdma_bufshift()
1212 return delta; in vortex_adbdma_bufshift()
1248 int temp, page, delta; in vortex_adbdma_getlinearpos() local
1253 delta = (page - dma->period_real) & 3; in vortex_adbdma_getlinearpos()
1255 delta = (page - dma->period_real); in vortex_adbdma_getlinearpos()
1256 if (delta < 0) in vortex_adbdma_getlinearpos()
1257 delta += dma->nr_periods; in vortex_adbdma_getlinearpos()
1259 return (dma->period_virt + delta) * dma->period_bytes in vortex_adbdma_getlinearpos()
1438 int page, p, pp, delta, i; in vortex_wtdma_bufshift() local
1444 delta = (page - dma->period_real) & 3; in vortex_wtdma_bufshift()
1446 delta = (page - dma->period_real); in vortex_wtdma_bufshift()
1447 if (delta < 0) in vortex_wtdma_bufshift()
1448 delta += dma->nr_periods; in vortex_wtdma_bufshift()
1450 if (delta == 0) in vortex_wtdma_bufshift()
1455 for (i = 0; i < delta; i++) { in vortex_wtdma_bufshift()
1474 dma->period_virt += delta; in vortex_wtdma_bufshift()
1479 if (delta != 1) in vortex_wtdma_bufshift()
1481 dma->period_virt, delta); in vortex_wtdma_bufshift()
1483 return delta; in vortex_wtdma_bufshift()