Lines Matching defs:sgptr
577 hscb->sgptr =
1538 printf(" dataptr:%#x datacnt:%#x sgptr:%#x tag:%#x\n",
1541 ahc_le32toh(hscb->sgptr),
3588 uint32_t sgptr;
3590 sgptr = ahc_inb(ahc, SCB_RESIDUAL_SGPTR);
3591 if ((sgptr & SG_LIST_NULL) != 0
3605 /* Pull in the rest of the sgptr */
3606 sgptr |= (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 3) << 24)
3609 sgptr &= SG_PTR_MASK;
3623 sg = ahc_sg_bus_to_virt(scb, sgptr);
3648 sgptr = ahc_sg_virt_to_bus(scb, sg);
3650 sgptr >> 24);
3652 sgptr >> 16);
3654 sgptr >> 8);
3655 ahc_outb(ahc, SCB_RESIDUAL_SGPTR, sgptr);
3677 uint32_t sgptr;
3683 sgptr = (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 3) << 24)
3688 sgptr &= SG_PTR_MASK;
3689 sg = ahc_sg_bus_to_virt(scb, sgptr);
6080 uint32_t sgptr;
6087 * SG_RESID_VALID clear in sgptr.
6090 * sgptr has SG_FULL_RESID set.
6093 * last transfer, so sgptr was
6101 sgptr = ahc_le32toh(hscb->sgptr);
6102 if ((sgptr & SG_RESID_VALID) == 0)
6105 sgptr &= ~SG_RESID_VALID;
6107 if ((sgptr & SG_LIST_NULL) != 0)
6113 if ((sgptr & SG_FULL_RESID) != 0) {
6120 panic("Bogus resid sgptr value 0x%x\n", resid_sgptr);