Lines Matching refs:currSCCB
844 static void FPT_hostDataXferRestart(struct sccb *currSCCB);
1714 struct sccb *currSCCB; in FlashPoint_HandleInterrupt() local
1737 currSCCB = pCurrCard->currentSCCB; in FlashPoint_HandleInterrupt()
1790 currSCCB->Sccb_XferState |= F_NO_DATA_YET; in FlashPoint_HandleInterrupt()
1792 currSCCB->Sccb_savedATC = currSCCB->Sccb_ATC; in FlashPoint_HandleInterrupt()
1795 currSCCB->Sccb_scsistat = DISCONNECT_ST; in FlashPoint_HandleInterrupt()
1796 FPT_queueDisconnect(currSCCB, thisCard); in FlashPoint_HandleInterrupt()
1842 currSCCB->Sccb_XferState |= in FlashPoint_HandleInterrupt()
1844 currSCCB->Sccb_savedATC = in FlashPoint_HandleInterrupt()
1845 currSCCB->Sccb_ATC; in FlashPoint_HandleInterrupt()
1850 currSCCB->Sccb_scsistat = DISCONNECT_ST; in FlashPoint_HandleInterrupt()
1851 FPT_queueDisconnect(currSCCB, thisCard); in FlashPoint_HandleInterrupt()
1914 currSCCB); in FlashPoint_HandleInterrupt()
2282 struct sccb *currSCCB; in FPT_ssel() local
2287 currSCCB = CurrCard->currentSCCB; in FPT_ssel()
2288 target = currSCCB->TargID; in FPT_ssel()
2295 currSCCB->ControlByte &= ~F_USE_CMD_Q; in FPT_ssel()
2300 lun = currSCCB->Lun; in FPT_ssel()
2305 if (!(currSCCB->ControlByte & F_USE_CMD_Q)) { in FPT_ssel()
2348 || (!(currSCCB->ControlByte & F_USE_CMD_Q)))) { in FPT_ssel()
2361 CurrCard->discQ_Tbl[lastTag] = currSCCB; in FPT_ssel()
2379 if (currSCCB->OperationCode == RESET_COMMAND) { in FPT_ssel()
2381 (currSCCB-> in FPT_ssel()
2386 currSCCB->Sccb_scsimsg = TARGET_RESET; in FPT_ssel()
2390 currSCCB->Sccb_scsistat = SELECT_BDR_ST; in FPT_ssel()
2406 else if (currSCCB->Sccb_scsistat == ABORT_ST) { in FPT_ssel()
2408 (currSCCB-> in FPT_ssel()
2415 char)(currSCCB-> in FPT_ssel()
2421 (MPM_OP + AMSG_OUT + currSCCB->Sccb_tag)); in FPT_ssel()
2431 currSCCB->Sccb_scsistat = SELECT_WN_ST; in FPT_ssel()
2437 currSCCB->Sccb_scsistat = SELECT_SN_ST; in FPT_ssel()
2442 if (currSCCB->ControlByte & F_USE_CMD_Q) { in FPT_ssel()
2448 currSCCB->ControlByte &= ~F_USE_CMD_Q; in FPT_ssel()
2457 currSCCB->Sccb_idmsg)); in FPT_ssel()
2464 currSCCB->Sccb_scsistat = SELECT_ST; in FPT_ssel()
2472 currSCCB->Sccb_idmsg)); in FPT_ssel()
2476 (((unsigned char)(currSCCB-> in FPT_ssel()
2491 currSCCB->Sccb_tag = lastTag; in FPT_ssel()
2493 currSCCB; in FPT_ssel()
2506 currSCCB->Sccb_scsistat = SELECT_Q_ST; in FPT_ssel()
2519 (MPM_OP + AMSG_OUT + currSCCB->Sccb_idmsg)); in FPT_ssel()
2521 currSCCB->Sccb_scsistat = SELECT_ST; in FPT_ssel()
2527 theCCB = (unsigned char *)&currSCCB->Cdb[0]; in FPT_ssel()
2531 for (i = 0; i < currSCCB->CdbLength; i++) { in FPT_ssel()
2537 if (currSCCB->CdbLength != TWELVE_BYTE_CMD) in FPT_ssel()
2549 if (!(currSCCB->Sccb_MGRFlags & F_DEV_SELECTED)) { in FPT_ssel()
2581 struct sccb *currSCCB; in FPT_sres() local
2590 currSCCB = pCurrCard->currentSCCB; in FPT_sres()
2591 if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_sres()
2593 currSCCB->Sccb_scsistat = BUS_FREE_ST; in FPT_sres()
2595 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_sres()
2597 currSCCB->Sccb_scsistat = BUS_FREE_ST; in FPT_sres()
2602 currTar_Info->TarLUNBusy[currSCCB->Lun] = 0; in FPT_sres()
2603 if (currSCCB->Sccb_scsistat != ABORT_ST) { in FPT_sres()
2606 LunDiscQ_Idx[currSCCB-> in FPT_sres()
2612 if (currSCCB->Sccb_tag) { in FPT_sres()
2613 if (currSCCB->Sccb_scsistat != ABORT_ST) { in FPT_sres()
2615 pCurrCard->discQ_Tbl[currSCCB-> in FPT_sres()
2619 if (currSCCB->Sccb_scsistat != ABORT_ST) { in FPT_sres()
2859 struct sccb *currSCCB; in FPT_sdecm() local
2864 currSCCB = CurrCard->currentSCCB; in FPT_sdecm()
2866 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_sdecm()
2869 if (!(currSCCB->Sccb_XferState & F_NO_DATA_YET)) { in FPT_sdecm()
2870 currSCCB->Sccb_ATC = currSCCB->Sccb_savedATC; in FPT_sdecm()
2872 FPT_hostDataXferRestart(currSCCB); in FPT_sdecm()
2882 if (currSCCB->Sccb_scsistat == SELECT_Q_ST) { in FPT_sdecm()
2903 if ((currSCCB->Sccb_scsistat == SELECT_SN_ST) || in FPT_sdecm()
2904 (currSCCB->Sccb_scsistat == SELECT_WN_ST) || in FPT_sdecm()
2918 if (currSCCB->Lun == 0x00) { in FPT_sdecm()
2919 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_sdecm()
2928 else if (currSCCB->Sccb_scsistat == in FPT_sdecm()
2949 currSCCB->ControlByte &= ~F_USE_CMD_Q; in FPT_sdecm()
2951 CurrCard->discQ_Tbl[currSCCB-> in FPT_sdecm()
2953 currSCCB->Sccb_tag = 0x00; in FPT_sdecm()
2960 if (currSCCB->Lun == 0x00) { in FPT_sdecm()
2973 currTar_Info->TarLUNBusy[currSCCB-> in FPT_sdecm()
2978 currSCCB->ControlByte &= in FPT_sdecm()
3005 FPT_shandem(port, p_card, currSCCB); in FPT_sdecm()
3012 message = FPT_sfm(port, currSCCB); in FPT_sdecm()
3014 if (currSCCB->Sccb_scsimsg != MSG_PARITY_ERROR) in FPT_sdecm()
3022 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_sdecm()
3023 currSCCB->Sccb_scsimsg = MESSAGE_REJECT; in FPT_sdecm()
3108 struct sccb *currSCCB; in FPT_sisyncn() local
3111 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_sisyncn()
3112 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_sisyncn()
3118 (currSCCB-> in FPT_sisyncn()
3189 struct sccb *currSCCB; in FPT_stsyncn() local
3192 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_stsyncn()
3193 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_stsyncn()
3195 sync_msg = FPT_sfm(port, currSCCB); in FPT_stsyncn()
3197 if ((sync_msg == 0x00) && (currSCCB->Sccb_scsimsg == MSG_PARITY_ERROR)) { in FPT_stsyncn()
3205 offset = FPT_sfm(port, currSCCB); in FPT_stsyncn()
3207 if ((offset == 0x00) && (currSCCB->Sccb_scsimsg == MSG_PARITY_ERROR)) { in FPT_stsyncn()
3282 FPT_sssyncv(port, currSCCB->TargID, sync_reg, currTar_Info); in FPT_stsyncn()
3284 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_stsyncn()
3350 struct sccb *currSCCB; in FPT_siwidn() local
3353 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_siwidn()
3354 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_siwidn()
3360 (currSCCB-> in FPT_siwidn()
3406 struct sccb *currSCCB; in FPT_stwidn() local
3409 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_stwidn()
3410 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_stwidn()
3412 width = FPT_sfm(port, currSCCB); in FPT_stwidn()
3414 if ((width == 0x00) && (currSCCB->Sccb_scsimsg == MSG_PARITY_ERROR)) { in FPT_stwidn()
3431 FPT_sssyncv(port, currSCCB->TargID, width, currTar_Info); in FPT_stwidn()
3433 if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_stwidn()
3443 currSCCB->Sccb_scsistat = SELECT_SN_ST; in FPT_stwidn()
3650 struct sccb *currSCCB; in FPT_ssenss() local
3652 currSCCB = pCurrCard->currentSCCB; in FPT_ssenss()
3654 currSCCB->Save_CdbLen = currSCCB->CdbLength; in FPT_ssenss()
3658 currSCCB->Save_Cdb[i] = currSCCB->Cdb[i]; in FPT_ssenss()
3661 currSCCB->CdbLength = SIX_BYTE_CMD; in FPT_ssenss()
3662 currSCCB->Cdb[0] = REQUEST_SENSE; in FPT_ssenss()
3663 currSCCB->Cdb[1] = currSCCB->Cdb[1] & (unsigned char)0xE0; /*Keep LUN. */ in FPT_ssenss()
3664 currSCCB->Cdb[2] = 0x00; in FPT_ssenss()
3665 currSCCB->Cdb[3] = 0x00; in FPT_ssenss()
3666 currSCCB->Cdb[4] = currSCCB->RequestSenseLength; in FPT_ssenss()
3667 currSCCB->Cdb[5] = 0x00; in FPT_ssenss()
3669 currSCCB->Sccb_XferCnt = (u32)currSCCB->RequestSenseLength; in FPT_ssenss()
3671 currSCCB->Sccb_ATC = 0x00; in FPT_ssenss()
3673 currSCCB->Sccb_XferState |= F_AUTO_SENSE; in FPT_ssenss()
3675 currSCCB->Sccb_XferState &= ~F_SG_XFER; in FPT_ssenss()
3677 currSCCB->Sccb_idmsg = currSCCB->Sccb_idmsg & ~(unsigned char)DISC_PRIV; in FPT_ssenss()
3679 currSCCB->ControlByte = 0x00; in FPT_ssenss()
3681 currSCCB->Sccb_MGRFlags &= F_STATUSLOADED; in FPT_ssenss()
3780 struct sccb *currSCCB; in FPT_schkdd() local
3782 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_schkdd()
3784 if ((currSCCB->Sccb_scsistat != DATA_OUT_ST) && in FPT_schkdd()
3785 (currSCCB->Sccb_scsistat != DATA_IN_ST)) { in FPT_schkdd()
3789 if (currSCCB->Sccb_XferState & F_ODD_BALL_CNT) { in FPT_schkdd()
3791 currSCCB->Sccb_ATC += (currSCCB->Sccb_XferCnt - 1); in FPT_schkdd()
3793 currSCCB->Sccb_XferCnt = 1; in FPT_schkdd()
3795 currSCCB->Sccb_XferState &= ~F_ODD_BALL_CNT; in FPT_schkdd()
3802 currSCCB->Sccb_ATC += currSCCB->Sccb_XferCnt; in FPT_schkdd()
3804 currSCCB->Sccb_XferCnt = 0; in FPT_schkdd()
3808 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_schkdd()
3810 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_schkdd()
3814 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_schkdd()
3844 if (!(currSCCB->Sccb_XferState & F_ALL_XFERRED)) { in FPT_schkdd()
3845 if (currSCCB->Sccb_XferState & F_HOST_XFER_DIR) { in FPT_schkdd()
3976 struct sccb *currSCCB; in FPT_phaseDataOut() local
3978 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseDataOut()
3979 if (currSCCB == NULL) { in FPT_phaseDataOut()
3983 currSCCB->Sccb_scsistat = DATA_OUT_ST; in FPT_phaseDataOut()
3984 currSCCB->Sccb_XferState &= ~(F_HOST_XFER_DIR | F_NO_DATA_YET); in FPT_phaseDataOut()
3994 if (currSCCB->Sccb_XferCnt == 0) { in FPT_phaseDataOut()
3996 if ((currSCCB->ControlByte & SCCB_DATA_XFER_OUT) && in FPT_phaseDataOut()
3997 (currSCCB->HostStatus == SCCB_COMPLETE)) in FPT_phaseDataOut()
3998 currSCCB->HostStatus = SCCB_DATA_OVER_RUN; in FPT_phaseDataOut()
4017 struct sccb *currSCCB; in FPT_phaseDataIn() local
4019 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseDataIn()
4021 if (currSCCB == NULL) { in FPT_phaseDataIn()
4025 currSCCB->Sccb_scsistat = DATA_IN_ST; in FPT_phaseDataIn()
4026 currSCCB->Sccb_XferState |= F_HOST_XFER_DIR; in FPT_phaseDataIn()
4027 currSCCB->Sccb_XferState &= ~F_NO_DATA_YET; in FPT_phaseDataIn()
4037 if (currSCCB->Sccb_XferCnt == 0) { in FPT_phaseDataIn()
4039 if ((currSCCB->ControlByte & SCCB_DATA_XFER_IN) && in FPT_phaseDataIn()
4040 (currSCCB->HostStatus == SCCB_COMPLETE)) in FPT_phaseDataIn()
4041 currSCCB->HostStatus = SCCB_DATA_OVER_RUN; in FPT_phaseDataIn()
4060 struct sccb *currSCCB; in FPT_phaseCommand() local
4064 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseCommand()
4066 if (currSCCB->OperationCode == RESET_COMMAND) { in FPT_phaseCommand()
4068 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseCommand()
4069 currSCCB->CdbLength = SIX_BYTE_CMD; in FPT_phaseCommand()
4078 for (i = 0; i < currSCCB->CdbLength; i++) { in FPT_phaseCommand()
4080 if (currSCCB->OperationCode == RESET_COMMAND) in FPT_phaseCommand()
4086 (MPM_OP + ACOMMAND + currSCCB->Cdb[i])); in FPT_phaseCommand()
4090 if (currSCCB->CdbLength != TWELVE_BYTE_CMD) in FPT_phaseCommand()
4095 currSCCB->Sccb_scsistat = COMMAND_ST; in FPT_phaseCommand()
4133 struct sccb *currSCCB; in FPT_phaseMsgOut() local
4136 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseMsgOut()
4138 if (currSCCB != NULL) { in FPT_phaseMsgOut()
4140 message = currSCCB->Sccb_scsimsg; in FPT_phaseMsgOut()
4141 scsiID = currSCCB->TargID; in FPT_phaseMsgOut()
4166 } else if (currSCCB->Sccb_scsistat == ABORT_ST) { in FPT_phaseMsgOut()
4167 currSCCB->HostStatus = SCCB_COMPLETE; in FPT_phaseMsgOut()
4168 if (FPT_BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] != in FPT_phaseMsgOut()
4170 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_phaseMsgOut()
4177 else if (currSCCB->Sccb_scsistat < COMMAND_ST) { in FPT_phaseMsgOut()
4180 currSCCB->Sccb_MGRFlags |= F_DEV_SELECTED; in FPT_phaseMsgOut()
4217 if (currSCCB != NULL) { in FPT_phaseMsgOut()
4222 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseMsgOut()
4225 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_phaseMsgOut()
4227 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseMsgOut()
4229 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_phaseMsgOut()
4234 currSCCB, p_card); in FPT_phaseMsgOut()
4252 currSCCB->Sccb_scsimsg = NOP; in FPT_phaseMsgOut()
4272 struct sccb *currSCCB; in FPT_phaseMsgIn() local
4274 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseMsgIn()
4291 message = FPT_sfm(port, currSCCB); in FPT_phaseMsgIn()
4297 if (currSCCB->Sccb_scsimsg != MSG_PARITY_ERROR) in FPT_phaseMsgIn()
4318 struct sccb *currSCCB; in FPT_phaseIllegal() local
4320 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseIllegal()
4323 if (currSCCB != NULL) { in FPT_phaseIllegal()
4325 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseIllegal()
4326 currSCCB->Sccb_scsistat = ABORT_ST; in FPT_phaseIllegal()
4327 currSCCB->Sccb_scsimsg = ABORT_TASK_SET; in FPT_phaseIllegal()
4345 struct sccb *currSCCB; in FPT_phaseChkFifo() local
4347 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseChkFifo()
4349 if (currSCCB->Sccb_scsistat == DATA_IN_ST) { in FPT_phaseChkFifo()
4356 currSCCB->Sccb_ATC += currSCCB->Sccb_XferCnt; in FPT_phaseChkFifo()
4358 currSCCB->Sccb_XferCnt = 0; in FPT_phaseChkFifo()
4361 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_phaseChkFifo()
4362 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_phaseChkFifo()
4366 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_phaseChkFifo()
4385 currSCCB->Sccb_ATC += (currSCCB->Sccb_XferCnt - xfercnt); in FPT_phaseChkFifo()
4387 currSCCB->Sccb_XferCnt = xfercnt; in FPT_phaseChkFifo()
4390 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_phaseChkFifo()
4392 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_phaseChkFifo()
4396 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_phaseChkFifo()
4415 struct sccb *currSCCB; in FPT_phaseBusFree() local
4417 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseBusFree()
4419 if (currSCCB != NULL) { in FPT_phaseBusFree()
4423 if (currSCCB->OperationCode == RESET_COMMAND) { in FPT_phaseBusFree()
4426 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4428 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4429 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseBusFree()
4431 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4434 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, in FPT_phaseBusFree()
4441 else if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_phaseBusFree()
4442 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus |= in FPT_phaseBusFree()
4444 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_phaseBusFree()
4448 else if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_phaseBusFree()
4449 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus = in FPT_phaseBusFree()
4450 (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4453 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_phaseBusFree()
4457 else if (currSCCB->Sccb_scsistat == SELECT_Q_ST) { in FPT_phaseBusFree()
4464 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4466 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4477 currSCCB->Sccb_scsistat = BUS_FREE_ST; in FPT_phaseBusFree()
4479 if (!currSCCB->HostStatus) { in FPT_phaseBusFree()
4480 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseBusFree()
4484 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4486 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4487 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseBusFree()
4489 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4492 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, in FPT_phaseBusFree()
4617 struct sccb *currSCCB; in FPT_autoCmdCmplt() local
4620 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_autoCmdCmplt()
4624 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUN_CA = 0; in FPT_autoCmdCmplt()
4631 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4633 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4634 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4639 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4640 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4643 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4645 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4649 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4658 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4663 currSCCB->Sccb_MGRFlags |= F_STATUSLOADED; in FPT_autoCmdCmplt()
4670 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_autoCmdCmplt()
4671 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus |= in FPT_autoCmdCmplt()
4674 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_autoCmdCmplt()
4679 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4681 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4682 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4687 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4688 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4691 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4693 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4697 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4706 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4714 if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_autoCmdCmplt()
4716 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus = in FPT_autoCmdCmplt()
4717 (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4720 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_autoCmdCmplt()
4725 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4727 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4728 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4733 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4734 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4737 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4739 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4743 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4752 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4762 if (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4764 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_autoCmdCmplt()
4768 if (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4770 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_autoCmdCmplt()
4777 if (!(currSCCB->Sccb_XferState & F_AUTO_SENSE)) { in FPT_autoCmdCmplt()
4779 currSCCB->SccbStatus = SCCB_ERROR; in FPT_autoCmdCmplt()
4780 currSCCB->TargetStatus = status_byte; in FPT_autoCmdCmplt()
4784 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4787 if (currSCCB->RequestSenseLength != in FPT_autoCmdCmplt()
4790 if (currSCCB->RequestSenseLength == 0) in FPT_autoCmdCmplt()
4791 currSCCB->RequestSenseLength = in FPT_autoCmdCmplt()
4802 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4806 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4807 TarLUNBusy[currSCCB->Lun] = in FPT_autoCmdCmplt()
4816 [currSCCB-> in FPT_autoCmdCmplt()
4819 [currSCCB->Lun]] = in FPT_autoCmdCmplt()
4823 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4825 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4832 discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4844 [p_card][currSCCB-> in FPT_autoCmdCmplt()
4857 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4859 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB-> in FPT_autoCmdCmplt()
4862 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = 0; in FPT_autoCmdCmplt()
4864 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, p_card); in FPT_autoCmdCmplt()
4890 struct sccb *currSCCB; in FPT_dataXferProcessor() local
4892 currSCCB = pCurrCard->currentSCCB; in FPT_dataXferProcessor()
4894 if (currSCCB->Sccb_XferState & F_SG_XFER) { in FPT_dataXferProcessor()
4897 currSCCB->Sccb_sgseg += (unsigned char)SG_BUF_CNT; in FPT_dataXferProcessor()
4898 currSCCB->Sccb_SGoffset = 0x00; in FPT_dataXferProcessor()
4902 FPT_busMstrSGDataXferStart(port, currSCCB); in FPT_dataXferProcessor()
4909 FPT_busMstrDataXferStart(port, currSCCB); in FPT_dataXferProcessor()
5375 static void FPT_hostDataXferRestart(struct sccb *currSCCB) in FPT_hostDataXferRestart() argument
5381 if (currSCCB->Sccb_XferState & F_SG_XFER) { in FPT_hostDataXferRestart()
5383 currSCCB->Sccb_XferCnt = 0; in FPT_hostDataXferRestart()
5389 while (data_count < currSCCB->Sccb_ATC) { in FPT_hostDataXferRestart()
5392 segp = (struct blogic_sg_seg *)(currSCCB->DataPointer) + in FPT_hostDataXferRestart()
5397 if (data_count == currSCCB->Sccb_ATC) { in FPT_hostDataXferRestart()
5399 currSCCB->Sccb_SGoffset = 0; in FPT_hostDataXferRestart()
5404 currSCCB->Sccb_SGoffset = in FPT_hostDataXferRestart()
5405 data_count - currSCCB->Sccb_ATC; in FPT_hostDataXferRestart()
5408 currSCCB->Sccb_sgseg = (unsigned short)sg_index; in FPT_hostDataXferRestart()
5412 currSCCB->Sccb_XferCnt = in FPT_hostDataXferRestart()
5413 currSCCB->DataLength - currSCCB->Sccb_ATC; in FPT_hostDataXferRestart()
6964 struct sccb *currSCCB; in FPT_queueFlushSccb() local
6967 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_queueFlushSccb()
6968 if (currSCCB != NULL) { in FPT_queueFlushSccb()
6969 thisTarg = (unsigned char)currSCCB->TargID; in FPT_queueFlushSccb()