Lines Matching refs:phase
198 printk(" type=%p phase=%X\n",
199 info->scsi.type, info->scsi.phase);
275 if (info->scsi.phase < ARRAY_SIZE(phases) &&
276 phases[info->scsi.phase])
277 return phases[info->scsi.phase];
564 info->scsi.phase = PHASE_MSGOUT_EXPECT;
605 info->scsi.phase = PHASE_MSGOUT_EXPECT;
635 SCp->phase -= bytes_transferred;
717 total = info->scsi.SCp.phase;
735 if (info->scsi.phase == PHASE_DATAOUT)
755 info->scsi.SCp.phase);
775 if (info->scsi.phase == PHASE_DATAOUT)
786 fas216_set_stc(info, info->scsi.SCp.phase);
839 if (info->scsi.phase == PHASE_DATAIN) {
855 * After a Data-Out phase, there may be unsent
888 fas216_log(info, LOG_CONNECT, "disconnect phase=%02x",
889 info->scsi.phase);
893 switch (info->scsi.phase) {
901 info->scsi.phase = PHASE_IDLE;
904 if (info->scsi.phase == PHASE_IDLE)
922 printk(KERN_ERR "scsi%d.%c: unexpected disconnect in phase %s\n",
946 WARN_ON(info->scsi.phase == PHASE_SELECTION ||
947 info->scsi.phase == PHASE_SELSTEPS);
951 fas216_log(info, LOG_CONNECT, "reconnect phase=%02x cfis=%02x",
952 info->scsi.phase, cfis);
1015 info->scsi.phase = PHASE_MSGIN;
1031 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1048 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1102 info->scsi.phase = PHASE_MSGIN_DISCONNECT;
1159 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1212 fas216_log(info, LOG_ERROR, "unexpected phase change: status = %02x", stat);
1216 fas216_log(info, LOG_ERROR, "parity error during message in phase");
1276 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1302 info->scsi.phase = PHASE_COMMAND;
1338 info->scsi.phase = PHASE_MSGOUT;
1354 "bus service: stat=%02x is=%02x phase=%02x",
1355 stat, is, info->scsi.phase);
1357 switch (info->scsi.phase) {
1389 switch (STATE(stat & STAT_BUSMASK, info->scsi.phase)) {
1394 info->scsi.phase = PHASE_DATAIN;
1409 info->scsi.phase = PHASE_DATAOUT;
1423 info->scsi.phase = PHASE_STATUS;
1437 info->scsi.phase = PHASE_MSGIN;
1448 info->scsi.phase = PHASE_COMMAND;
1465 * If we get another message out phase, this usually
1510 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1514 if (info->scsi.phase == PHASE_MSGIN_DISCONNECT) {
1521 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1526 printk(KERN_ERR "scsi%d.%c: bus phase %s after %s?\n",
1556 "function done: stat=%02x is=%02x phase=%02x",
1557 stat, is, info->scsi.phase);
1559 switch (info->scsi.phase) {
1560 case PHASE_STATUS: /* status phase - read status and msg */
1569 info->scsi.phase = PHASE_DONE;
1578 case PHASE_MSGIN: /* message in phase */
1587 fas216_log(info, 0, "internal phase %s for function done?"
1607 info->scsi.phase = PHASE_IDLE;
1641 add_debug_list(stat, is, inst, info->scsi.phase);
1662 " phase %s inst %02X is %02X stat %02X",
1713 info->scsi.phase = PHASE_SELSTEPS;
1748 * information transfer phase (message out) for test purposes.
1768 info->scsi.phase = PHASE_SELECTION;
1858 info->scsi.phase = PHASE_SELECTION;
2152 info->scsi.phase = PHASE_IDLE;
2186 if (info->scsi.phase == PHASE_IDLE)
2238 if (result == 0 && info->scsi.phase == PHASE_IDLE)
2382 switch (info->scsi.phase) {
2522 if (info->scsi.phase == PHASE_IDLE)
2608 info->scsi.phase = PHASE_IDLE;