• Home
  • Raw
  • Download

Lines Matching refs:currSCCB

872 static void FPT_hostDataXferRestart(struct sccb *currSCCB);
1746 struct sccb *currSCCB; in FlashPoint_HandleInterrupt() local
1769 currSCCB = pCurrCard->currentSCCB; in FlashPoint_HandleInterrupt()
1822 currSCCB->Sccb_XferState |= F_NO_DATA_YET; in FlashPoint_HandleInterrupt()
1824 currSCCB->Sccb_savedATC = currSCCB->Sccb_ATC; in FlashPoint_HandleInterrupt()
1827 currSCCB->Sccb_scsistat = DISCONNECT_ST; in FlashPoint_HandleInterrupt()
1828 FPT_queueDisconnect(currSCCB, thisCard); in FlashPoint_HandleInterrupt()
1874 currSCCB->Sccb_XferState |= in FlashPoint_HandleInterrupt()
1876 currSCCB->Sccb_savedATC = in FlashPoint_HandleInterrupt()
1877 currSCCB->Sccb_ATC; in FlashPoint_HandleInterrupt()
1882 currSCCB->Sccb_scsistat = DISCONNECT_ST; in FlashPoint_HandleInterrupt()
1883 FPT_queueDisconnect(currSCCB, thisCard); in FlashPoint_HandleInterrupt()
1946 currSCCB); in FlashPoint_HandleInterrupt()
2314 struct sccb *currSCCB; in FPT_ssel() local
2319 currSCCB = CurrCard->currentSCCB; in FPT_ssel()
2320 target = currSCCB->TargID; in FPT_ssel()
2327 currSCCB->ControlByte &= ~F_USE_CMD_Q; in FPT_ssel()
2332 lun = currSCCB->Lun; in FPT_ssel()
2337 if (!(currSCCB->ControlByte & F_USE_CMD_Q)) { in FPT_ssel()
2380 || (!(currSCCB->ControlByte & F_USE_CMD_Q)))) { in FPT_ssel()
2393 CurrCard->discQ_Tbl[lastTag] = currSCCB; in FPT_ssel()
2411 if (currSCCB->OperationCode == RESET_COMMAND) { in FPT_ssel()
2413 (currSCCB-> in FPT_ssel()
2418 currSCCB->Sccb_scsimsg = SMDEV_RESET; in FPT_ssel()
2422 currSCCB->Sccb_scsistat = SELECT_BDR_ST; in FPT_ssel()
2438 else if (currSCCB->Sccb_scsistat == ABORT_ST) { in FPT_ssel()
2440 (currSCCB-> in FPT_ssel()
2447 char)(currSCCB-> in FPT_ssel()
2453 (MPM_OP + AMSG_OUT + currSCCB->Sccb_tag)); in FPT_ssel()
2463 currSCCB->Sccb_scsistat = SELECT_WN_ST; in FPT_ssel()
2469 currSCCB->Sccb_scsistat = SELECT_SN_ST; in FPT_ssel()
2474 if (currSCCB->ControlByte & F_USE_CMD_Q) { in FPT_ssel()
2480 currSCCB->ControlByte &= ~F_USE_CMD_Q; in FPT_ssel()
2489 currSCCB->Sccb_idmsg)); in FPT_ssel()
2496 currSCCB->Sccb_scsistat = SELECT_ST; in FPT_ssel()
2504 currSCCB->Sccb_idmsg)); in FPT_ssel()
2508 (((unsigned char)(currSCCB-> in FPT_ssel()
2523 currSCCB->Sccb_tag = lastTag; in FPT_ssel()
2525 currSCCB; in FPT_ssel()
2538 currSCCB->Sccb_scsistat = SELECT_Q_ST; in FPT_ssel()
2551 (MPM_OP + AMSG_OUT + currSCCB->Sccb_idmsg)); in FPT_ssel()
2553 currSCCB->Sccb_scsistat = SELECT_ST; in FPT_ssel()
2559 theCCB = (unsigned char *)&currSCCB->Cdb[0]; in FPT_ssel()
2563 for (i = 0; i < currSCCB->CdbLength; i++) { in FPT_ssel()
2569 if (currSCCB->CdbLength != TWELVE_BYTE_CMD) in FPT_ssel()
2581 if (!(currSCCB->Sccb_MGRFlags & F_DEV_SELECTED)) { in FPT_ssel()
2613 struct sccb *currSCCB; in FPT_sres() local
2622 currSCCB = pCurrCard->currentSCCB; in FPT_sres()
2623 if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_sres()
2625 currSCCB->Sccb_scsistat = BUS_FREE_ST; in FPT_sres()
2627 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_sres()
2629 currSCCB->Sccb_scsistat = BUS_FREE_ST; in FPT_sres()
2634 currTar_Info->TarLUNBusy[currSCCB->Lun] = 0; in FPT_sres()
2635 if (currSCCB->Sccb_scsistat != ABORT_ST) { in FPT_sres()
2638 LunDiscQ_Idx[currSCCB-> in FPT_sres()
2644 if (currSCCB->Sccb_tag) { in FPT_sres()
2645 if (currSCCB->Sccb_scsistat != ABORT_ST) { in FPT_sres()
2647 pCurrCard->discQ_Tbl[currSCCB-> in FPT_sres()
2651 if (currSCCB->Sccb_scsistat != ABORT_ST) { in FPT_sres()
2891 struct sccb *currSCCB; in FPT_sdecm() local
2896 currSCCB = CurrCard->currentSCCB; in FPT_sdecm()
2898 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_sdecm()
2901 if (!(currSCCB->Sccb_XferState & F_NO_DATA_YET)) { in FPT_sdecm()
2902 currSCCB->Sccb_ATC = currSCCB->Sccb_savedATC; in FPT_sdecm()
2904 FPT_hostDataXferRestart(currSCCB); in FPT_sdecm()
2914 if (currSCCB->Sccb_scsistat == SELECT_Q_ST) { in FPT_sdecm()
2934 if ((currSCCB->Sccb_scsistat == SELECT_SN_ST) || in FPT_sdecm()
2935 (currSCCB->Sccb_scsistat == SELECT_WN_ST) || in FPT_sdecm()
2949 if (currSCCB->Lun == 0x00) { in FPT_sdecm()
2950 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_sdecm()
2959 else if (currSCCB->Sccb_scsistat == in FPT_sdecm()
2980 currSCCB->ControlByte &= ~F_USE_CMD_Q; in FPT_sdecm()
2982 CurrCard->discQ_Tbl[currSCCB-> in FPT_sdecm()
2984 currSCCB->Sccb_tag = 0x00; in FPT_sdecm()
2991 if (currSCCB->Lun == 0x00) { in FPT_sdecm()
3004 currTar_Info->TarLUNBusy[currSCCB-> in FPT_sdecm()
3009 currSCCB->ControlByte &= in FPT_sdecm()
3036 FPT_shandem(port, p_card, currSCCB); in FPT_sdecm()
3043 message = FPT_sfm(port, currSCCB); in FPT_sdecm()
3045 if (currSCCB->Sccb_scsimsg != SMPARITY) in FPT_sdecm()
3053 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_sdecm()
3054 currSCCB->Sccb_scsimsg = SMREJECT; in FPT_sdecm()
3139 struct sccb *currSCCB; in FPT_sisyncn() local
3142 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_sisyncn()
3143 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_sisyncn()
3149 (currSCCB-> in FPT_sisyncn()
3220 struct sccb *currSCCB; in FPT_stsyncn() local
3223 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_stsyncn()
3224 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_stsyncn()
3226 sync_msg = FPT_sfm(port, currSCCB); in FPT_stsyncn()
3228 if ((sync_msg == 0x00) && (currSCCB->Sccb_scsimsg == SMPARITY)) { in FPT_stsyncn()
3236 offset = FPT_sfm(port, currSCCB); in FPT_stsyncn()
3238 if ((offset == 0x00) && (currSCCB->Sccb_scsimsg == SMPARITY)) { in FPT_stsyncn()
3313 FPT_sssyncv(port, currSCCB->TargID, sync_reg, currTar_Info); in FPT_stsyncn()
3315 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_stsyncn()
3379 struct sccb *currSCCB; in FPT_siwidn() local
3382 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_siwidn()
3383 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_siwidn()
3389 (currSCCB-> in FPT_siwidn()
3435 struct sccb *currSCCB; in FPT_stwidn() local
3438 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_stwidn()
3439 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_stwidn()
3441 width = FPT_sfm(port, currSCCB); in FPT_stwidn()
3443 if ((width == 0x00) && (currSCCB->Sccb_scsimsg == SMPARITY)) { in FPT_stwidn()
3460 FPT_sssyncv(port, currSCCB->TargID, width, currTar_Info); in FPT_stwidn()
3462 if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_stwidn()
3472 currSCCB->Sccb_scsistat = SELECT_SN_ST; in FPT_stwidn()
3677 struct sccb *currSCCB; in FPT_ssenss() local
3679 currSCCB = pCurrCard->currentSCCB; in FPT_ssenss()
3681 currSCCB->Save_CdbLen = currSCCB->CdbLength; in FPT_ssenss()
3685 currSCCB->Save_Cdb[i] = currSCCB->Cdb[i]; in FPT_ssenss()
3688 currSCCB->CdbLength = SIX_BYTE_CMD; in FPT_ssenss()
3689 currSCCB->Cdb[0] = SCSI_REQUEST_SENSE; in FPT_ssenss()
3690 currSCCB->Cdb[1] = currSCCB->Cdb[1] & (unsigned char)0xE0; /*Keep LUN. */ in FPT_ssenss()
3691 currSCCB->Cdb[2] = 0x00; in FPT_ssenss()
3692 currSCCB->Cdb[3] = 0x00; in FPT_ssenss()
3693 currSCCB->Cdb[4] = currSCCB->RequestSenseLength; in FPT_ssenss()
3694 currSCCB->Cdb[5] = 0x00; in FPT_ssenss()
3696 currSCCB->Sccb_XferCnt = (u32)currSCCB->RequestSenseLength; in FPT_ssenss()
3698 currSCCB->Sccb_ATC = 0x00; in FPT_ssenss()
3700 currSCCB->Sccb_XferState |= F_AUTO_SENSE; in FPT_ssenss()
3702 currSCCB->Sccb_XferState &= ~F_SG_XFER; in FPT_ssenss()
3704 currSCCB->Sccb_idmsg = currSCCB->Sccb_idmsg & ~(unsigned char)DISC_PRIV; in FPT_ssenss()
3706 currSCCB->ControlByte = 0x00; in FPT_ssenss()
3708 currSCCB->Sccb_MGRFlags &= F_STATUSLOADED; in FPT_ssenss()
3807 struct sccb *currSCCB; in FPT_schkdd() local
3809 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_schkdd()
3811 if ((currSCCB->Sccb_scsistat != DATA_OUT_ST) && in FPT_schkdd()
3812 (currSCCB->Sccb_scsistat != DATA_IN_ST)) { in FPT_schkdd()
3816 if (currSCCB->Sccb_XferState & F_ODD_BALL_CNT) { in FPT_schkdd()
3818 currSCCB->Sccb_ATC += (currSCCB->Sccb_XferCnt - 1); in FPT_schkdd()
3820 currSCCB->Sccb_XferCnt = 1; in FPT_schkdd()
3822 currSCCB->Sccb_XferState &= ~F_ODD_BALL_CNT; in FPT_schkdd()
3829 currSCCB->Sccb_ATC += currSCCB->Sccb_XferCnt; in FPT_schkdd()
3831 currSCCB->Sccb_XferCnt = 0; in FPT_schkdd()
3835 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_schkdd()
3837 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_schkdd()
3841 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_schkdd()
3871 if (!(currSCCB->Sccb_XferState & F_ALL_XFERRED)) { in FPT_schkdd()
3872 if (currSCCB->Sccb_XferState & F_HOST_XFER_DIR) { in FPT_schkdd()
4007 struct sccb *currSCCB; in FPT_phaseDataOut() local
4009 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseDataOut()
4010 if (currSCCB == NULL) { in FPT_phaseDataOut()
4014 currSCCB->Sccb_scsistat = DATA_OUT_ST; in FPT_phaseDataOut()
4015 currSCCB->Sccb_XferState &= ~(F_HOST_XFER_DIR | F_NO_DATA_YET); in FPT_phaseDataOut()
4025 if (currSCCB->Sccb_XferCnt == 0) { in FPT_phaseDataOut()
4027 if ((currSCCB->ControlByte & SCCB_DATA_XFER_OUT) && in FPT_phaseDataOut()
4028 (currSCCB->HostStatus == SCCB_COMPLETE)) in FPT_phaseDataOut()
4029 currSCCB->HostStatus = SCCB_DATA_OVER_RUN; in FPT_phaseDataOut()
4048 struct sccb *currSCCB; in FPT_phaseDataIn() local
4050 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseDataIn()
4052 if (currSCCB == NULL) { in FPT_phaseDataIn()
4056 currSCCB->Sccb_scsistat = DATA_IN_ST; in FPT_phaseDataIn()
4057 currSCCB->Sccb_XferState |= F_HOST_XFER_DIR; in FPT_phaseDataIn()
4058 currSCCB->Sccb_XferState &= ~F_NO_DATA_YET; in FPT_phaseDataIn()
4068 if (currSCCB->Sccb_XferCnt == 0) { in FPT_phaseDataIn()
4070 if ((currSCCB->ControlByte & SCCB_DATA_XFER_IN) && in FPT_phaseDataIn()
4071 (currSCCB->HostStatus == SCCB_COMPLETE)) in FPT_phaseDataIn()
4072 currSCCB->HostStatus = SCCB_DATA_OVER_RUN; in FPT_phaseDataIn()
4091 struct sccb *currSCCB; in FPT_phaseCommand() local
4095 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseCommand()
4097 if (currSCCB->OperationCode == RESET_COMMAND) { in FPT_phaseCommand()
4099 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseCommand()
4100 currSCCB->CdbLength = SIX_BYTE_CMD; in FPT_phaseCommand()
4109 for (i = 0; i < currSCCB->CdbLength; i++) { in FPT_phaseCommand()
4111 if (currSCCB->OperationCode == RESET_COMMAND) in FPT_phaseCommand()
4117 (MPM_OP + ACOMMAND + currSCCB->Cdb[i])); in FPT_phaseCommand()
4121 if (currSCCB->CdbLength != TWELVE_BYTE_CMD) in FPT_phaseCommand()
4126 currSCCB->Sccb_scsistat = COMMAND_ST; in FPT_phaseCommand()
4164 struct sccb *currSCCB; in FPT_phaseMsgOut() local
4167 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseMsgOut()
4169 if (currSCCB != NULL) { in FPT_phaseMsgOut()
4171 message = currSCCB->Sccb_scsimsg; in FPT_phaseMsgOut()
4172 scsiID = currSCCB->TargID; in FPT_phaseMsgOut()
4197 } else if (currSCCB->Sccb_scsistat == ABORT_ST) { in FPT_phaseMsgOut()
4198 currSCCB->HostStatus = SCCB_COMPLETE; in FPT_phaseMsgOut()
4199 if (FPT_BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] != in FPT_phaseMsgOut()
4201 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_phaseMsgOut()
4208 else if (currSCCB->Sccb_scsistat < COMMAND_ST) { in FPT_phaseMsgOut()
4211 currSCCB->Sccb_MGRFlags |= F_DEV_SELECTED; in FPT_phaseMsgOut()
4248 if (currSCCB != NULL) { in FPT_phaseMsgOut()
4253 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseMsgOut()
4256 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_phaseMsgOut()
4258 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseMsgOut()
4260 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_phaseMsgOut()
4265 currSCCB, p_card); in FPT_phaseMsgOut()
4283 currSCCB->Sccb_scsimsg = SMNO_OP; in FPT_phaseMsgOut()
4303 struct sccb *currSCCB; in FPT_phaseMsgIn() local
4305 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseMsgIn()
4322 message = FPT_sfm(port, currSCCB); in FPT_phaseMsgIn()
4328 if (currSCCB->Sccb_scsimsg != SMPARITY) in FPT_phaseMsgIn()
4349 struct sccb *currSCCB; in FPT_phaseIllegal() local
4351 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseIllegal()
4354 if (currSCCB != NULL) { in FPT_phaseIllegal()
4356 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseIllegal()
4357 currSCCB->Sccb_scsistat = ABORT_ST; in FPT_phaseIllegal()
4358 currSCCB->Sccb_scsimsg = SMABORT; in FPT_phaseIllegal()
4376 struct sccb *currSCCB; in FPT_phaseChkFifo() local
4378 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseChkFifo()
4380 if (currSCCB->Sccb_scsistat == DATA_IN_ST) { in FPT_phaseChkFifo()
4387 currSCCB->Sccb_ATC += currSCCB->Sccb_XferCnt; in FPT_phaseChkFifo()
4389 currSCCB->Sccb_XferCnt = 0; in FPT_phaseChkFifo()
4392 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_phaseChkFifo()
4393 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_phaseChkFifo()
4397 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_phaseChkFifo()
4416 currSCCB->Sccb_ATC += (currSCCB->Sccb_XferCnt - xfercnt); in FPT_phaseChkFifo()
4418 currSCCB->Sccb_XferCnt = xfercnt; in FPT_phaseChkFifo()
4421 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_phaseChkFifo()
4423 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_phaseChkFifo()
4427 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_phaseChkFifo()
4446 struct sccb *currSCCB; in FPT_phaseBusFree() local
4448 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseBusFree()
4450 if (currSCCB != NULL) { in FPT_phaseBusFree()
4454 if (currSCCB->OperationCode == RESET_COMMAND) { in FPT_phaseBusFree()
4457 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4459 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4460 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseBusFree()
4462 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4465 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, in FPT_phaseBusFree()
4472 else if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_phaseBusFree()
4473 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus |= in FPT_phaseBusFree()
4475 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_phaseBusFree()
4479 else if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_phaseBusFree()
4480 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus = in FPT_phaseBusFree()
4481 (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4484 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_phaseBusFree()
4488 else if (currSCCB->Sccb_scsistat == SELECT_Q_ST) { in FPT_phaseBusFree()
4495 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4497 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4508 currSCCB->Sccb_scsistat = BUS_FREE_ST; in FPT_phaseBusFree()
4510 if (!currSCCB->HostStatus) { in FPT_phaseBusFree()
4511 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseBusFree()
4515 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4517 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4518 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseBusFree()
4520 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4523 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, in FPT_phaseBusFree()
4648 struct sccb *currSCCB; in FPT_autoCmdCmplt() local
4651 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_autoCmdCmplt()
4655 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUN_CA = 0; in FPT_autoCmdCmplt()
4662 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4664 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4665 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4670 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4671 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4674 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4676 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4680 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4689 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4694 currSCCB->Sccb_MGRFlags |= F_STATUSLOADED; in FPT_autoCmdCmplt()
4701 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_autoCmdCmplt()
4702 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus |= in FPT_autoCmdCmplt()
4705 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_autoCmdCmplt()
4710 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4712 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4713 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4718 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4719 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4722 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4724 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4728 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4737 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4745 if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_autoCmdCmplt()
4747 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus = in FPT_autoCmdCmplt()
4748 (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4751 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_autoCmdCmplt()
4756 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4758 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4759 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4764 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4765 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4768 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4770 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4774 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4783 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4793 if (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4795 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_autoCmdCmplt()
4799 if (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4801 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_autoCmdCmplt()
4808 if (!(currSCCB->Sccb_XferState & F_AUTO_SENSE)) { in FPT_autoCmdCmplt()
4810 currSCCB->SccbStatus = SCCB_ERROR; in FPT_autoCmdCmplt()
4811 currSCCB->TargetStatus = status_byte; in FPT_autoCmdCmplt()
4815 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4818 if (currSCCB->RequestSenseLength != in FPT_autoCmdCmplt()
4821 if (currSCCB->RequestSenseLength == 0) in FPT_autoCmdCmplt()
4822 currSCCB->RequestSenseLength = in FPT_autoCmdCmplt()
4833 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4837 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4838 TarLUNBusy[currSCCB->Lun] = in FPT_autoCmdCmplt()
4847 [currSCCB-> in FPT_autoCmdCmplt()
4850 [currSCCB->Lun]] = in FPT_autoCmdCmplt()
4854 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4856 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4863 discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4875 [p_card][currSCCB-> in FPT_autoCmdCmplt()
4888 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4890 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB-> in FPT_autoCmdCmplt()
4893 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = 0; in FPT_autoCmdCmplt()
4895 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, p_card); in FPT_autoCmdCmplt()
4921 struct sccb *currSCCB; in FPT_dataXferProcessor() local
4923 currSCCB = pCurrCard->currentSCCB; in FPT_dataXferProcessor()
4925 if (currSCCB->Sccb_XferState & F_SG_XFER) { in FPT_dataXferProcessor()
4928 currSCCB->Sccb_sgseg += (unsigned char)SG_BUF_CNT; in FPT_dataXferProcessor()
4929 currSCCB->Sccb_SGoffset = 0x00; in FPT_dataXferProcessor()
4933 FPT_busMstrSGDataXferStart(port, currSCCB); in FPT_dataXferProcessor()
4940 FPT_busMstrDataXferStart(port, currSCCB); in FPT_dataXferProcessor()
5406 static void FPT_hostDataXferRestart(struct sccb *currSCCB) in FPT_hostDataXferRestart() argument
5412 if (currSCCB->Sccb_XferState & F_SG_XFER) { in FPT_hostDataXferRestart()
5414 currSCCB->Sccb_XferCnt = 0; in FPT_hostDataXferRestart()
5420 while (data_count < currSCCB->Sccb_ATC) { in FPT_hostDataXferRestart()
5423 segp = (struct blogic_sg_seg *)(currSCCB->DataPointer) + in FPT_hostDataXferRestart()
5428 if (data_count == currSCCB->Sccb_ATC) { in FPT_hostDataXferRestart()
5430 currSCCB->Sccb_SGoffset = 0; in FPT_hostDataXferRestart()
5435 currSCCB->Sccb_SGoffset = in FPT_hostDataXferRestart()
5436 data_count - currSCCB->Sccb_ATC; in FPT_hostDataXferRestart()
5439 currSCCB->Sccb_sgseg = (unsigned short)sg_index; in FPT_hostDataXferRestart()
5443 currSCCB->Sccb_XferCnt = in FPT_hostDataXferRestart()
5444 currSCCB->DataLength - currSCCB->Sccb_ATC; in FPT_hostDataXferRestart()
6995 struct sccb *currSCCB; in FPT_queueFlushSccb() local
6998 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_queueFlushSccb()
6999 if (currSCCB != NULL) { in FPT_queueFlushSccb()
7000 thisTarg = (unsigned char)currSCCB->TargID; in FPT_queueFlushSccb()