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