Lines Matching defs:sgp
1685 register SG *sgp;
1688 sgp = &pCurScb->SCB_SGList[pCurScb->SCB_SGIdx];
1689 for (i = pCurScb->SCB_SGIdx; i < pCurScb->SCB_SGMax; sgp++, i++) {
1690 xcnt -= (long) sgp->SG_Len;
1691 if (xcnt < 0) { /* this sgp xfer half done */
1692 xcnt += (long) sgp->SG_Len; /* xcnt == bytes xferred in this sgp */
1693 sgp->SG_Ptr += (U32) xcnt; /* new ptr to be xfer */
1694 sgp->SG_Len -= (U32) xcnt; /* new len to be xfer */
1703 /* else (xcnt >= 0 , i.e. this sgp already xferred */