• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/scsi/aic7xxx/

Lines Matching refs:sgptr

415 	     void *sgptr, dma_addr_t addr, bus_size_t len, int last)
422 sg = (struct ahd_dma64_seg *)sgptr;
429 sg = (struct ahd_dma_seg *)sgptr;
490 scb->hscb->sgptr = ahd_htole32(scb->sg_list_busaddr|SG_FULL_RESID);
496 scb->hscb->sgptr = ahd_htole32(SG_LIST_NULL);
1056 uint32_t sgptr;
1058 sgptr = ahd_le32toh(scb->hscb->sgptr);
1059 if ((sgptr & SG_STATUS_VALID) != 0)
1066 uint32_t sgptr;
1068 sgptr = ahd_le32toh(scb->hscb->sgptr);
1069 if ((sgptr & SG_STATUS_VALID) != 0)
1393 uint32_t sgptr;
1398 sgptr = ahd_inl_scbram(ahd, SCB_SGPTR) & ~SG_FULL_RESID;
1399 ahd_outb(ahd, SCB_SGPTR, sgptr);
1406 sgptr |= LAST_SEG;
1412 ahd_outb(ahd, SG_CACHE_PRE, sgptr);
1419 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr & SG_PTR_MASK);
1438 uint32_t sgptr;
1467 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
1477 * the other bytes of the sgptr too.
1480 && (sgptr & 0x80) == 0)
1481 sgptr -= 0x100;
1482 sgptr &= ~0xFF;
1483 sgptr |= ahd_inb(ahd, SG_CACHE_SHADOW)
1485 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
1489 sgptr | SG_LIST_NULL);
1496 ahd_outl(ahd, SCB_SGPTR, sgptr);
1507 uint32_t sgptr;
1535 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
1536 sgptr &= SG_PTR_MASK;
1540 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
1543 sgptr += sizeof(*sg);
1547 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
1552 sgptr += sizeof(*sg);
1559 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
1565 sgptr |= LAST_SEG;
1570 ahd_outb(ahd, SG_CACHE_PRE, sgptr & 0xFF);
1616 * a copy of the first byte (little endian) of the sgptr
5636 uint32_t sgptr;
5638 sgptr = ahd_inb_scbram(ahd, SCB_RESIDUAL_SGPTR);
5639 if ((sgptr & SG_LIST_NULL) != 0
5653 /* Pull in the rest of the sgptr */
5654 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
5656 if ((sgptr & SG_LIST_NULL) != 0) {
5667 sgptr &= SG_PTR_MASK;
5671 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
5698 sgptr = ahd_sg_virt_to_bus(ahd, scb,
5704 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
5731 sgptr = ahd_sg_virt_to_bus(ahd, scb,
5745 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr);
5767 uint32_t sgptr;
5800 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR);
5801 sgptr &= SG_PTR_MASK;
5810 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
5822 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr);
9063 uint32_t sgptr;
9070 * SG_STATUS_VALID clear in sgptr.
9073 * sgptr has SG_FULL_RESID set.
9076 * last transfer, so sgptr was
9084 sgptr = ahd_le32toh(hscb->sgptr);
9085 if ((sgptr & SG_STATUS_VALID) == 0)
9088 sgptr &= ~SG_STATUS_VALID;
9090 if ((sgptr & SG_LIST_NULL) != 0)
9102 if ((sgptr & SG_FULL_RESID) != 0) {
9117 panic("Bogus resid sgptr value 0x%x\n", resid_sgptr);