Lines Matching refs:SGToBeXferLen
198 xferCnt = pSRB->SGToBeXferLen - residual; in dc390_dma_intr()
201 pSRB->SGToBeXferLen = residual; in dc390_dma_intr()
390 … while( --ctr && !((dstate = DC390_read8 (DMA_Status)) & DMA_XFER_DONE) && pSRB->SGToBeXferLen ); in dc390_DataOut_0()
393 pSRB->TotalXferredLen += pSRB->SGToBeXferLen; in dc390_DataOut_0()
401 pSRB->SGToBeXferLen = (ULONG) psgl->length; in dc390_DataOut_0()
404 pSRB->SGToBeXferLen = 0; in dc390_DataOut_0()
413 xferCnt = pSRB->SGToBeXferLen - ResidCnt; in dc390_DataOut_0()
416 pSRB->SGToBeXferLen = ResidCnt; in dc390_DataOut_0()
446 … while( --ctr && !((dstate = DC390_read8 (DMA_Status)) & DMA_XFER_DONE) && pSRB->SGToBeXferLen ); in dc390_DataIn_0()
453 …UG1(printk (KERN_DEBUG "Count_2_Zero (ResidCnt=%i,ToBeXfer=%li),", ResidCnt, pSRB->SGToBeXferLen);) in dc390_DataIn_0()
457 pSRB->TotalXferredLen += pSRB->SGToBeXferLen; in dc390_DataIn_0()
465 pSRB->SGToBeXferLen = (ULONG) psgl->length; in dc390_DataIn_0()
468 pSRB->SGToBeXferLen = 0; in dc390_DataIn_0()
514 xferCnt = pSRB->SGToBeXferLen - ResidCnt; in dc390_DataIn_0()
517 pSRB->SGToBeXferLen = ResidCnt; in dc390_DataIn_0()
526 pSRB->SGToBeXferLen--; in dc390_DataIn_0()
529 pSRB->TotalXferredLen, pSRB->SGToBeXferLen);) in dc390_DataIn_0()
753 pSRB->SGToBeXferLen = (ULONG) psgl->length; in dc390_restore_ptr()
756 pSRB->SGToBeXferLen = 0; in dc390_restore_ptr()
758 pSRB->SGToBeXferLen -= (pSRB->Saved_Ptr - pSRB->TotalXferredLen); in dc390_restore_ptr()
900 if( !pSRB->SGToBeXferLen ) in dc390_DataIO_Comm()
904 pSRB->SGToBeXferLen = (ULONG) psgl->length; in dc390_DataIO_Comm()
907 lval = pSRB->SGToBeXferLen; in dc390_DataIO_Comm()
915 DC390_write32 (DMA_XferCnt, pSRB->SGToBeXferLen); in dc390_DataIO_Comm()
1398 pSRB->SGToBeXferLen = 0; in dc390_RequestSense()
1488 pSRB->SGToBeXferLen = 0; in dc390_SRBdone()
1510 if( (pSRB->SGIndex < pSRB->SGcount) && (pSRB->SGcount) && (pSRB->SGToBeXferLen) ) in dc390_SRBdone()
1563 pSRB->SGToBeXferLen = 0; in dc390_SRBdone()