Home | History | Annotate | Download | only in ic

Lines Matching defs:sgptr

590 			uint32_t sgptr;
595 sgptr = ahd_inl_scbram(ahd, SCB_SGPTR) & ~SG_FULL_RESID;
596 ahd_outb(ahd, SCB_SGPTR, sgptr);
603 sgptr |= LAST_SEG;
609 ahd_outb(ahd, SG_CACHE_PRE, sgptr);
616 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr & SG_PTR_MASK);
635 uint32_t sgptr;
665 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
676 * the other bytes of the sgptr too.
679 && (sgptr & 0x80) == 0)
680 sgptr -= 0x100;
681 sgptr &= ~0xFF;
682 sgptr |= ahd_inb(ahd, SG_CACHE_SHADOW)
684 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
688 sgptr | SG_LIST_NULL);
695 ahd_outl(ahd, SCB_SGPTR, sgptr);
706 uint32_t sgptr;
735 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
736 sgptr &= SG_PTR_MASK;
740 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
743 sgptr += sizeof(*sg);
747 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
752 sgptr += sizeof(*sg);
759 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
765 sgptr |= LAST_SEG;
770 ahd_outb(ahd, SG_CACHE_PRE, sgptr & 0xFF);
2642 printf(" dataptr:%#x%x datacnt:%#x sgptr:%#x tag:%#x\n",
2646 ahd_le32toh(hscb->sgptr),
4777 uint32_t sgptr;
4779 sgptr = ahd_inb_scbram(ahd, SCB_RESIDUAL_SGPTR);
4780 if ((sgptr & SG_LIST_NULL) != 0
4794 /* Pull in the rest of the sgptr */
4795 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
4797 if ((sgptr & SG_LIST_NULL) != 0) {
4808 sgptr &= SG_PTR_MASK;
4812 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
4839 sgptr = ahd_sg_virt_to_bus(ahd, scb,
4845 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
4872 sgptr = ahd_sg_virt_to_bus(ahd, scb,
4886 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
4908 uint32_t sgptr;
4941 sgptr = (ahd_inb_scbram(ahd, SCB_RESIDUAL_SGPTR + 3) << 24)
4945 sgptr &= SG_PTR_MASK;
4954 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
4969 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
8046 uint32_t sgptr;
8053 * SG_STATUS_VALID clear in sgptr.
8056 * sgptr has SG_FULL_RESID set.
8059 * last transfer, so sgptr was
8067 sgptr = ahd_le32toh(hscb->sgptr);
8068 if ((sgptr & SG_STATUS_VALID) == 0)
8071 sgptr &= ~SG_STATUS_VALID;
8073 if ((sgptr & SG_LIST_NULL) != 0)
8085 if ((sgptr & SG_FULL_RESID) != 0) {
8100 panic("Bogus resid sgptr value 0x%x\n", resid_sgptr);