• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/aic7xxx/

Lines Matching refs:sgptr

336 	uint32_t sgptr;
338 sgptr = ahd_le32toh(scb->hscb->sgptr);
339 if ((sgptr & SG_STATUS_VALID) != 0)
346 uint32_t sgptr;
348 sgptr = ahd_le32toh(scb->hscb->sgptr);
349 if ((sgptr & SG_STATUS_VALID) != 0)
673 uint32_t sgptr;
678 sgptr = ahd_inl_scbram(ahd, SCB_SGPTR) & ~SG_FULL_RESID;
679 ahd_outb(ahd, SCB_SGPTR, sgptr);
686 sgptr |= LAST_SEG;
692 ahd_outb(ahd, SG_CACHE_PRE, sgptr);
699 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr & SG_PTR_MASK);
718 uint32_t sgptr;
747 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
757 * the other bytes of the sgptr too.
760 && (sgptr & 0x80) == 0)
761 sgptr -= 0x100;
762 sgptr &= ~0xFF;
763 sgptr |= ahd_inb(ahd, SG_CACHE_SHADOW)
765 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
769 sgptr | SG_LIST_NULL);
776 ahd_outl(ahd, SCB_SGPTR, sgptr);
787 uint32_t sgptr;
815 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
816 sgptr &= SG_PTR_MASK;
820 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
823 sgptr += sizeof(*sg);
827 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
832 sgptr += sizeof(*sg);
839 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
845 sgptr |= LAST_SEG;
850 ahd_outb(ahd, SG_CACHE_PRE, sgptr & 0xFF);
896 * a copy of the first byte (little endian) of the sgptr
4912 uint32_t sgptr;
4914 sgptr = ahd_inb_scbram(ahd, SCB_RESIDUAL_SGPTR);
4915 if ((sgptr & SG_LIST_NULL) != 0
4929 /* Pull in the rest of the sgptr */
4930 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
4932 if ((sgptr & SG_LIST_NULL) != 0) {
4943 sgptr &= SG_PTR_MASK;
4947 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
4974 sgptr = ahd_sg_virt_to_bus(ahd, scb,
4980 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
5007 sgptr = ahd_sg_virt_to_bus(ahd, scb,
5021 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
5043 uint32_t sgptr;
5076 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
5077 sgptr &= SG_PTR_MASK;
5086 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
5098 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
8303 uint32_t sgptr;
8310 * SG_STATUS_VALID clear in sgptr.
8313 * sgptr has SG_FULL_RESID set.
8316 * last transfer, so sgptr was
8324 sgptr = ahd_le32toh(hscb->sgptr);
8325 if ((sgptr & SG_STATUS_VALID) == 0)
8328 sgptr &= ~SG_STATUS_VALID;
8330 if ((sgptr & SG_LIST_NULL) != 0)
8342 if ((sgptr & SG_FULL_RESID) != 0) {
8357 panic("Bogus resid sgptr value 0x%x\n", resid_sgptr);