Lines Matching refs:phase

308 		reqp->phase     = NR_PHASE;  in ncr5380_scsi_request()
376 tmp->phase = NR_PHASE; in ncr5380_scsi_request()
649 transfer_dma(reqp, reqp->phase, 0); in ncr_dma_intr()
680 connected->phase, 0); in ncr_ctrl_intr()
711 uint8_t phase; in scsi_select() local
885 reqp->phase = PH_CMD; in scsi_select()
896 phase = PH_MSGOUT; in scsi_select()
908 if (transfer_pio(&phase, tmp, &cnt, 0) || cnt) { in scsi_select()
910 if ((phase == PH_CMD) && (sc->sc_selected & targ_bit) == 0) { in scsi_select()
914 reqp->phase = PH_CMD; in scsi_select()
940 reqp->phase = PH_MSGOUT; in scsi_select()
967 uint8_t tmp, phase; in information_transfer() local
1001 phase = (tmp >> 2) & 7; in information_transfer()
1002 if (phase != reqp->phase) { in information_transfer()
1003 reqp->phase = phase; in information_transfer()
1006 DBG_INFPRINT(show_phase, reqp, phase); in information_transfer()
1013 ((phase == PH_DATAOUT) || (phase == PH_DATAIN))) { in information_transfer()
1023 switch (phase) { in information_transfer()
1056 transfer_dma(reqp, phase, poll); in information_transfer()
1065 if (transfer_pdma(&phase, reqp->xdata_ptr, &len) == 0) in information_transfer()
1068 transfer_pio(&phase, reqp->xdata_ptr, &len, 0); in information_transfer()
1079 transfer_pio(&phase, &tmp, &len, 1); in information_transfer()
1084 transfer_pio(&phase, &reqp->msgout, &len, 0); in information_transfer()
1098 transfer_pio(&phase, (uint8_t *)&reqp->xcmd, &len, 0); in information_transfer()
1103 transfer_pio(&phase, &tmp, &len, 0); in information_transfer()
1255 uint8_t phase; in reselect() local
1303 phase = PH_MSGIN; in reselect()
1305 transfer_pio(&phase, &msg, &len, 0); in reselect()
1335 phase = PH_MSGOUT; in reselect()
1338 if (transfer_pio(&phase, &msg, &len, 0) || len) in reselect()
1357 transfer_pio(u_char *phase, u_char *data, u_long *len, int dont_drop_ack) in transfer_pio() argument
1360 uint8_t ph = *phase; in transfer_pio()
1415 *phase = (tmp >> 2) & 7; in transfer_pio()
1417 *phase = NR_PHASE; in transfer_pio()
1420 *phase, cnt); in transfer_pio()
1422 if (cnt == 0 || (*phase == ph)) in transfer_pio()
1434 transfer_dma(SC_REQ *reqp, u_int phase, int poll) in transfer_dma() argument
1447 SET_5380_REG(NCR5380_TCOM, phase); in transfer_dma()
1470 scsi_dma_setup(reqp, phase, mbase); in transfer_dma()
1526 if ((reqp->dr_flag & DRIVER_BOUNCING) && (PH_IN(reqp->phase))) { in dma_ready()
1544 if (PH_IN(reqp->phase) && (dmstat & SC_PAR_ERR)) { in dma_ready()
1664 uint8_t phase; in reach_msg_out() local
1668 if ((phase = GET_5380_REG(NCR5380_IDSTAT)) & SC_S_REQ) in reach_msg_out()
1669 phase = (phase >> 2) & 7; in reach_msg_out()
1672 ncr_aprint(sc, "Trying to reach Message-out phase, now: %d\n", phase); in reach_msg_out()
1673 if (phase == PH_MSGOUT) in reach_msg_out()
1676 SET_5380_REG(NCR5380_TCOM, phase); in reach_msg_out()
1681 if (((GET_5380_REG(NCR5380_IDSTAT) >> 2) & 7) != phase) in reach_msg_out()
1683 if (PH_IN(phase)) { in reach_msg_out()
1696 if ((phase = GET_5380_REG(NCR5380_IDSTAT)) & SC_S_REQ) { in reach_msg_out()
1697 phase = (phase >> 2) & 7; in reach_msg_out()
1698 if (phase == PH_MSGOUT) { in reach_msg_out()
1704 phase, len - n); in reach_msg_out()
1973 show_phase(SC_REQ *reqp, int phase) in show_phase() argument
1976 printf("INFTRANS: %d Phase = %s\n", reqp->targ_id, phase_names[phase]); in show_phase()
2060 printf("phase = %d, ", connected->phase); in scsi_show()