Lines Matching refs:phase
98 * blind transfers, i.e. no check is done for scsi phase changes. This will
115 * defining SEA_NODATAOUT makes dataout phase being aborted
290 int sea_transfer_pio(struct sea_softc *sea, u_char *phase,
775 /* check for reselection phase */
875 u_char lun, phase;
888 /* wait for a device to win the reselection phase */
915 phase = PH_MSGIN;
916 sea_transfer_pio(sea, &phase, &len, &data);
954 phase = PH_MSGOUT;
956 sea_transfer_pio(sea, &phase, &len, &data);
964 * Transfer data in given phase using polled I/O.
967 sea_transfer_pio(struct sea_softc *sea, u_char *phase, int *count, u_char **data)
969 u_char p = *phase, tmp;
976 * Wait for assertion of REQ, after which the phase bits will
989 * Check for phase mismatch. Reached if the target decides
1007 * The SCSI standard suggests that in MSGOUT phase, the
1009 * phase after REQ has been asserted for the handshake but
1033 *phase = tmp & PH_MASK;
1035 *phase = PH_INVALID;
1037 if (c && (*phase != p))
1051 u_char msg[3], phase;
1107 /* should start a msg_out phase */
1124 phase = PH_MSGOUT;
1126 sea_transfer_pio(sea, &phase, &len, &data);
1148 u_char msg, phase, *msgptr;
1184 phase = PH_MSGOUT;
1186 sea_transfer_pio(sea, &phase, &len, &msgptr);
1259 u_char phase, tmp, old_phase = PH_INVALID;
1284 /* we only have a valid SCSI phase when REQ is asserted */
1292 phase = tmp & PH_MASK;
1293 if (phase != old_phase)
1294 old_phase = phase;
1296 switch (phase) {
1323 if ((tmp & PH_MASK) != phase)
1325 if (!(phase & STAT_IO)) {
1365 sea_transfer_pio(sea, &phase, &scb->datalen,
1372 sea_transfer_pio(sea, &phase, &len, &data);
1410 * transfer phase, as the ATN should be raised
1423 sea_transfer_pio(sea, &phase, &len, &data);
1442 sea_transfer_pio(sea, &phase, &len, &data);
1447 sea_transfer_pio(sea, &phase, &len, &data);
1451 printf("sea: unknown phase\n");
1452 } /* switch (phase) */