Lines Matching full:phase
96 u8 phase; member
153 enum mesh_phase phase; /* what we're currently trying to do */ member
222 tlp->phase = (ms->msgphase << 4) + ms->phase; in dlog()
253 t, lp->bs1, lp->bs0, lp->phase); in dumplog()
278 lp->bs1, lp->bs0, lp->phase, lp->tgt); in dumpslog()
322 printk(KERN_DEBUG " phase=%d msgphase=%d conn_tgt=%d data_ptr=%d\n", in mesh_dump_regs()
323 ms->phase, ms->msgphase, ms->conn_tgt, ms->data_ptr); in mesh_dump_regs()
400 ms->phase = idle; in mesh_init()
428 ms->phase = arbitrating; in mesh_start_cmd()
468 if (ms->phase != arbitrating) in mesh_start_cmd()
476 ms->phase = idle; in mesh_start_cmd()
506 if (ms->phase != arbitrating) in mesh_start_cmd()
562 if (ms->phase != idle || ms->current_req != NULL) { in mesh_start()
563 printk(KERN_ERR "inappropriate mesh_start (phase=%d, ms=%p)", in mesh_start()
564 ms->phase, ms); in mesh_start()
568 while (ms->phase == idle) { in mesh_start()
621 ms->phase = idle; in mesh_done()
763 switch (ms->phase) { in start_phase()
817 printk(KERN_ERR "mesh: start_phase called with phase=%d\n", in start_phase()
818 ms->phase); in start_phase()
863 switch (ms->phase) { in reselected()
878 ms->phase = reselecting; in reselected()
884 printk(KERN_ERR "mesh: reselected in phase %d/%d tgt %d\n", in reselected()
885 ms->msgphase, ms->phase, ms->conn_tgt); in reselected()
895 ms->phase = dataing; in reselected()
1009 ms->phase = idle; in handle_reset()
1115 if (ms->phase > selecting && (in_8(&mr->bus_status1) & BS1_BSY)) { in handle_error()
1217 ms->phase = disconnecting; in handle_msgin()
1367 int phase; in phase_mismatch() local
1371 phase = in_8(&mr->bus_status0) & BS0_PHASE; in phase_mismatch()
1372 if (ms->msgphase == msg_out_xxx && phase == BP_MSGOUT) { in phase_mismatch()
1398 switch (phase) { in phase_mismatch()
1401 ms->phase = dataing; in phase_mismatch()
1405 ms->phase = dataing; in phase_mismatch()
1408 ms->phase = commanding; in phase_mismatch()
1411 ms->phase = statusing; in phase_mismatch()
1434 printk(KERN_DEBUG "mesh: unknown scsi phase %x\n", phase); in phase_mismatch()
1454 /* huh? we expected a phase mismatch */ in cmd_complete()
1490 * wait for the phase mismatch interrupt, then in cmd_complete()
1540 switch (ms->phase) { in cmd_complete()
1542 printk(KERN_ERR "mesh: interrupt in idle phase?\n"); in cmd_complete()
1546 dlog(ms, "Selecting phase at command completion",0); in cmd_complete()
1565 * which will give us a phase mismatch interrupt in cmd_complete()
1584 * We can get a phase mismatch here if the target in cmd_complete()
1585 * changes to the status phase, even though we have in cmd_complete()
1591 * error and phase mismatch exception. in cmd_complete()
1612 ms->phase = idle; in cmd_complete()
1618 ++ms->phase; in cmd_complete()
1644 if (ms->phase == idle) in mesh_queue_lck()
1665 "phase=%d msgphase=%d\n", mr->bus_status0, in DEF_SCSI_QCMD()
1667 ms->phase, ms->msgphase); in DEF_SCSI_QCMD()
1768 if (ms->phase == sleeping) in mesh_suspend()
1773 while(ms->phase != idle) { in mesh_suspend()
1778 ms->phase = sleeping; in mesh_suspend()
1791 if (ms->phase != sleeping) in mesh_resume()