Lines Matching defs: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);
391 ms->phase = idle;
419 ms->phase = arbitrating;
459 if (ms->phase != arbitrating)
467 ms->phase = idle;
497 if (ms->phase != arbitrating)
553 if (ms->phase != idle || ms->current_req != NULL) {
554 printk(KERN_ERR "inappropriate mesh_start (phase=%d, ms=%p)",
555 ms->phase, ms);
559 while (ms->phase == idle) {
615 ms->phase = idle;
757 switch (ms->phase) {
811 printk(KERN_ERR "mesh: start_phase called with phase=%d\n",
812 ms->phase);
857 switch (ms->phase) {
872 ms->phase = reselecting;
878 printk(KERN_ERR "mesh: reselected in phase %d/%d tgt %d\n",
879 ms->msgphase, ms->phase, ms->conn_tgt);
889 ms->phase = dataing;
1003 ms->phase = idle;
1111 if (ms->phase > selecting && (in_8(&mr->bus_status1) & BS1_BSY)) {
1213 ms->phase = disconnecting;
1364 int phase;
1368 phase = in_8(&mr->bus_status0) & BS0_PHASE;
1369 if (ms->msgphase == msg_out_xxx && phase == BP_MSGOUT) {
1395 switch (phase) {
1398 ms->phase = dataing;
1402 ms->phase = dataing;
1405 ms->phase = commanding;
1408 ms->phase = statusing;
1431 printk(KERN_DEBUG "mesh: unknown scsi phase %x\n", phase);
1451 /* huh? we expected a phase mismatch */
1487 * wait for the phase mismatch interrupt, then
1537 switch (ms->phase) {
1539 printk(KERN_ERR "mesh: interrupt in idle phase?\n");
1543 dlog(ms, "Selecting phase at command completion",0);
1562 * which will give us a phase mismatch interrupt
1581 * We can get a phase mismatch here if the target
1582 * changes to the status phase, even though we have
1588 * error and phase mismatch exception.
1611 ms->phase = idle;
1617 ++ms->phase;
1642 if (ms->phase == idle)
1663 "phase=%d msgphase=%d\n", mr->bus_status0,
1665 ms->phase, ms->msgphase);
1769 if (ms->phase == sleeping)
1774 while(ms->phase != idle) {
1779 ms->phase = sleeping;
1792 if (ms->phase != sleeping)