Lines Matching refs:phase
96 u8 phase;
153 enum mesh_phase phase; /* what we're currently trying to do */
222 tlp->phase = (ms->msgphase << 4) + ms->phase;
253 t, lp->bs1, lp->bs0, lp->phase);
278 lp->bs1, lp->bs0, lp->phase, lp->tgt);
322 printk(KERN_DEBUG " phase=%d msgphase=%d conn_tgt=%d data_ptr=%d\n",
323 ms->phase, ms->msgphase, ms->conn_tgt, ms->data_ptr);
400 ms->phase = idle;
428 ms->phase = arbitrating;
468 if (ms->phase != arbitrating)
476 ms->phase = idle;
506 if (ms->phase != arbitrating)
562 if (ms->phase != idle || ms->current_req != NULL) {
563 printk(KERN_ERR "inappropriate mesh_start (phase=%d, ms=%p)",
564 ms->phase, ms);
568 while (ms->phase == idle) {
621 ms->phase = idle;
763 switch (ms->phase) {
817 printk(KERN_ERR "mesh: start_phase called with phase=%d\n",
818 ms->phase);
863 switch (ms->phase) {
878 ms->phase = reselecting;
884 printk(KERN_ERR "mesh: reselected in phase %d/%d tgt %d\n",
885 ms->msgphase, ms->phase, ms->conn_tgt);
895 ms->phase = dataing;
1009 ms->phase = idle;
1117 if (ms->phase > selecting && (in_8(&mr->bus_status1) & BS1_BSY)) {
1219 ms->phase = disconnecting;
1370 int phase;
1374 phase = in_8(&mr->bus_status0) & BS0_PHASE;
1375 if (ms->msgphase == msg_out_xxx && phase == BP_MSGOUT) {
1401 switch (phase) {
1404 ms->phase = dataing;
1408 ms->phase = dataing;
1411 ms->phase = commanding;
1414 ms->phase = statusing;
1437 printk(KERN_DEBUG "mesh: unknown scsi phase %x\n", phase);
1457 /* huh? we expected a phase mismatch */
1493 * wait for the phase mismatch interrupt, then
1543 switch (ms->phase) {
1545 printk(KERN_ERR "mesh: interrupt in idle phase?\n");
1549 dlog(ms, "Selecting phase at command completion",0);
1568 * which will give us a phase mismatch interrupt
1587 * We can get a phase mismatch here if the target
1588 * changes to the status phase, even though we have
1594 * error and phase mismatch exception.
1615 ms->phase = idle;
1621 ++ms->phase;
1647 if (ms->phase == idle)
1668 "phase=%d msgphase=%d\n", mr->bus_status0,
1670 ms->phase, ms->msgphase);
1774 if (ms->phase == sleeping)
1779 while(ms->phase != idle) {
1784 ms->phase = sleeping;
1797 if (ms->phase != sleeping)