Lines Matching refs:sc_state

380 	sc->sc_state = 0;
568 sc->sc_state = NCR_CLEANING;
629 NCR_MISC(("[NCR_INIT(%d) %d] ", doreset, sc->sc_state));
631 if (sc->sc_state == 0) {
658 if (sc->sc_state == 0) {
684 sc->sc_state = NCR_SBR;
689 sc->sc_state = NCR_IDLE;
820 sc->sc_state = NCR_SELECTING;
1126 if (sc->sc_state == NCR_IDLE)
1256 if (sc->sc_state != NCR_IDLE)
1257 panic("%s: not IDLE (state=%d)", __func__, sc->sc_state);
1376 if (sc->sc_state == NCR_IDLE)
1469 if (sc->sc_state != NCR_CLEANING) {
1470 sc->sc_state = NCR_IDLE;
1700 sc->sc_state = NCR_IDENTIFIED;
1713 sc->sc_state = NCR_CONNECTED;
1789 sc->sc_state != NCR_RESELECTED) {
1791 "prev %d, state %d\n", sc->sc_prevphase, sc->sc_state);
1811 switch (sc->sc_state) {
1835 NCR_MSGS(("gotmsg(%x) state %d", sc->sc_imess[0], sc->sc_state));
1847 switch (sc->sc_state) {
1865 sc->sc_state = NCR_CMDCOMPLETE;
1939 sc->sc_state = NCR_DISCONNECT;
2200 if (sc->sc_state != NCR_CONNECTED)
2209 if (sc->sc_state != NCR_CONNECTED)
2338 NCR_INTS(("[ncr53c9x_intr: state %d]", sc->sc_state));
2366 if (sc->sc_state != NCR_SBR) {
2393 if (sc->sc_state == NCR_CONNECTED ||
2394 sc->sc_state == NCR_SELECTING) {
2420 sc->sc_state, sc->sc_phase, sc->sc_prevphase);
2451 if (sc->sc_state == NCR_SELECTING)
2526 switch (sc->sc_state) {
2586 "phase(c %x, p %x)]; ", sc->sc_state,
2625 switch (sc->sc_state) {
2635 "state %d, intr %02x\n", sc->sc_state, sc->sc_espintr);
2668 if (sc->sc_state == NCR_SELECTING) {
2676 sc->sc_state = NCR_RESELECTED;
2734 if (sc->sc_state != NCR_CONNECTED &&
2735 sc->sc_state != NCR_IDENTIFIED) {
2738 "state %d, intr %02x\n", sc->sc_state,
2757 if (sc->sc_state == NCR_IDLE &&
2878 sc->sc_state = NCR_CONNECTED;
2888 if (sc->sc_state == NCR_IDLE) {
2918 sc->sc_state = NCR_CMDCOMPLETE;
2930 "phase(c %x, p %x)]\n", sc->sc_state,
2939 if (sc->sc_state != NCR_CONNECTED || ecb == NULL)
3117 sc->sc_state = NCR_IDLE;
3159 if (sc->sc_state == NCR_CONNECTED)
3173 if (sc->sc_state == NCR_IDLE)
3194 sc->sc_state, sc->sc_nexus,