Lines Matching refs:phase
228 SCpnt->SCp.phase = PH_UNDETERMINED; in nsp_queuecommand_lck()
369 unsigned char phase, arbit; in nsphw_start_selection() local
373 phase = nsp_index_read(base, SCSIBUSMON); in nsphw_start_selection()
374 if(phase != BUSMON_BUS_FREE) { in nsphw_start_selection()
381 SCpnt->SCp.phase = PH_ARBSTART; in nsphw_start_selection()
401 SCpnt->SCp.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 *SCpnt, int phase) in nsp_xfer() argument
589 ret = nsp_expect_signal(SCpnt, phase, BUSMON_REQ); in nsp_xfer()
596 if (len == 1 && SCpnt->SCp.phase == PH_MSG_OUT) { in nsp_xfer()
601 if (phase & BUSMON_IO) { in nsp_xfer()
639 SCpnt->SCp.phase = PH_DATA; in nsp_dataphase_bypass()
956 unsigned char irq_status, irq_phase, phase; in nspintr() local
998 phase = nsp_index_read(base, SCSIBUSMON); in nspintr()
1045 …x phase=0x%x irq_phase=0x%x this can't be happen. reset everything", irq_status, phase, irq_phase); in nspintr()
1075 switch(tmpSC->SCp.phase) { in nspintr()
1078 if ((phase & BUSMON_BSY) == 0) { in nspintr()
1098 tmpSC->SCp.phase = PH_SELECTED; in nspintr()
1107 if ((phase & BUSMON_PHASE_MASK) != BUSPHASE_MESSAGE_IN) { in nspintr()
1127 if (((tmpSC->SCp.phase == PH_MSG_IN) || (tmpSC->SCp.phase == PH_MSG_OUT)) && in nspintr()
1129 …TR, "normal disconnect irq_status=0x%x, phase=0x%x, irq_phase=0x%x", irq_status, phase, irq_phase); in nspintr()
1149 if (phase == 0) { in nspintr()
1150 … "unexpected bus free. irq_status=0x%x, phase=0x%x, irq_phase=0x%x", irq_status, phase, irq_phase); in nspintr()
1158 switch (phase & BUSMON_PHASE_MASK) { in nspintr()
1161 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1166 tmpSC->SCp.phase = PH_COMMAND; in nspintr()
1182 tmpSC->SCp.phase = PH_DATA; in nspintr()
1192 tmpSC->SCp.phase = PH_DATA; in nspintr()
1203 tmpSC->SCp.phase = PH_STATUS; in nspintr()
1212 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1216 tmpSC->SCp.phase = PH_MSG_OUT; in nspintr()
1245 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1249 tmpSC->SCp.phase = PH_MSG_IN; in nspintr()