Lines Matching defs:sgp
1564 struct sg_entry *sgp;
1567 sgp = &scb->sglist[scb->sgidx];
1568 for (i = scb->sgidx; i < scb->sgmax; sgp++, i++) {
1569 xcnt -= (long) sgp->len;
1570 if (xcnt < 0) { /* this sgp xfer half done */
1571 xcnt += (long) sgp->len; /* xcnt == bytes xferred in this sgp */
1572 sgp->data += (u32) xcnt; /* new ptr to be xfer */
1573 sgp->len -= (u32) xcnt; /* new len to be xfer */
1582 /* else (xcnt >= 0 , i.e. this sgp already xferred */