Lines Matching refs:phase

231 	scsi_pointer->phase	   = PH_UNDETERMINED;  in nsp_queuecommand_lck()
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()
548 unsigned char phase, i_src; in nsp_expect_signal() local
554 phase = nsp_index_read(base, SCSIBUSMON); in nsp_expect_signal()
555 if (phase == 0xff) { in nsp_expect_signal()
564 if ((phase & mask) != 0 && (phase & BUSMON_PHASE_MASK) == current_phase) { in nsp_expect_signal()
577 static int nsp_xfer(struct scsi_cmnd *const SCpnt, int phase) in nsp_xfer() argument
590 ret = nsp_expect_signal(SCpnt, phase, BUSMON_REQ); in nsp_xfer()
597 if (len == 1 && scsi_pointer->phase == PH_MSG_OUT) { in nsp_xfer()
602 if (phase & BUSMON_IO) { in nsp_xfer()
641 scsi_pointer->phase = PH_DATA; in nsp_dataphase_bypass()
964 unsigned char irq_status, irq_phase, phase; in nspintr() local
1007 phase = nsp_index_read(base, SCSIBUSMON); in nspintr()
1055 …x phase=0x%x irq_phase=0x%x this can't be happen. reset everything", irq_status, phase, irq_phase); in nspintr()
1085 switch (scsi_pointer->phase) { in nspintr()
1088 if ((phase & BUSMON_BSY) == 0) { in nspintr()
1108 scsi_pointer->phase = PH_SELECTED; in nspintr()
1117 if ((phase & BUSMON_PHASE_MASK) != BUSPHASE_MESSAGE_IN) { in nspintr()
1137 if ((scsi_pointer->phase == PH_MSG_IN || in nspintr()
1138 scsi_pointer->phase == PH_MSG_OUT) && in nspintr()
1140 …TR, "normal disconnect irq_status=0x%x, phase=0x%x, irq_phase=0x%x", irq_status, phase, irq_phase); in nspintr()
1160 if (phase == 0) { in nspintr()
1161 … "unexpected bus free. irq_status=0x%x, phase=0x%x, irq_phase=0x%x", irq_status, phase, irq_phase); in nspintr()
1169 switch (phase & BUSMON_PHASE_MASK) { in nspintr()
1172 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1177 scsi_pointer->phase = PH_COMMAND; in nspintr()
1193 scsi_pointer->phase = PH_DATA; in nspintr()
1203 scsi_pointer->phase = PH_DATA; in nspintr()
1214 scsi_pointer->phase = PH_STATUS; in nspintr()
1224 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1228 scsi_pointer->phase = PH_MSG_OUT; in nspintr()
1257 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1261 scsi_pointer->phase = PH_MSG_IN; in nspintr()