Lines Matching refs:phase

201 	printk("           type=%p phase=%X\n",
202 info->scsi.type, info->scsi.phase);
278 if (info->scsi.phase < ARRAY_SIZE(phases) &&
279 phases[info->scsi.phase])
280 return phases[info->scsi.phase];
567 info->scsi.phase = PHASE_MSGOUT_EXPECT;
608 info->scsi.phase = PHASE_MSGOUT_EXPECT;
638 SCp->phase -= bytes_transferred;
720 total = info->scsi.SCp.phase;
738 if (info->scsi.phase == PHASE_DATAOUT)
758 info->scsi.SCp.phase);
778 if (info->scsi.phase == PHASE_DATAOUT)
789 fas216_set_stc(info, info->scsi.SCp.phase);
842 if (info->scsi.phase == PHASE_DATAIN) {
858 * After a Data-Out phase, there may be unsent
891 fas216_log(info, LOG_CONNECT, "disconnect phase=%02x",
892 info->scsi.phase);
896 switch (info->scsi.phase) {
904 info->scsi.phase = PHASE_IDLE;
907 if (info->scsi.phase == PHASE_IDLE)
925 printk(KERN_ERR "scsi%d.%c: unexpected disconnect in phase %s\n",
949 WARN_ON(info->scsi.phase == PHASE_SELECTION ||
950 info->scsi.phase == PHASE_SELSTEPS);
954 fas216_log(info, LOG_CONNECT, "reconnect phase=%02x cfis=%02x",
955 info->scsi.phase, cfis);
1018 info->scsi.phase = PHASE_MSGIN;
1034 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1051 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1107 info->scsi.phase = PHASE_MSGIN_DISCONNECT;
1164 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1217 fas216_log(info, LOG_ERROR, "unexpected phase change: status = %02x", stat);
1221 fas216_log(info, LOG_ERROR, "parity error during message in phase");
1281 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1307 info->scsi.phase = PHASE_COMMAND;
1343 info->scsi.phase = PHASE_MSGOUT;
1359 "bus service: stat=%02x is=%02x phase=%02x",
1360 stat, is, info->scsi.phase);
1362 switch (info->scsi.phase) {
1395 switch (STATE(stat & STAT_BUSMASK, info->scsi.phase)) {
1400 info->scsi.phase = PHASE_DATAIN;
1415 info->scsi.phase = PHASE_DATAOUT;
1429 info->scsi.phase = PHASE_STATUS;
1443 info->scsi.phase = PHASE_MSGIN;
1454 info->scsi.phase = PHASE_COMMAND;
1471 * If we get another message out phase, this usually
1516 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1520 if (info->scsi.phase == PHASE_MSGIN_DISCONNECT) {
1527 info->scsi.phase = PHASE_MSGOUT_EXPECT;
1532 printk(KERN_ERR "scsi%d.%c: bus phase %s after %s?\n",
1562 "function done: stat=%02x is=%02x phase=%02x",
1563 stat, is, info->scsi.phase);
1565 switch (info->scsi.phase) {
1566 case PHASE_STATUS: /* status phase - read status and msg */
1575 info->scsi.phase = PHASE_DONE;
1584 case PHASE_MSGIN: /* message in phase */
1593 fas216_log(info, 0, "internal phase %s for function done?"
1613 info->scsi.phase = PHASE_IDLE;
1647 add_debug_list(stat, is, inst, info->scsi.phase);
1668 " phase %s inst %02X is %02X stat %02X",
1719 info->scsi.phase = PHASE_SELSTEPS;
1754 * information transfer phase (message out) for test purposes.
1774 info->scsi.phase = PHASE_SELECTION;
1853 info->scsi.phase = PHASE_SELECTION;
2151 info->scsi.phase = PHASE_IDLE;
2185 if (info->scsi.phase == PHASE_IDLE)
2236 if (result == 0 && info->scsi.phase == PHASE_IDLE)
2384 switch (info->scsi.phase) {
2524 if (info->scsi.phase == PHASE_IDLE)
2610 info->scsi.phase = PHASE_IDLE;