Lines Matching refs:phase
225 SCpnt->SCp.phase = PH_UNDETERMINED; in nsp_queuecommand_lck()
366 unsigned char phase, arbit; in nsphw_start_selection() local
370 phase = nsp_index_read(base, SCSIBUSMON); in nsphw_start_selection()
371 if(phase != BUSMON_BUS_FREE) { in nsphw_start_selection()
378 SCpnt->SCp.phase = PH_ARBSTART; in nsphw_start_selection()
398 SCpnt->SCp.phase = PH_SELSTART; in nsphw_start_selection()
545 unsigned char phase, i_src; in nsp_expect_signal() local
551 phase = nsp_index_read(base, SCSIBUSMON); in nsp_expect_signal()
552 if (phase == 0xff) { in nsp_expect_signal()
561 if ((phase & mask) != 0 && (phase & BUSMON_PHASE_MASK) == current_phase) { in nsp_expect_signal()
574 static int nsp_xfer(struct scsi_cmnd *SCpnt, int phase) in nsp_xfer() argument
586 ret = nsp_expect_signal(SCpnt, phase, BUSMON_REQ); in nsp_xfer()
593 if (len == 1 && SCpnt->SCp.phase == PH_MSG_OUT) { in nsp_xfer()
598 if (phase & BUSMON_IO) { in nsp_xfer()
636 SCpnt->SCp.phase = PH_DATA; in nsp_dataphase_bypass()
953 unsigned char irq_status, irq_phase, phase; in nspintr() local
995 phase = nsp_index_read(base, SCSIBUSMON); in nspintr()
1042 …x phase=0x%x irq_phase=0x%x this can't be happen. reset everything", irq_status, phase, irq_phase); in nspintr()
1072 switch(tmpSC->SCp.phase) { in nspintr()
1075 if ((phase & BUSMON_BSY) == 0) { in nspintr()
1095 tmpSC->SCp.phase = PH_SELECTED; in nspintr()
1104 if ((phase & BUSMON_PHASE_MASK) != BUSPHASE_MESSAGE_IN) { in nspintr()
1124 if (((tmpSC->SCp.phase == PH_MSG_IN) || (tmpSC->SCp.phase == PH_MSG_OUT)) && in nspintr()
1126 …TR, "normal disconnect irq_status=0x%x, phase=0x%x, irq_phase=0x%x", irq_status, phase, irq_phase); in nspintr()
1146 if (phase == 0) { in nspintr()
1147 … "unexpected bus free. irq_status=0x%x, phase=0x%x, irq_phase=0x%x", irq_status, phase, irq_phase); in nspintr()
1155 switch (phase & BUSMON_PHASE_MASK) { in nspintr()
1158 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1163 tmpSC->SCp.phase = PH_COMMAND; in nspintr()
1179 tmpSC->SCp.phase = PH_DATA; in nspintr()
1189 tmpSC->SCp.phase = PH_DATA; in nspintr()
1200 tmpSC->SCp.phase = PH_STATUS; in nspintr()
1209 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1213 tmpSC->SCp.phase = PH_MSG_OUT; in nspintr()
1242 if ((phase & BUSMON_REQ) == 0) { in nspintr()
1246 tmpSC->SCp.phase = PH_MSG_IN; in nspintr()