• Home
  • Raw
  • Download

Lines Matching refs:ahc_inb

318 		(void)ahc_inb(ahc, CCSCBCTL);  in ahc_pause_bug_fix()
328 return ((ahc_inb(ahc, HCNTRL) & PAUSE) != 0); in ahc_is_paused()
366 if ((ahc_inb(ahc, INTSTAT) & (SCSIINT | SEQINT | BRKADRINT)) == 0) in ahc_unpause()
468 uint16_t r = ahc_inb(ahc, port+1) << 8; in ahc_inw()
469 return r | ahc_inb(ahc, port); in ahc_inw()
482 return ((ahc_inb(ahc, port)) in ahc_inl()
483 | (ahc_inb(ahc, port+1) << 8) in ahc_inl()
484 | (ahc_inb(ahc, port+2) << 16) in ahc_inl()
485 | (ahc_inb(ahc, port+3) << 24)); in ahc_inl()
500 return ((ahc_inb(ahc, port)) in ahc_inq()
501 | (ahc_inb(ahc, port+1) << 8) in ahc_inq()
502 | (ahc_inb(ahc, port+2) << 16) in ahc_inq()
503 | (((uint64_t)ahc_inb(ahc, port+3)) << 24) in ahc_inq()
504 | (((uint64_t)ahc_inb(ahc, port+4)) << 32) in ahc_inq()
505 | (((uint64_t)ahc_inb(ahc, port+5)) << 40) in ahc_inq()
506 | (((uint64_t)ahc_inb(ahc, port+6)) << 48) in ahc_inq()
507 | (((uint64_t)ahc_inb(ahc, port+7)) << 56)); in ahc_inq()
753 intstat = ahc_inb(ahc, INTSTAT); in ahc_intr()
761 && (ahc_inb(ahc, ERROR) & PCIERRSTAT) != 0) in ahc_intr()
826 ahc_outb(ahc, SXFRCTL1, ahc_inb(ahc, SXFRCTL1) & ~BITBUCKET); in ahc_restart()
842 ahc_inb(ahc, SCSISEQ_TEMPLATE) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_restart()
854 if ((ahc_inb(ahc, SEQ_FLAGS2) & SCB_DMA) != 0) { in ahc_restart()
857 ahc_inb(ahc, SEQ_FLAGS2) & ~SCB_DMA); in ahc_restart()
875 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_restart()
964 error = ahc_inb(ahc, ERROR); in ahc_handle_brkadrint()
969 ahc_inb(ahc, SEQADDR0) | in ahc_handle_brkadrint()
970 (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_handle_brkadrint()
1020 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1163 ahc_inb(ahc, SCSISEQ) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_handle_seqint()
1170 ahc_inb(ahc, SAVED_SCSIID), ahc_inb(ahc, SAVED_LUN), in ahc_handle_seqint()
1171 ahc_inb(ahc, ARG_1), ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
1174 ahc_inb(ahc, SEQ_FLAGS), ahc_inb(ahc, SCBPTR), in ahc_handle_seqint()
1176 BUILD_TCL(ahc_inb(ahc, SAVED_SCSIID), in ahc_handle_seqint()
1177 ahc_inb(ahc, SAVED_LUN))), in ahc_handle_seqint()
1178 ahc_inb(ahc, SINDEX)); in ahc_handle_seqint()
1181 ahc_inb(ahc, SCSIID), ahc_inb(ahc, SCB_SCSIID), in ahc_handle_seqint()
1182 ahc_inb(ahc, SCB_LUN), ahc_inb(ahc, SCB_TAG), in ahc_handle_seqint()
1183 ahc_inb(ahc, SCB_CONTROL)); in ahc_handle_seqint()
1185 ahc_inb(ahc, SCSIBUSL), ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1186 printk("SXFRCTL0 == 0x%x\n", ahc_inb(ahc, SXFRCTL0)); in ahc_handle_seqint()
1187 printk("SEQCTL == 0x%x\n", ahc_inb(ahc, SEQCTL)); in ahc_handle_seqint()
1199 u_int rejbyte = ahc_inb(ahc, ACCUM); in ahc_handle_seqint()
1220 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
1224 lastphase, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1231 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
1235 lastphase, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1257 bus_phase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_seqint()
1272 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1322 && (ahc_inb(ahc, SSTAT1) & SCSIPERR) != 0) { in ahc_handle_seqint()
1333 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_seqint()
1337 if ((ahc_inb(ahc, SCSISIGI) & (CDI|MSGI)) == 0) { in ahc_handle_seqint()
1347 ahc_inb(ahc, SXFRCTL1) | BITBUCKET); in ahc_handle_seqint()
1350 if ((ahc_inb(ahc, SCSISIGI) in ahc_handle_seqint()
1356 ahc_inb(ahc, SXFRCTL1) & ~BITBUCKET); in ahc_handle_seqint()
1364 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1373 ahc_inb(ahc, SCSIDATL); in ahc_handle_seqint()
1388 u_int scbindex = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1389 u_int lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
1404 ahc_inb(ahc, SEQ_FLAGS) & DPHASE ? "Have" : "Haven't", in ahc_handle_seqint()
1437 ahc_inb(ahc, SXFRCTL0) | CLRSTCNT|CLRCHN); in ahc_handle_seqint()
1439 ahc_inb(ahc, SXFRCTL0) | CLRSTCNT|CLRCHN); in ahc_handle_seqint()
1445 dscommand1 = ahc_inb(ahc, DSCOMMAND1); in ahc_handle_seqint()
1459 scbindex = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1485 scbptr = ahc_inb(ahc, SCBPTR); in ahc_handle_seqint()
1487 scbptr, ahc_inb(ahc, ARG_1), in ahc_handle_seqint()
1498 ahc_inb(ahc, SAVED_SCSIID), ahc_inb(ahc, SAVED_LUN), in ahc_handle_seqint()
1499 ahc_inb(ahc, ARG_1), ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
1502 ahc_inb(ahc, SEQ_FLAGS), ahc_inb(ahc, SCBPTR), in ahc_handle_seqint()
1504 BUILD_TCL(ahc_inb(ahc, SAVED_SCSIID), in ahc_handle_seqint()
1505 ahc_inb(ahc, SAVED_LUN))), in ahc_handle_seqint()
1506 ahc_inb(ahc, SINDEX), in ahc_handle_seqint()
1507 ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
1510 ahc_inb(ahc, SCSIID), ahc_inb(ahc, SCB_SCSIID), in ahc_handle_seqint()
1511 ahc_inb(ahc, SCB_LUN), ahc_inb(ahc, SCB_TAG), in ahc_handle_seqint()
1512 ahc_inb(ahc, SCB_CONTROL)); in ahc_handle_seqint()
1514 ahc_inb(ahc, SCSIBUSL), ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1522 intstat, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1545 && ((ahc_inb(ahc, SBLKCTL) & SELBUSB) != 0)) in ahc_handle_scsiint()
1552 status0 = ahc_inb(ahc, SSTAT0) & IOERR; in ahc_handle_scsiint()
1555 status = ahc_inb(ahc, SSTAT1) & (SELTO|SCSIRSTI|BUSFREE|SCSIPERR); in ahc_handle_scsiint()
1559 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) ^ SELBUSB); in ahc_handle_scsiint()
1560 status = ahc_inb(ahc, SSTAT1) in ahc_handle_scsiint()
1575 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_scsiint()
1578 && (ahc_inb(ahc, SEQ_FLAGS) & NOT_IDENTIFIED) != 0) in ahc_handle_scsiint()
1585 now_lvd = ahc_inb(ahc, SBLKCTL) & ENAB40; in ahc_handle_scsiint()
1605 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) ^ SELBUSB); in ahc_handle_scsiint()
1628 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_scsiint()
1629 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_scsiint()
1630 sstat2 = ahc_inb(ahc, SSTAT2); in ahc_handle_scsiint()
1643 if ((ahc_inb(ahc, SSTAT1) & SCSIPERR) != 0 in ahc_handle_scsiint()
1663 SCSIID_TARGET(ahc, ahc_inb(ahc, SAVED_SCSIID))); in ahc_handle_scsiint()
1664 scsirate = ahc_inb(ahc, SCSIRATE); in ahc_handle_scsiint()
1730 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENBUSFREE); in ahc_handle_scsiint()
1743 scbptr = ahc_inb(ahc, WAITING_SCBH); in ahc_handle_scsiint()
1745 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_scsiint()
1780 && (ahc_inb(ahc, SIMODE1) & ENBUSFREE) != 0) { in ahc_handle_scsiint()
1797 ahc_inb(ahc, SCSISEQ) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_handle_scsiint()
1805 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENBUSFREE); in ahc_handle_scsiint()
1814 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_scsiint()
1815 saved_scsiid = ahc_inb(ahc, SAVED_SCSIID); in ahc_handle_scsiint()
1816 saved_lun = ahc_inb(ahc, SAVED_LUN); in ahc_handle_scsiint()
1955 ahc_inb(ahc, SEQADDR0) in ahc_handle_scsiint()
1956 | (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_handle_scsiint()
2007 seqaddr = ahc_inb(ahc, SEQADDR0) in ahc_clear_critical_section()
2008 | (ahc_inb(ahc, SEQADDR1) << 8); in ahc_clear_critical_section()
2043 simode0 = ahc_inb(ahc, SIMODE0); in ahc_clear_critical_section()
2045 simode1 = ahc_inb(ahc, SIMODE1); in ahc_clear_critical_section()
2224 if ((ahc_inb(ahc, SBLKCTL) & ENAB40) != 0 in ahc_devlimited_syncrate()
2225 && (ahc_inb(ahc, SSTAT2) & EXP_ACTIVE) == 0) { in ahc_devlimited_syncrate()
2569 sxfrctl0 = ahc_inb(ahc, SXFRCTL0); in ahc_set_syncrate()
2741 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_update_pending_scbs()
2749 scb_tag = ahc_inb(ahc, SCB_TAG); in ahc_update_pending_scbs()
2755 control = ahc_inb(ahc, SCB_CONTROL); in ahc_update_pending_scbs()
2776 if (ahc_inb(ahc, SSTAT0) & TARGET) in ahc_fetch_devinfo()
2783 && (ahc_inb(ahc, SEQ_FLAGS) in ahc_fetch_devinfo()
2786 our_id = ahc_inb(ahc, TARGIDIN) & OID; in ahc_fetch_devinfo()
2788 our_id = ahc_inb(ahc, SCSIID_ULTRA2) & OID; in ahc_fetch_devinfo()
2790 our_id = ahc_inb(ahc, SCSIID) & OID; in ahc_fetch_devinfo()
2792 saved_scsiid = ahc_inb(ahc, SAVED_SCSIID); in ahc_fetch_devinfo()
2796 ahc_inb(ahc, SAVED_LUN), in ahc_fetch_devinfo()
2865 scsisigo |= ahc_inb(ahc, SCSISIGI); in ahc_assert_atn()
2888 && ahc_inb(ahc, MSG_OUT) == MSG_IDENTIFYFLAG) { in ahc_setup_initiator_msgout()
2917 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_setup_initiator_msgout()
2934 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_setup_initiator_msgout()
2944 ahc_inb(ahc, MSG_OUT), scb->flags); in ahc_setup_initiator_msgout()
2951 ahc_outb(ahc, SCB_CONTROL, ahc_inb(ahc, SCB_CONTROL) & ~MK_MESSAGE); in ahc_setup_initiator_msgout()
3125 if ((ahc_inb(ahc, SCSISIGI) & ATNI) != 0) { in ahc_clear_msg_state()
3134 ahc_inb(ahc, SEQ_FLAGS2) & ~TARGET_MSG_PENDING); in ahc_clear_msg_state()
3149 scbid = ahc_inb(ahc, SCB_TAG); in ahc_handle_proto_violation()
3151 seq_flags = ahc_inb(ahc, SEQ_FLAGS); in ahc_handle_proto_violation()
3152 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_proto_violation()
3153 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_proto_violation()
3178 } else if ((ahc_inb(ahc, SCB_CONTROL) & STATUS_RCVD) == 0) { in ahc_handle_proto_violation()
3213 ahc_inb(ahc, SCSISEQ) & ~ENSELO); in ahc_handle_proto_violation()
3243 bus_phase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_message_phase()
3362 ahc->msgin_buf[ahc->msgin_index] = ahc_inb(ahc, SCSIBUSL); in ahc_handle_message_phase()
3400 ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
3418 if ((ahc_inb(ahc, SCSISIGI) & ATNI) != 0 in ahc_handle_message_phase()
3436 ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
3438 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3445 ahc_inb(ahc, SXFRCTL0) & ~SPIOEN); in ahc_handle_message_phase()
3453 ahc_outb(ahc, SXFRCTL0, ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3466 lastbyte = (ahc_inb(ahc, SCSISIGI) & ATNI) == 0; in ahc_handle_message_phase()
3473 ahc_outb(ahc, SXFRCTL0, ahc_inb(ahc, SXFRCTL0) & ~SPIOEN); in ahc_handle_message_phase()
3474 ahc->msgin_buf[ahc->msgin_index] = ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
3502 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3514 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3955 tag = ahc_inb(ahc, INITIATOR_TAG); in ahc_parse_msg()
4021 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_msg_reject()
4027 last_msg = ahc_inb(ahc, LAST_MSG); in ahc_handle_msg_reject()
4110 ahc_inb(ahc, SCB_CONTROL) & mask); in ahc_handle_msg_reject()
4162 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_ign_wide_residue()
4168 if ((ahc_inb(ahc, SEQ_FLAGS) & DPHASE) == 0 in ahc_handle_ign_wide_residue()
4184 sgptr = ahc_inb(ahc, SCB_RESIDUAL_SGPTR); in ahc_handle_ign_wide_residue()
4186 && (ahc_inb(ahc, SCB_LUN) & SCB_XFERLEN_ODD) != 0) { in ahc_handle_ign_wide_residue()
4255 ahc_inb(ahc, SCB_LUN) ^ SCB_XFERLEN_ODD); in ahc_handle_ign_wide_residue()
4275 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_reinitialize_dataptrs()
4277 sgptr = (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 3) << 24) in ahc_reinitialize_dataptrs()
4278 | (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 2) << 16) in ahc_reinitialize_dataptrs()
4279 | (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 1) << 8) in ahc_reinitialize_dataptrs()
4280 | ahc_inb(ahc, SCB_RESIDUAL_SGPTR); in ahc_reinitialize_dataptrs()
4288 resid = (ahc_inb(ahc, SCB_RESIDUAL_DATACNT + 2) << 16) in ahc_reinitialize_dataptrs()
4289 | (ahc_inb(ahc, SCB_RESIDUAL_DATACNT + 1) << 8) in ahc_reinitialize_dataptrs()
4290 | ahc_inb(ahc, SCB_RESIDUAL_DATACNT); in ahc_reinitialize_dataptrs()
4298 dscommand1 = ahc_inb(ahc, DSCOMMAND1); in ahc_reinitialize_dataptrs()
4461 ahc->unpause = ahc_inb(ahc, HCNTRL) & IRQMS; in ahc_softc_init()
4611 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset()
4613 sxfrctl1_b = ahc_inb(ahc, SXFRCTL1); in ahc_reset()
4616 sxfrctl1_a = ahc_inb(ahc, SXFRCTL1); in ahc_reset()
4629 } while (--wait && !(ahc_inb(ahc, HCNTRL) & CHIPRSTACK)); in ahc_reset()
4638 sblkctl = ahc_inb(ahc, SBLKCTL) & (SELBUSB|SELWIDE); in ahc_reset()
4670 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset()
4703 if (ahc_inb(ahc, SCB_BASE) != i) in ahc_probe_scbs()
4706 if (ahc_inb(ahc, SCB_BASE) != 0) in ahc_probe_scbs()
5101 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) | SELBUSB); in ahc_chip_init()
5104 scsi_conf = ahc_inb(ahc, SCSICONF + 1); in ahc_chip_init()
5108 ahc_outb(ahc, SIMODE0, ahc_inb(ahc, SIMODE0)|ENIOERR); in ahc_chip_init()
5113 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) & ~SELBUSB); in ahc_chip_init()
5120 scsi_conf = ahc_inb(ahc, SCSICONF); in ahc_chip_init()
5125 ahc_outb(ahc, SIMODE0, ahc_inb(ahc, SIMODE0)|ENIOERR); in ahc_chip_init()
5258 (ahc_inb(ahc, SBLKCTL) & (ENAB40|ENAB20)) == 0 && wait; in ahc_chip_init()
5291 printk (" 0x%x", ahc_inb(ahc, i)); in ahc_init()
5298 printk (" 0x%x", ahc_inb(ahc, i)); in ahc_init()
5450 scsi_conf = ahc_inb(ahc, SCSICONF + 1); in ahc_init()
5456 scsi_conf = ahc_inb(ahc, SCSICONF); in ahc_init()
5474 discenable = ~((ahc_inb(ahc, DISC_DSB + 1) << 8) in ahc_init()
5475 | ahc_inb(ahc, DISC_DSB)); in ahc_init()
5477 ultraenb = (ahc_inb(ahc, ULTRA_ENB + 1) << 8) in ahc_init()
5478 | ahc_inb(ahc, ULTRA_ENB); in ahc_init()
5518 scsirate = ahc_inb(ahc, TARG_SCSIRATE + i); in ahc_init()
5535 offset = ahc_inb(ahc, TARG_OFFSET + i); in ahc_init()
5595 hcntrl = ahc_inb(ahc, HCNTRL); in ahc_intr_enable()
5636 ahc_outb(ahc, SCSISEQ, ahc_inb(ahc, SCSISEQ) & ~ENSELO); in ahc_pause_and_flushwork()
5637 intstat = ahc_inb(ahc, INTSTAT); in ahc_pause_and_flushwork()
5640 intstat = ahc_inb(ahc, INTSTAT); in ahc_pause_and_flushwork()
5645 || (ahc_inb(ahc, SSTAT0) & (SELDO|SELINGO)) != 0)); in ahc_pause_and_flushwork()
5648 ahc_inb(ahc, INTSTAT)); in ahc_pause_and_flushwork()
5705 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_index_busy_tcl()
5707 scbid = ahc_inb(ahc, SCB_64_BTT + TCL_TARGET_OFFSET(tcl)); in ahc_index_busy_tcl()
5711 scbid = ahc_inb(ahc, BUSY_TARGETS + target_offset); in ahc_index_busy_tcl()
5725 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_unbusy_tcl()
5743 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_busy_tcl()
5853 qinpos = ahc_inb(ahc, SNSCB_QOFF); in ahc_qinfifo_count()
5856 qinpos = ahc_inb(ahc, QINPOS); in ahc_qinfifo_count()
5880 qinstart = ahc_inb(ahc, SNSCB_QOFF); in ahc_search_qinfifo()
5883 qinstart = ahc_inb(ahc, QINPOS); in ahc_search_qinfifo()
6000 curscbptr = ahc_inb(ahc, SCBPTR); in ahc_search_qinfifo()
6001 next = ahc_inb(ahc, WAITING_SCBH); /* Start at head of list. */ in ahc_search_qinfifo()
6008 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_search_qinfifo()
6051 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_qinfifo()
6057 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_qinfifo()
6180 next = ahc_inb(ahc, DISCONNECTED_SCBH); in ahc_search_disc_list()
6185 active_scb = ahc_inb(ahc, SCBPTR); in ahc_search_disc_list()
6194 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_search_disc_list()
6217 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_disc_list()
6223 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_disc_list()
6241 next = ahc_inb(ahc, SCB_NEXT); in ahc_rem_scb_from_disc_list()
6271 ahc_outb(ahc, SCB_NEXT, ahc_inb(ahc, FREE_SCBH)); in ahc_add_curscb_to_free_list()
6272 ahc_outb(ahc, FREE_SCBH, ahc_inb(ahc, SCBPTR)); in ahc_add_curscb_to_free_list()
6289 curscb = ahc_inb(ahc, SCBPTR); in ahc_rem_wscb()
6291 next = ahc_inb(ahc, SCB_NEXT); in ahc_rem_wscb()
6307 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_rem_wscb()
6352 active_scb = ahc_inb(ahc, SCBPTR); in ahc_abort_scbs()
6425 scbid = ahc_inb(ahc, SCB_TAG); in ahc_abort_scbs()
6468 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENSCSIRST); in ahc_reset_current_bus()
6469 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_reset_current_bus()
6479 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) | ENSCSIRST); in ahc_reset_current_bus()
6531 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset_channel()
6536 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_reset_channel()
6543 simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST); in ahc_reset_channel()
6562 simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST); in ahc_reset_channel()
7191 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_dump_card_state()
7192 last_phase = ahc_inb(ahc, LASTPHASE); in ahc_dump_card_state()
7196 ahc_inb(ahc, SEQADDR0) | (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_dump_card_state()
7200 ahc_inb(ahc, ACCUM), ahc_inb(ahc, SINDEX), ahc_inb(ahc, DINDEX), in ahc_dump_card_state()
7201 ahc_inb(ahc, ARG_2)); in ahc_dump_card_state()
7202 printk("HCNT = 0x%x SCBPTR = 0x%x\n", ahc_inb(ahc, HCNT), in ahc_dump_card_state()
7203 ahc_inb(ahc, SCBPTR)); in ahc_dump_card_state()
7206 ahc_scsiphase_print(ahc_inb(ahc, SCSIPHASE), &cur_col, 50); in ahc_dump_card_state()
7207 ahc_scsisigi_print(ahc_inb(ahc, SCSISIGI), &cur_col, 50); in ahc_dump_card_state()
7208 ahc_error_print(ahc_inb(ahc, ERROR), &cur_col, 50); in ahc_dump_card_state()
7209 ahc_scsibusl_print(ahc_inb(ahc, SCSIBUSL), &cur_col, 50); in ahc_dump_card_state()
7210 ahc_lastphase_print(ahc_inb(ahc, LASTPHASE), &cur_col, 50); in ahc_dump_card_state()
7211 ahc_scsiseq_print(ahc_inb(ahc, SCSISEQ), &cur_col, 50); in ahc_dump_card_state()
7212 ahc_sblkctl_print(ahc_inb(ahc, SBLKCTL), &cur_col, 50); in ahc_dump_card_state()
7213 ahc_scsirate_print(ahc_inb(ahc, SCSIRATE), &cur_col, 50); in ahc_dump_card_state()
7214 ahc_seqctl_print(ahc_inb(ahc, SEQCTL), &cur_col, 50); in ahc_dump_card_state()
7215 ahc_seq_flags_print(ahc_inb(ahc, SEQ_FLAGS), &cur_col, 50); in ahc_dump_card_state()
7216 ahc_sstat0_print(ahc_inb(ahc, SSTAT0), &cur_col, 50); in ahc_dump_card_state()
7217 ahc_sstat1_print(ahc_inb(ahc, SSTAT1), &cur_col, 50); in ahc_dump_card_state()
7218 ahc_sstat2_print(ahc_inb(ahc, SSTAT2), &cur_col, 50); in ahc_dump_card_state()
7219 ahc_sstat3_print(ahc_inb(ahc, SSTAT3), &cur_col, 50); in ahc_dump_card_state()
7220 ahc_simode0_print(ahc_inb(ahc, SIMODE0), &cur_col, 50); in ahc_dump_card_state()
7221 ahc_simode1_print(ahc_inb(ahc, SIMODE1), &cur_col, 50); in ahc_dump_card_state()
7222 ahc_sxfrctl0_print(ahc_inb(ahc, SXFRCTL0), &cur_col, 50); in ahc_dump_card_state()
7223 ahc_dfcntrl_print(ahc_inb(ahc, DFCNTRL), &cur_col, 50); in ahc_dump_card_state()
7224 ahc_dfstatus_print(ahc_inb(ahc, DFSTATUS), &cur_col, 50); in ahc_dump_card_state()
7229 printk(" 0x%x", ahc_inb(ahc, STACK)|(ahc_inb(ahc, STACK) << 8)); in ahc_dump_card_state()
7232 printk("Card NEXTQSCB = %d\n", ahc_inb(ahc, NEXT_QUEUED_SCB)); in ahc_dump_card_state()
7236 qinpos = ahc_inb(ahc, SNSCB_QOFF); in ahc_dump_card_state()
7239 qinpos = ahc_inb(ahc, QINPOS); in ahc_dump_card_state()
7248 scb_index = ahc_inb(ahc, WAITING_SCBH); in ahc_dump_card_state()
7252 printk("%d:%d ", scb_index, ahc_inb(ahc, SCB_TAG)); in ahc_dump_card_state()
7253 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
7258 scb_index = ahc_inb(ahc, DISCONNECTED_SCBH); in ahc_dump_card_state()
7262 printk("%d:%d ", scb_index, ahc_inb(ahc, SCB_TAG)); in ahc_dump_card_state()
7263 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
7278 scb_index = ahc_inb(ahc, FREE_SCBH); in ahc_dump_card_state()
7283 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
7292 ahc_scb_control_print(ahc_inb(ahc, SCB_CONTROL), &cur_col, 60); in ahc_dump_card_state()
7293 ahc_scb_scsiid_print(ahc_inb(ahc, SCB_SCSIID), &cur_col, 60); in ahc_dump_card_state()
7294 ahc_scb_lun_print(ahc_inb(ahc, SCB_LUN), &cur_col, 60); in ahc_dump_card_state()
7295 ahc_scb_tag_print(ahc_inb(ahc, SCB_TAG), &cur_col, 60); in ahc_dump_card_state()
7311 ahc_scb_control_print(ahc_inb(ahc, SCB_CONTROL), in ahc_dump_card_state()
7313 ahc_scb_tag_print(ahc_inb(ahc, SCB_TAG), &cur_col, 60); in ahc_dump_card_state()
7589 targid_mask = ahc_inb(ahc, TARGID) in ahc_handle_en_lun()
7590 | (ahc_inb(ahc, TARGID + 1) << 8); in ahc_handle_en_lun()
7613 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_handle_en_lun()
7638 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_handle_en_lun()
7641 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_handle_en_lun()
7712 targid_mask = ahc_inb(ahc, TARGID) in ahc_handle_en_lun()
7713 | (ahc_inb(ahc, TARGID + 1) in ahc_handle_en_lun()
7737 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_handle_en_lun()
7740 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_handle_en_lun()
7781 scsiid = ahc_inb(ahc, SCSIID_ULTRA2); in ahc_update_scsiid()
7783 scsiid = ahc_inb(ahc, SCSIID); in ahc_update_scsiid()
7842 hs_mailbox = ahc_inb(ahc, HS_MAILBOX); in ahc_run_tqinfifo()