Lines Matching defs:sgptr

626 		uint32_t sgptr;
631 sgptr = ahd_inl_scbram(ahd, SCB_SGPTR) & ~SG_FULL_RESID;
632 ahd_outb(ahd, SCB_SGPTR, sgptr);
639 sgptr |= LAST_SEG;
645 ahd_outb(ahd, SG_CACHE_PRE, sgptr);
652 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr & SG_PTR_MASK);
671 uint32_t sgptr;
700 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
710 * the other bytes of the sgptr too.
713 && (sgptr & 0x80) == 0)
714 sgptr -= 0x100;
715 sgptr &= ~0xFF;
716 sgptr |= ahd_inb(ahd, SG_CACHE_SHADOW)
718 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
722 sgptr | SG_LIST_NULL);
729 ahd_outl(ahd, SCB_SGPTR, sgptr);
740 uint32_t sgptr;
768 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
769 sgptr &= SG_PTR_MASK;
773 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
776 sgptr += sizeof(*sg);
780 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
785 sgptr += sizeof(*sg);
792 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
798 sgptr |= LAST_SEG;
803 ahd_outb(ahd, SG_CACHE_PRE, sgptr & 0xFF);
849 * a copy of the first byte (little endian) of the sgptr
2762 printf(" dataptr:%#x%x datacnt:%#x sgptr:%#x tag:%#x\n",
2766 aic_le32toh(hscb->sgptr),
4910 uint32_t sgptr;
4912 sgptr = ahd_inb_scbram(ahd, SCB_RESIDUAL_SGPTR);
4913 if ((sgptr & SG_LIST_NULL) != 0
4927 /* Pull in the rest of the sgptr */
4928 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
4930 if ((sgptr & SG_LIST_NULL) != 0) {
4941 sgptr &= SG_PTR_MASK;
4945 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
4972 sgptr = ahd_sg_virt_to_bus(ahd, scb,
4978 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
5005 sgptr = ahd_sg_virt_to_bus(ahd, scb,
5019 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
5041 uint32_t sgptr;
5074 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
5075 sgptr &= SG_PTR_MASK;
5084 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
5096 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
8410 uint32_t sgptr;
8417 * SG_STATUS_VALID clear in sgptr.
8420 * sgptr has SG_FULL_RESID set.
8423 * last transfer, so sgptr was
8431 sgptr = aic_le32toh(hscb->sgptr);
8432 if ((sgptr & SG_STATUS_VALID) == 0)
8435 sgptr &= ~SG_STATUS_VALID;
8437 if ((sgptr & SG_LIST_NULL) != 0)
8449 if ((sgptr & SG_FULL_RESID) != 0) {
8464 panic("Bogus resid sgptr value 0x%x\n", resid_sgptr);