Lines Matching refs:atari_dma_residual
216 static unsigned long atari_dma_residual, atari_dma_startaddr;
311 atari_dma_residual = HOSTDATA_DMALEN - (SCSI_DMA_READ_P(dma_addr) - atari_dma_startaddr);
314 atari_dma_residual);
316 if ((signed int)atari_dma_residual < 0)
317 atari_dma_residual = 0;
343 if (atari_dma_residual & 0x1ff) {
346 512 - (atari_dma_residual & 0x1ff));
347 atari_dma_residual = (atari_dma_residual + 511) & ~0x1ff;
355 atari_dma_residual = 0;
406 atari_dma_residual = HOSTDATA_DMALEN - transferred;
408 atari_dma_residual);
410 atari_dma_residual = 0;
418 HOSTDATA_DMALEN - atari_dma_residual);
647 atari_dma_residual = 0;
672 atari_dma_residual = 0;
904 return atari_dma_residual;