Lines Matching full:phase
231 scsi_pointer->phase = PH_UNDETERMINED; in nsp_queuecommand_lck()
239 SCp.phase : current state of the command */ in nsp_queuecommand_lck()
361 * Start selection phase
371 unsigned char phase, arbit; in nsphw_start_selection() local
375 phase = nsp_index_read(base, SCSIBUSMON); in nsphw_start_selection()
376 if(phase != BUSMON_BUS_FREE) { in nsphw_start_selection()
383 scsi_pointer->phase = PH_ARBSTART; in nsphw_start_selection()
403 scsi_pointer->phase = PH_SELSTART; in nsphw_start_selection()
514 * wait for bus phase change
550 unsigned char phase, i_src; in nsp_expect_signal() local
556 phase = nsp_index_read(base, SCSIBUSMON); in nsp_expect_signal()
557 if (phase == 0xff) { in nsp_expect_signal()
566 if ((phase & mask) != 0 && (phase & BUSMON_PHASE_MASK) == current_phase) { in nsp_expect_signal()
567 //nsp_dbg(NSP_DEBUG_INTR, "ret 1 phase=0x%x", phase); in nsp_expect_signal()
579 static int nsp_xfer(struct scsi_cmnd *const SCpnt, int phase) in nsp_xfer() argument
592 ret = nsp_expect_signal(SCpnt, phase, BUSMON_REQ); in nsp_xfer()
599 if (len == 1 && scsi_pointer->phase == PH_MSG_OUT) { in nsp_xfer()
604 if (phase & BUSMON_IO) { in nsp_xfer()
640 * data phase skip only occures in case of SCSI_LOW_READ in nsp_dataphase_bypass()
643 scsi_pointer->phase = PH_DATA; in nsp_dataphase_bypass()
715 * read data in DATA IN phase
747 if (stat == BUSPHASE_DATA_IN) { /* phase changed? */ in nsp_pio_read()
751 nsp_dbg(NSP_DEBUG_DATA_IO, "phase changed stat=0x%x", stat); in nsp_pio_read()
818 * write data in DATA OUT phase
848 nsp_dbg(NSP_DEBUG_DATA_IO, "phase changed stat=0x%x, res=%d\n", stat, res); in nsp_pio_write()
966 unsigned char irq_status, irq_phase, phase; in nspintr() local
1006 * Do not read an irq_phase register if no scsi phase interrupt. in nspintr()
1007 * Unless, you should lose a scsi phase interrupt. in nspintr()
1009 phase = nsp_index_read(base, SCSIBUSMON); in nspintr()
1057 … "CurrentSC==NULL irq_status=0x%x phase=0x%x irq_phase=0x%x this can't be happen. reset everything… in nspintr()
1087 switch (scsi_pointer->phase) { in nspintr()
1090 if ((phase & BUSMON_BSY) == 0) { in nspintr()
1110 scsi_pointer->phase = PH_SELECTED; in nspintr()
1117 //nsp_dbg(NSP_DEBUG_INTR, "phase reselect"); in nspintr()
1119 if ((phase & BUSMON_PHASE_MASK) != BUSPHASE_MESSAGE_IN) { in nspintr()
1139 if ((scsi_pointer->phase == PH_MSG_IN || in nspintr()
1140 scsi_pointer->phase == PH_MSG_OUT) && in nspintr()
1142 …(NSP_DEBUG_INTR, "normal disconnect irq_status=0x%x, phase=0x%x, irq_phase=0x%x", irq_status, phas… in nspintr()
1162 if (phase == 0) { in nspintr()
1163 …g(KERN_DEBUG, "unexpected bus free. irq_status=0x%x, phase=0x%x, irq_phase=0x%x", irq_status, phas… in nspintr()
1171 switch (phase & BUSMON_PHASE_MASK) { in nspintr()
1174 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1179 scsi_pointer->phase = PH_COMMAND; in nspintr()
1195 scsi_pointer->phase = PH_DATA; in nspintr()
1205 scsi_pointer->phase = PH_DATA; in nspintr()
1216 scsi_pointer->phase = PH_STATUS; in nspintr()
1226 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1230 scsi_pointer->phase = PH_MSG_OUT; in nspintr()
1259 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1263 scsi_pointer->phase = PH_MSG_IN; in nspintr()