Lines Matching refs:ph
205 u_int8_t ph, isrc; in nsp_expect_signal() local
209 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON); in nsp_expect_signal()
210 if (ph == (u_int8_t) -1) in nsp_expect_signal()
217 if ((ph & mask) != 0 && (ph & SCBUSMON_PHMASK) == curphase) in nsp_expect_signal()
327 register u_int8_t arbs, ph; local
334 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON);
335 if (ph != SCBUSMON_FREE)
391 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON);
392 if ((ph & SCBUSMON_BSY) == 0)
399 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON);
400 if ((ph & SCBUSMON_BSY) != 0)
1259 nsp_error(struct nsp_softc * sc, u_char *s, u_int8_t isrc, u_int8_t ph, in nsp_error() argument
1266 (u_int) isrc, (u_int) ph, (u_int) irqphs); in nsp_error()
1358 u_int8_t isrc, ph, irqphs, cr, regv; local
1378 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON);
1423 nsp_error(sc, "current status", isrc, ph, irqphs);
1461 nsp_error(sc, "unknown scsi phase changes", isrc, ph, irqphs);
1471 if ((ph & SCBUSMON_BSY) == 0)
1500 if ((ph & SCBUSMON_PHMASK) != PHASE_MSGIN)
1515 if (NSP_IS_PHASE_DATA(ph) == 0)
1517 irqphs = (ph & IRQPHS_PHMASK);
1549 if (ph == 0)
1551 nsp_error(sc, "unexpected bus free", isrc, ph, irqphs);
1559 if (nsp_phase_match(sc, PHASE_CMD, ph) != 0)
1597 if (nsp_phase_match(sc, PHASE_STATUS, ph) != 0)
1629 if (nsp_phase_match(sc, PHASE_MSGOUT, ph) != 0)
1656 isrc, ph, irqphs);
1679 nsp_error(sc, "MSGOUT: xfer short", isrc, ph, irqphs);
1686 if (nsp_phase_match(sc, PHASE_MSGIN, ph) != 0)
1740 nsp_error(sc, "unknown scsi phase", isrc, ph, irqphs);
1759 u_int8_t ph, regv; local
1764 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON);
1765 switch (ph & SCBUSMON_PHMASK)
1778 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON);
1779 if ((ph & SCBUSMON_REQ) == 0)
1795 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON);
1796 if ((ph & SCBUSMON_PHMASK) != PHASE_DATAOUT)
1808 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON);
1809 if ((ph & SCBUSMON_PHMASK) == PHASE_DATAOUT)