Lines Matching refs:phase
82 * - fixed lockup in MESSAGE IN phase after reconnection
125 * - accept unexpected BUSFREE phase as error condition
145 * - fixed STATUS phase (non-GOOD stati were dropped sometimes;
197 * - improved phase detection
878 CURRENT_SC->SCp.phase |= 1 << 16;
880 if(CURRENT_SC->SCp.phase & selecting) {
885 SETPORT(SIMODE0, (CURRENT_SC->SCp.phase & spiordy) ? ENSPIORDY : 0);
908 int phase, void (*done)(struct scsi_cmnd *))
914 SCpnt->SCp.phase = not_issued | phase;
920 if(SCpnt->SCp.phase & (resetting|check_condition)) {
940 SCp.phase : current state of the command */
942 if ((phase & resetting) || !scsi_sglist(SCpnt)) {
1080 if(SCpnt->SCp.phase & resetted) {
1355 * busfree phase
1375 CURRENT_SC->SCp.phase &= ~syncneg;
1377 if(CURRENT_SC->SCp.phase & completed) {
1381 } else if(CURRENT_SC->SCp.phase & aborted) {
1384 } else if(CURRENT_SC->SCp.phase & resetted) {
1387 } else if(CURRENT_SC->SCp.phase & disconnected) {
1393 CURRENT_SC->SCp.phase |= 1 << 16;
1412 if(DONE_SC->SCp.phase & check_condition) {
1428 if(!(DONE_SC->SCp.phase & not_issued)) {
1479 CURRENT_SC->SCp.phase |= selecting;
1511 CURRENT_SC->SCp.phase &= ~(selecting|not_issued);
1526 if (CURRENT_SC->SCp.phase & aborting) {
1528 } else if (CURRENT_SC->SCp.phase & resetting) {
1531 CURRENT_SC->SCp.phase |= syncneg;
1552 CURRENT_SC->SCp.phase &= ~selecting;
1554 if (CURRENT_SC->SCp.phase & aborted)
1582 if(!(CURRENT_SC->SCp.phase & not_issued))
1624 * message in phase
1677 CURRENT_SC->SCp.phase &= ~disconnected;
1693 CURRENT_SC->SCp.phase |= disconnected;
1697 CURRENT_SC->SCp.phase |= completed;
1822 * message out phase
1828 if((CURRENT_SC->SCp.phase & syncneg) && SYNCNEG==2 && SYNCRATE==0) {
1832 "unexpected MESSAGE OUT phase; rejecting\n");
1840 * message out phase
1856 CURRENT_SC->SCp.phase |= identified;
1859 CURRENT_SC->SCp.phase |= aborted;
1862 CURRENT_SC->SCp.phase |= resetted;
1886 * command phase
1902 * command phase
1926 * status phase
1939 * data in phase
1962 * loop while the phase persists or the fifos are not empty
2047 * or the phase didn't change
2050 "fifos should be empty and phase should have changed\n");
2072 * data out phase
2094 /* until phase changes or all data sent */
2192 } else if(stat0 & SELDO && CURRENT_SC && (CURRENT_SC->SCp.phase & selecting)) {
2228 * FIXME: in which phase?
2316 * disable SPIO mode if previous phase used it
2324 CURRENT_SC->SCp.phase &= ~spiordy;
2328 * accept current dataphase phase
2346 CURRENT_SC->SCp.phase |= spiordy;
2439 "phase |%s%s%s%s%s%s%s%s%s; next=0x%p",
2441 (ptr->SCp.phase & not_issued) ? "not issued|" : "",
2442 (ptr->SCp.phase & selecting) ? "selecting|" : "",
2443 (ptr->SCp.phase & identified) ? "identified|" : "",
2444 (ptr->SCp.phase & disconnected) ? "disconnected|" : "",
2445 (ptr->SCp.phase & completed) ? "completed|" : "",
2446 (ptr->SCp.phase & spiordy) ? "spiordy|" : "",
2447 (ptr->SCp.phase & syncneg) ? "syncneg|" : "",
2448 (ptr->SCp.phase & aborted) ? "aborted|" : "",
2449 (ptr->SCp.phase & resetted) ? "resetted|" : "",
2490 seq_printf(m, "); resid=%d; residual=%d; buffers=%d; phase |",
2494 if (ptr->SCp.phase & not_issued)
2496 if (ptr->SCp.phase & selecting)
2498 if (ptr->SCp.phase & disconnected)
2500 if (ptr->SCp.phase & aborted)
2502 if (ptr->SCp.phase & identified)
2504 if (ptr->SCp.phase & completed)
2506 if (ptr->SCp.phase & spiordy)
2508 if (ptr->SCp.phase & syncneg)