Lines Matching refs:ahc_inb
311 (void)ahc_inb(ahc, CCSCBCTL); in ahc_pause_bug_fix()
321 return ((ahc_inb(ahc, HCNTRL) & PAUSE) != 0); in ahc_is_paused()
359 if ((ahc_inb(ahc, INTSTAT) & (SCSIINT | SEQINT | BRKADRINT)) == 0) in ahc_unpause()
461 uint16_t r = ahc_inb(ahc, port+1) << 8; in ahc_inw()
462 return r | ahc_inb(ahc, port); in ahc_inw()
475 return ((ahc_inb(ahc, port)) in ahc_inl()
476 | (ahc_inb(ahc, port+1) << 8) in ahc_inl()
477 | (ahc_inb(ahc, port+2) << 16) in ahc_inl()
478 | (ahc_inb(ahc, port+3) << 24)); in ahc_inl()
493 return ((ahc_inb(ahc, port)) in ahc_inq()
494 | (ahc_inb(ahc, port+1) << 8) in ahc_inq()
495 | (ahc_inb(ahc, port+2) << 16) in ahc_inq()
496 | (((uint64_t)ahc_inb(ahc, port+3)) << 24) in ahc_inq()
497 | (((uint64_t)ahc_inb(ahc, port+4)) << 32) in ahc_inq()
498 | (((uint64_t)ahc_inb(ahc, port+5)) << 40) in ahc_inq()
499 | (((uint64_t)ahc_inb(ahc, port+6)) << 48) in ahc_inq()
500 | (((uint64_t)ahc_inb(ahc, port+7)) << 56)); in ahc_inq()
746 intstat = ahc_inb(ahc, INTSTAT); in ahc_intr()
754 && (ahc_inb(ahc, ERROR) & PCIERRSTAT) != 0) in ahc_intr()
819 ahc_outb(ahc, SXFRCTL1, ahc_inb(ahc, SXFRCTL1) & ~BITBUCKET); in ahc_restart()
835 ahc_inb(ahc, SCSISEQ_TEMPLATE) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_restart()
847 if ((ahc_inb(ahc, SEQ_FLAGS2) & SCB_DMA) != 0) { in ahc_restart()
850 ahc_inb(ahc, SEQ_FLAGS2) & ~SCB_DMA); in ahc_restart()
868 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_restart()
957 error = ahc_inb(ahc, ERROR); in ahc_handle_brkadrint()
962 ahc_inb(ahc, SEQADDR0) | in ahc_handle_brkadrint()
963 (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_handle_brkadrint()
1013 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1156 ahc_inb(ahc, SCSISEQ) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_handle_seqint()
1163 ahc_inb(ahc, SAVED_SCSIID), ahc_inb(ahc, SAVED_LUN), in ahc_handle_seqint()
1164 ahc_inb(ahc, ARG_1), ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
1167 ahc_inb(ahc, SEQ_FLAGS), ahc_inb(ahc, SCBPTR), in ahc_handle_seqint()
1169 BUILD_TCL(ahc_inb(ahc, SAVED_SCSIID), in ahc_handle_seqint()
1170 ahc_inb(ahc, SAVED_LUN))), in ahc_handle_seqint()
1171 ahc_inb(ahc, SINDEX)); in ahc_handle_seqint()
1174 ahc_inb(ahc, SCSIID), ahc_inb(ahc, SCB_SCSIID), in ahc_handle_seqint()
1175 ahc_inb(ahc, SCB_LUN), ahc_inb(ahc, SCB_TAG), in ahc_handle_seqint()
1176 ahc_inb(ahc, SCB_CONTROL)); in ahc_handle_seqint()
1178 ahc_inb(ahc, SCSIBUSL), ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1179 printk("SXFRCTL0 == 0x%x\n", ahc_inb(ahc, SXFRCTL0)); in ahc_handle_seqint()
1180 printk("SEQCTL == 0x%x\n", ahc_inb(ahc, SEQCTL)); in ahc_handle_seqint()
1192 u_int rejbyte = ahc_inb(ahc, ACCUM); in ahc_handle_seqint()
1213 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
1217 lastphase, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1224 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
1228 lastphase, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1250 bus_phase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_seqint()
1265 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1314 && (ahc_inb(ahc, SSTAT1) & SCSIPERR) != 0) { in ahc_handle_seqint()
1325 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_seqint()
1329 if ((ahc_inb(ahc, SCSISIGI) & (CDI|MSGI)) == 0) { in ahc_handle_seqint()
1339 ahc_inb(ahc, SXFRCTL1) | BITBUCKET); in ahc_handle_seqint()
1342 if ((ahc_inb(ahc, SCSISIGI) in ahc_handle_seqint()
1348 ahc_inb(ahc, SXFRCTL1) & ~BITBUCKET); in ahc_handle_seqint()
1356 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1365 ahc_inb(ahc, SCSIDATL); in ahc_handle_seqint()
1380 u_int scbindex = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1381 u_int lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
1396 ahc_inb(ahc, SEQ_FLAGS) & DPHASE ? "Have" : "Haven't", in ahc_handle_seqint()
1429 ahc_inb(ahc, SXFRCTL0) | CLRSTCNT|CLRCHN); in ahc_handle_seqint()
1431 ahc_inb(ahc, SXFRCTL0) | CLRSTCNT|CLRCHN); in ahc_handle_seqint()
1437 dscommand1 = ahc_inb(ahc, DSCOMMAND1); in ahc_handle_seqint()
1451 scbindex = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
1477 scbptr = ahc_inb(ahc, SCBPTR); in ahc_handle_seqint()
1479 scbptr, ahc_inb(ahc, ARG_1), in ahc_handle_seqint()
1490 ahc_inb(ahc, SAVED_SCSIID), ahc_inb(ahc, SAVED_LUN), in ahc_handle_seqint()
1491 ahc_inb(ahc, ARG_1), ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
1494 ahc_inb(ahc, SEQ_FLAGS), ahc_inb(ahc, SCBPTR), in ahc_handle_seqint()
1496 BUILD_TCL(ahc_inb(ahc, SAVED_SCSIID), in ahc_handle_seqint()
1497 ahc_inb(ahc, SAVED_LUN))), in ahc_handle_seqint()
1498 ahc_inb(ahc, SINDEX), in ahc_handle_seqint()
1499 ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
1502 ahc_inb(ahc, SCSIID), ahc_inb(ahc, SCB_SCSIID), in ahc_handle_seqint()
1503 ahc_inb(ahc, SCB_LUN), ahc_inb(ahc, SCB_TAG), in ahc_handle_seqint()
1504 ahc_inb(ahc, SCB_CONTROL)); in ahc_handle_seqint()
1506 ahc_inb(ahc, SCSIBUSL), ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1514 intstat, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
1537 && ((ahc_inb(ahc, SBLKCTL) & SELBUSB) != 0)) in ahc_handle_scsiint()
1544 status0 = ahc_inb(ahc, SSTAT0) & IOERR; in ahc_handle_scsiint()
1547 status = ahc_inb(ahc, SSTAT1) & (SELTO|SCSIRSTI|BUSFREE|SCSIPERR); in ahc_handle_scsiint()
1551 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) ^ SELBUSB); in ahc_handle_scsiint()
1552 status = ahc_inb(ahc, SSTAT1) in ahc_handle_scsiint()
1567 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_scsiint()
1570 && (ahc_inb(ahc, SEQ_FLAGS) & NOT_IDENTIFIED) != 0) in ahc_handle_scsiint()
1577 now_lvd = ahc_inb(ahc, SBLKCTL) & ENAB40; in ahc_handle_scsiint()
1597 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) ^ SELBUSB); in ahc_handle_scsiint()
1620 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_scsiint()
1621 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_scsiint()
1622 sstat2 = ahc_inb(ahc, SSTAT2); in ahc_handle_scsiint()
1635 if ((ahc_inb(ahc, SSTAT1) & SCSIPERR) != 0 in ahc_handle_scsiint()
1655 SCSIID_TARGET(ahc, ahc_inb(ahc, SAVED_SCSIID))); in ahc_handle_scsiint()
1656 scsirate = ahc_inb(ahc, SCSIRATE); in ahc_handle_scsiint()
1722 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENBUSFREE); in ahc_handle_scsiint()
1735 scbptr = ahc_inb(ahc, WAITING_SCBH); in ahc_handle_scsiint()
1737 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_scsiint()
1772 && (ahc_inb(ahc, SIMODE1) & ENBUSFREE) != 0) { in ahc_handle_scsiint()
1789 ahc_inb(ahc, SCSISEQ) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_handle_scsiint()
1797 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENBUSFREE); in ahc_handle_scsiint()
1806 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_scsiint()
1807 saved_scsiid = ahc_inb(ahc, SAVED_SCSIID); in ahc_handle_scsiint()
1808 saved_lun = ahc_inb(ahc, SAVED_LUN); in ahc_handle_scsiint()
1932 ahc_inb(ahc, SEQADDR0) in ahc_handle_scsiint()
1933 | (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_handle_scsiint()
1984 seqaddr = ahc_inb(ahc, SEQADDR0) in ahc_clear_critical_section()
1985 | (ahc_inb(ahc, SEQADDR1) << 8); in ahc_clear_critical_section()
2019 simode0 = ahc_inb(ahc, SIMODE0); in ahc_clear_critical_section()
2021 simode1 = ahc_inb(ahc, SIMODE1); in ahc_clear_critical_section()
2199 if ((ahc_inb(ahc, SBLKCTL) & ENAB40) != 0 in ahc_devlimited_syncrate()
2200 && (ahc_inb(ahc, SSTAT2) & EXP_ACTIVE) == 0) { in ahc_devlimited_syncrate()
2544 sxfrctl0 = ahc_inb(ahc, SXFRCTL0); in ahc_set_syncrate()
2716 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_update_pending_scbs()
2724 scb_tag = ahc_inb(ahc, SCB_TAG); in ahc_update_pending_scbs()
2730 control = ahc_inb(ahc, SCB_CONTROL); in ahc_update_pending_scbs()
2751 if (ahc_inb(ahc, SSTAT0) & TARGET) in ahc_fetch_devinfo()
2758 && (ahc_inb(ahc, SEQ_FLAGS) in ahc_fetch_devinfo()
2761 our_id = ahc_inb(ahc, TARGIDIN) & OID; in ahc_fetch_devinfo()
2763 our_id = ahc_inb(ahc, SCSIID_ULTRA2) & OID; in ahc_fetch_devinfo()
2765 our_id = ahc_inb(ahc, SCSIID) & OID; in ahc_fetch_devinfo()
2767 saved_scsiid = ahc_inb(ahc, SAVED_SCSIID); in ahc_fetch_devinfo()
2771 ahc_inb(ahc, SAVED_LUN), in ahc_fetch_devinfo()
2840 scsisigo |= ahc_inb(ahc, SCSISIGI); in ahc_assert_atn()
2863 && ahc_inb(ahc, MSG_OUT) == MSG_IDENTIFYFLAG) { in ahc_setup_initiator_msgout()
2892 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_setup_initiator_msgout()
2909 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_setup_initiator_msgout()
2919 ahc_inb(ahc, MSG_OUT), scb->flags); in ahc_setup_initiator_msgout()
2926 ahc_outb(ahc, SCB_CONTROL, ahc_inb(ahc, SCB_CONTROL) & ~MK_MESSAGE); in ahc_setup_initiator_msgout()
3100 if ((ahc_inb(ahc, SCSISIGI) & ATNI) != 0) { in ahc_clear_msg_state()
3109 ahc_inb(ahc, SEQ_FLAGS2) & ~TARGET_MSG_PENDING); in ahc_clear_msg_state()
3124 scbid = ahc_inb(ahc, SCB_TAG); in ahc_handle_proto_violation()
3126 seq_flags = ahc_inb(ahc, SEQ_FLAGS); in ahc_handle_proto_violation()
3127 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_proto_violation()
3128 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_proto_violation()
3153 } else if ((ahc_inb(ahc, SCB_CONTROL) & STATUS_RCVD) == 0) { in ahc_handle_proto_violation()
3188 ahc_inb(ahc, SCSISEQ) & ~ENSELO); in ahc_handle_proto_violation()
3218 bus_phase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_message_phase()
3337 ahc->msgin_buf[ahc->msgin_index] = ahc_inb(ahc, SCSIBUSL); in ahc_handle_message_phase()
3375 ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
3393 if ((ahc_inb(ahc, SCSISIGI) & ATNI) != 0 in ahc_handle_message_phase()
3411 ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
3413 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3420 ahc_inb(ahc, SXFRCTL0) & ~SPIOEN); in ahc_handle_message_phase()
3428 ahc_outb(ahc, SXFRCTL0, ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3441 lastbyte = (ahc_inb(ahc, SCSISIGI) & ATNI) == 0; in ahc_handle_message_phase()
3448 ahc_outb(ahc, SXFRCTL0, ahc_inb(ahc, SXFRCTL0) & ~SPIOEN); in ahc_handle_message_phase()
3449 ahc->msgin_buf[ahc->msgin_index] = ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
3477 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3489 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3930 tag = ahc_inb(ahc, INITIATOR_TAG); in ahc_parse_msg()
3996 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_msg_reject()
4002 last_msg = ahc_inb(ahc, LAST_MSG); in ahc_handle_msg_reject()
4085 ahc_inb(ahc, SCB_CONTROL) & mask); in ahc_handle_msg_reject()
4137 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_ign_wide_residue()
4143 if ((ahc_inb(ahc, SEQ_FLAGS) & DPHASE) == 0 in ahc_handle_ign_wide_residue()
4159 sgptr = ahc_inb(ahc, SCB_RESIDUAL_SGPTR); in ahc_handle_ign_wide_residue()
4161 && (ahc_inb(ahc, SCB_LUN) & SCB_XFERLEN_ODD) != 0) { in ahc_handle_ign_wide_residue()
4230 ahc_inb(ahc, SCB_LUN) ^ SCB_XFERLEN_ODD); in ahc_handle_ign_wide_residue()
4250 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_reinitialize_dataptrs()
4252 sgptr = (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 3) << 24) in ahc_reinitialize_dataptrs()
4253 | (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 2) << 16) in ahc_reinitialize_dataptrs()
4254 | (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 1) << 8) in ahc_reinitialize_dataptrs()
4255 | ahc_inb(ahc, SCB_RESIDUAL_SGPTR); in ahc_reinitialize_dataptrs()
4263 resid = (ahc_inb(ahc, SCB_RESIDUAL_DATACNT + 2) << 16) in ahc_reinitialize_dataptrs()
4264 | (ahc_inb(ahc, SCB_RESIDUAL_DATACNT + 1) << 8) in ahc_reinitialize_dataptrs()
4265 | ahc_inb(ahc, SCB_RESIDUAL_DATACNT); in ahc_reinitialize_dataptrs()
4273 dscommand1 = ahc_inb(ahc, DSCOMMAND1); in ahc_reinitialize_dataptrs()
4430 ahc->unpause = ahc_inb(ahc, HCNTRL) & IRQMS; in ahc_softc_init()
4570 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset()
4572 sxfrctl1_b = ahc_inb(ahc, SXFRCTL1); in ahc_reset()
4575 sxfrctl1_a = ahc_inb(ahc, SXFRCTL1); in ahc_reset()
4588 } while (--wait && !(ahc_inb(ahc, HCNTRL) & CHIPRSTACK)); in ahc_reset()
4597 sblkctl = ahc_inb(ahc, SBLKCTL) & (SELBUSB|SELWIDE); in ahc_reset()
4629 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset()
4662 if (ahc_inb(ahc, SCB_BASE) != i) in ahc_probe_scbs()
4665 if (ahc_inb(ahc, SCB_BASE) != 0) in ahc_probe_scbs()
5057 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) | SELBUSB); in ahc_chip_init()
5060 scsi_conf = ahc_inb(ahc, SCSICONF + 1); in ahc_chip_init()
5064 ahc_outb(ahc, SIMODE0, ahc_inb(ahc, SIMODE0)|ENIOERR); in ahc_chip_init()
5069 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) & ~SELBUSB); in ahc_chip_init()
5076 scsi_conf = ahc_inb(ahc, SCSICONF); in ahc_chip_init()
5081 ahc_outb(ahc, SIMODE0, ahc_inb(ahc, SIMODE0)|ENIOERR); in ahc_chip_init()
5214 (ahc_inb(ahc, SBLKCTL) & (ENAB40|ENAB20)) == 0 && wait; in ahc_chip_init()
5247 printk (" 0x%x", ahc_inb(ahc, i)); in ahc_init()
5254 printk (" 0x%x", ahc_inb(ahc, i)); in ahc_init()
5388 scsi_conf = ahc_inb(ahc, SCSICONF + 1); in ahc_init()
5394 scsi_conf = ahc_inb(ahc, SCSICONF); in ahc_init()
5412 discenable = ~((ahc_inb(ahc, DISC_DSB + 1) << 8) in ahc_init()
5413 | ahc_inb(ahc, DISC_DSB)); in ahc_init()
5415 ultraenb = (ahc_inb(ahc, ULTRA_ENB + 1) << 8) in ahc_init()
5416 | ahc_inb(ahc, ULTRA_ENB); in ahc_init()
5456 scsirate = ahc_inb(ahc, TARG_SCSIRATE + i); in ahc_init()
5473 offset = ahc_inb(ahc, TARG_OFFSET + i); in ahc_init()
5533 hcntrl = ahc_inb(ahc, HCNTRL); in ahc_intr_enable()
5574 ahc_outb(ahc, SCSISEQ, ahc_inb(ahc, SCSISEQ) & ~ENSELO); in ahc_pause_and_flushwork()
5575 intstat = ahc_inb(ahc, INTSTAT); in ahc_pause_and_flushwork()
5578 intstat = ahc_inb(ahc, INTSTAT); in ahc_pause_and_flushwork()
5583 || (ahc_inb(ahc, SSTAT0) & (SELDO|SELINGO)) != 0)); in ahc_pause_and_flushwork()
5586 ahc_inb(ahc, INTSTAT)); in ahc_pause_and_flushwork()
5641 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_index_busy_tcl()
5643 scbid = ahc_inb(ahc, SCB_64_BTT + TCL_TARGET_OFFSET(tcl)); in ahc_index_busy_tcl()
5647 scbid = ahc_inb(ahc, BUSY_TARGETS + target_offset); in ahc_index_busy_tcl()
5661 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_unbusy_tcl()
5679 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_busy_tcl()
5789 qinpos = ahc_inb(ahc, SNSCB_QOFF); in ahc_qinfifo_count()
5792 qinpos = ahc_inb(ahc, QINPOS); in ahc_qinfifo_count()
5816 qinstart = ahc_inb(ahc, SNSCB_QOFF); in ahc_search_qinfifo()
5819 qinstart = ahc_inb(ahc, QINPOS); in ahc_search_qinfifo()
5935 curscbptr = ahc_inb(ahc, SCBPTR); in ahc_search_qinfifo()
5936 next = ahc_inb(ahc, WAITING_SCBH); /* Start at head of list. */ in ahc_search_qinfifo()
5943 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_search_qinfifo()
5986 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_qinfifo()
5991 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_qinfifo()
6114 next = ahc_inb(ahc, DISCONNECTED_SCBH); in ahc_search_disc_list()
6119 active_scb = ahc_inb(ahc, SCBPTR); in ahc_search_disc_list()
6128 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_search_disc_list()
6151 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_disc_list()
6157 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_disc_list()
6175 next = ahc_inb(ahc, SCB_NEXT); in ahc_rem_scb_from_disc_list()
6205 ahc_outb(ahc, SCB_NEXT, ahc_inb(ahc, FREE_SCBH)); in ahc_add_curscb_to_free_list()
6206 ahc_outb(ahc, FREE_SCBH, ahc_inb(ahc, SCBPTR)); in ahc_add_curscb_to_free_list()
6223 curscb = ahc_inb(ahc, SCBPTR); in ahc_rem_wscb()
6225 next = ahc_inb(ahc, SCB_NEXT); in ahc_rem_wscb()
6241 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_rem_wscb()
6286 active_scb = ahc_inb(ahc, SCBPTR); in ahc_abort_scbs()
6359 scbid = ahc_inb(ahc, SCB_TAG); in ahc_abort_scbs()
6402 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENSCSIRST); in ahc_reset_current_bus()
6403 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_reset_current_bus()
6413 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) | ENSCSIRST); in ahc_reset_current_bus()
6465 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset_channel()
6470 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_reset_channel()
6477 simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST); in ahc_reset_channel()
6496 simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST); in ahc_reset_channel()
7123 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_dump_card_state()
7124 last_phase = ahc_inb(ahc, LASTPHASE); in ahc_dump_card_state()
7128 ahc_inb(ahc, SEQADDR0) | (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_dump_card_state()
7132 ahc_inb(ahc, ACCUM), ahc_inb(ahc, SINDEX), ahc_inb(ahc, DINDEX), in ahc_dump_card_state()
7133 ahc_inb(ahc, ARG_2)); in ahc_dump_card_state()
7134 printk("HCNT = 0x%x SCBPTR = 0x%x\n", ahc_inb(ahc, HCNT), in ahc_dump_card_state()
7135 ahc_inb(ahc, SCBPTR)); in ahc_dump_card_state()
7138 ahc_scsiphase_print(ahc_inb(ahc, SCSIPHASE), &cur_col, 50); in ahc_dump_card_state()
7139 ahc_scsisigi_print(ahc_inb(ahc, SCSISIGI), &cur_col, 50); in ahc_dump_card_state()
7140 ahc_error_print(ahc_inb(ahc, ERROR), &cur_col, 50); in ahc_dump_card_state()
7141 ahc_scsibusl_print(ahc_inb(ahc, SCSIBUSL), &cur_col, 50); in ahc_dump_card_state()
7142 ahc_lastphase_print(ahc_inb(ahc, LASTPHASE), &cur_col, 50); in ahc_dump_card_state()
7143 ahc_scsiseq_print(ahc_inb(ahc, SCSISEQ), &cur_col, 50); in ahc_dump_card_state()
7144 ahc_sblkctl_print(ahc_inb(ahc, SBLKCTL), &cur_col, 50); in ahc_dump_card_state()
7145 ahc_scsirate_print(ahc_inb(ahc, SCSIRATE), &cur_col, 50); in ahc_dump_card_state()
7146 ahc_seqctl_print(ahc_inb(ahc, SEQCTL), &cur_col, 50); in ahc_dump_card_state()
7147 ahc_seq_flags_print(ahc_inb(ahc, SEQ_FLAGS), &cur_col, 50); in ahc_dump_card_state()
7148 ahc_sstat0_print(ahc_inb(ahc, SSTAT0), &cur_col, 50); in ahc_dump_card_state()
7149 ahc_sstat1_print(ahc_inb(ahc, SSTAT1), &cur_col, 50); in ahc_dump_card_state()
7150 ahc_sstat2_print(ahc_inb(ahc, SSTAT2), &cur_col, 50); in ahc_dump_card_state()
7151 ahc_sstat3_print(ahc_inb(ahc, SSTAT3), &cur_col, 50); in ahc_dump_card_state()
7152 ahc_simode0_print(ahc_inb(ahc, SIMODE0), &cur_col, 50); in ahc_dump_card_state()
7153 ahc_simode1_print(ahc_inb(ahc, SIMODE1), &cur_col, 50); in ahc_dump_card_state()
7154 ahc_sxfrctl0_print(ahc_inb(ahc, SXFRCTL0), &cur_col, 50); in ahc_dump_card_state()
7155 ahc_dfcntrl_print(ahc_inb(ahc, DFCNTRL), &cur_col, 50); in ahc_dump_card_state()
7156 ahc_dfstatus_print(ahc_inb(ahc, DFSTATUS), &cur_col, 50); in ahc_dump_card_state()
7161 printk(" 0x%x", ahc_inb(ahc, STACK)|(ahc_inb(ahc, STACK) << 8)); in ahc_dump_card_state()
7164 printk("Card NEXTQSCB = %d\n", ahc_inb(ahc, NEXT_QUEUED_SCB)); in ahc_dump_card_state()
7168 qinpos = ahc_inb(ahc, SNSCB_QOFF); in ahc_dump_card_state()
7171 qinpos = ahc_inb(ahc, QINPOS); in ahc_dump_card_state()
7180 scb_index = ahc_inb(ahc, WAITING_SCBH); in ahc_dump_card_state()
7184 printk("%d:%d ", scb_index, ahc_inb(ahc, SCB_TAG)); in ahc_dump_card_state()
7185 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
7190 scb_index = ahc_inb(ahc, DISCONNECTED_SCBH); in ahc_dump_card_state()
7194 printk("%d:%d ", scb_index, ahc_inb(ahc, SCB_TAG)); in ahc_dump_card_state()
7195 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
7210 scb_index = ahc_inb(ahc, FREE_SCBH); in ahc_dump_card_state()
7215 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
7224 ahc_scb_control_print(ahc_inb(ahc, SCB_CONTROL), &cur_col, 60); in ahc_dump_card_state()
7225 ahc_scb_scsiid_print(ahc_inb(ahc, SCB_SCSIID), &cur_col, 60); in ahc_dump_card_state()
7226 ahc_scb_lun_print(ahc_inb(ahc, SCB_LUN), &cur_col, 60); in ahc_dump_card_state()
7227 ahc_scb_tag_print(ahc_inb(ahc, SCB_TAG), &cur_col, 60); in ahc_dump_card_state()
7243 ahc_scb_control_print(ahc_inb(ahc, SCB_CONTROL), in ahc_dump_card_state()
7245 ahc_scb_tag_print(ahc_inb(ahc, SCB_TAG), &cur_col, 60); in ahc_dump_card_state()
7520 targid_mask = ahc_inb(ahc, TARGID) in ahc_handle_en_lun()
7521 | (ahc_inb(ahc, TARGID + 1) << 8); in ahc_handle_en_lun()
7543 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_handle_en_lun()
7568 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_handle_en_lun()
7571 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_handle_en_lun()
7642 targid_mask = ahc_inb(ahc, TARGID) in ahc_handle_en_lun()
7643 | (ahc_inb(ahc, TARGID + 1) in ahc_handle_en_lun()
7667 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_handle_en_lun()
7670 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_handle_en_lun()
7711 scsiid = ahc_inb(ahc, SCSIID_ULTRA2); in ahc_update_scsiid()
7713 scsiid = ahc_inb(ahc, SCSIID); in ahc_update_scsiid()
7772 hs_mailbox = ahc_inb(ahc, HS_MAILBOX); in ahc_run_tqinfifo()