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()
2858 struct sccb *currSCCB; in FPT_sdecm() local
2863 currSCCB = CurrCard->currentSCCB; in FPT_sdecm()
2865 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_sdecm()
2868 if (!(currSCCB->Sccb_XferState & F_NO_DATA_YET)) { in FPT_sdecm()
2869 currSCCB->Sccb_ATC = currSCCB->Sccb_savedATC; in FPT_sdecm()
2871 FPT_hostDataXferRestart(currSCCB); in FPT_sdecm()
2881 if (currSCCB->Sccb_scsistat == SELECT_Q_ST) { in FPT_sdecm()
2902 if ((currSCCB->Sccb_scsistat == SELECT_SN_ST) || in FPT_sdecm()
2903 (currSCCB->Sccb_scsistat == SELECT_WN_ST) || in FPT_sdecm()
2917 if (currSCCB->Lun == 0x00) { in FPT_sdecm()
2918 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_sdecm()
2927 else if (currSCCB->Sccb_scsistat == in FPT_sdecm()
2948 currSCCB->ControlByte &= ~F_USE_CMD_Q; in FPT_sdecm()
2950 CurrCard->discQ_Tbl[currSCCB-> in FPT_sdecm()
2952 currSCCB->Sccb_tag = 0x00; in FPT_sdecm()
2959 if (currSCCB->Lun == 0x00) { in FPT_sdecm()
2972 currTar_Info->TarLUNBusy[currSCCB-> in FPT_sdecm()
2977 currSCCB->ControlByte &= in FPT_sdecm()
3004 FPT_shandem(port, p_card, currSCCB); in FPT_sdecm()
3011 message = FPT_sfm(port, currSCCB); in FPT_sdecm()
3013 if (currSCCB->Sccb_scsimsg != MSG_PARITY_ERROR) in FPT_sdecm()
3021 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_sdecm()
3022 currSCCB->Sccb_scsimsg = MESSAGE_REJECT; in FPT_sdecm()
3107 struct sccb *currSCCB; in FPT_sisyncn() local
3110 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_sisyncn()
3111 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_sisyncn()
3117 (currSCCB-> in FPT_sisyncn()
3188 struct sccb *currSCCB; in FPT_stsyncn() local
3191 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_stsyncn()
3192 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_stsyncn()
3194 sync_msg = FPT_sfm(port, currSCCB); in FPT_stsyncn()
3196 if ((sync_msg == 0x00) && (currSCCB->Sccb_scsimsg == MSG_PARITY_ERROR)) { in FPT_stsyncn()
3204 offset = FPT_sfm(port, currSCCB); in FPT_stsyncn()
3206 if ((offset == 0x00) && (currSCCB->Sccb_scsimsg == MSG_PARITY_ERROR)) { in FPT_stsyncn()
3281 FPT_sssyncv(port, currSCCB->TargID, sync_reg, currTar_Info); in FPT_stsyncn()
3283 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_stsyncn()
3349 struct sccb *currSCCB; in FPT_siwidn() local
3352 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_siwidn()
3353 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_siwidn()
3359 (currSCCB-> in FPT_siwidn()
3405 struct sccb *currSCCB; in FPT_stwidn() local
3408 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_stwidn()
3409 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_stwidn()
3411 width = FPT_sfm(port, currSCCB); in FPT_stwidn()
3413 if ((width == 0x00) && (currSCCB->Sccb_scsimsg == MSG_PARITY_ERROR)) { in FPT_stwidn()
3430 FPT_sssyncv(port, currSCCB->TargID, width, currTar_Info); in FPT_stwidn()
3432 if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_stwidn()
3442 currSCCB->Sccb_scsistat = SELECT_SN_ST; in FPT_stwidn()
3649 struct sccb *currSCCB; in FPT_ssenss() local
3651 currSCCB = pCurrCard->currentSCCB; in FPT_ssenss()
3653 currSCCB->Save_CdbLen = currSCCB->CdbLength; in FPT_ssenss()
3657 currSCCB->Save_Cdb[i] = currSCCB->Cdb[i]; in FPT_ssenss()
3660 currSCCB->CdbLength = SIX_BYTE_CMD; in FPT_ssenss()
3661 currSCCB->Cdb[0] = REQUEST_SENSE; in FPT_ssenss()
3662 currSCCB->Cdb[1] = currSCCB->Cdb[1] & (unsigned char)0xE0; /*Keep LUN. */ in FPT_ssenss()
3663 currSCCB->Cdb[2] = 0x00; in FPT_ssenss()
3664 currSCCB->Cdb[3] = 0x00; in FPT_ssenss()
3665 currSCCB->Cdb[4] = currSCCB->RequestSenseLength; in FPT_ssenss()
3666 currSCCB->Cdb[5] = 0x00; in FPT_ssenss()
3668 currSCCB->Sccb_XferCnt = (u32)currSCCB->RequestSenseLength; in FPT_ssenss()
3670 currSCCB->Sccb_ATC = 0x00; in FPT_ssenss()
3672 currSCCB->Sccb_XferState |= F_AUTO_SENSE; in FPT_ssenss()
3674 currSCCB->Sccb_XferState &= ~F_SG_XFER; in FPT_ssenss()
3676 currSCCB->Sccb_idmsg = currSCCB->Sccb_idmsg & ~(unsigned char)DISC_PRIV; in FPT_ssenss()
3678 currSCCB->ControlByte = 0x00; in FPT_ssenss()
3680 currSCCB->Sccb_MGRFlags &= F_STATUSLOADED; in FPT_ssenss()
3779 struct sccb *currSCCB; in FPT_schkdd() local
3781 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_schkdd()
3783 if ((currSCCB->Sccb_scsistat != DATA_OUT_ST) && in FPT_schkdd()
3784 (currSCCB->Sccb_scsistat != DATA_IN_ST)) { in FPT_schkdd()
3788 if (currSCCB->Sccb_XferState & F_ODD_BALL_CNT) { in FPT_schkdd()
3790 currSCCB->Sccb_ATC += (currSCCB->Sccb_XferCnt - 1); in FPT_schkdd()
3792 currSCCB->Sccb_XferCnt = 1; in FPT_schkdd()
3794 currSCCB->Sccb_XferState &= ~F_ODD_BALL_CNT; in FPT_schkdd()
3801 currSCCB->Sccb_ATC += currSCCB->Sccb_XferCnt; in FPT_schkdd()
3803 currSCCB->Sccb_XferCnt = 0; in FPT_schkdd()
3807 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_schkdd()
3809 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_schkdd()
3813 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_schkdd()
3843 if (!(currSCCB->Sccb_XferState & F_ALL_XFERRED)) { in FPT_schkdd()
3844 if (currSCCB->Sccb_XferState & F_HOST_XFER_DIR) { in FPT_schkdd()
3975 struct sccb *currSCCB; in FPT_phaseDataOut() local
3977 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseDataOut()
3978 if (currSCCB == NULL) { in FPT_phaseDataOut()
3982 currSCCB->Sccb_scsistat = DATA_OUT_ST; in FPT_phaseDataOut()
3983 currSCCB->Sccb_XferState &= ~(F_HOST_XFER_DIR | F_NO_DATA_YET); in FPT_phaseDataOut()
3993 if (currSCCB->Sccb_XferCnt == 0) { in FPT_phaseDataOut()
3995 if ((currSCCB->ControlByte & SCCB_DATA_XFER_OUT) && in FPT_phaseDataOut()
3996 (currSCCB->HostStatus == SCCB_COMPLETE)) in FPT_phaseDataOut()
3997 currSCCB->HostStatus = SCCB_DATA_OVER_RUN; in FPT_phaseDataOut()
4016 struct sccb *currSCCB; in FPT_phaseDataIn() local
4018 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseDataIn()
4020 if (currSCCB == NULL) { in FPT_phaseDataIn()
4024 currSCCB->Sccb_scsistat = DATA_IN_ST; in FPT_phaseDataIn()
4025 currSCCB->Sccb_XferState |= F_HOST_XFER_DIR; in FPT_phaseDataIn()
4026 currSCCB->Sccb_XferState &= ~F_NO_DATA_YET; in FPT_phaseDataIn()
4036 if (currSCCB->Sccb_XferCnt == 0) { in FPT_phaseDataIn()
4038 if ((currSCCB->ControlByte & SCCB_DATA_XFER_IN) && in FPT_phaseDataIn()
4039 (currSCCB->HostStatus == SCCB_COMPLETE)) in FPT_phaseDataIn()
4040 currSCCB->HostStatus = SCCB_DATA_OVER_RUN; in FPT_phaseDataIn()
4059 struct sccb *currSCCB; in FPT_phaseCommand() local
4063 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseCommand()
4065 if (currSCCB->OperationCode == RESET_COMMAND) { in FPT_phaseCommand()
4067 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseCommand()
4068 currSCCB->CdbLength = SIX_BYTE_CMD; in FPT_phaseCommand()
4077 for (i = 0; i < currSCCB->CdbLength; i++) { in FPT_phaseCommand()
4079 if (currSCCB->OperationCode == RESET_COMMAND) in FPT_phaseCommand()
4085 (MPM_OP + ACOMMAND + currSCCB->Cdb[i])); in FPT_phaseCommand()
4089 if (currSCCB->CdbLength != TWELVE_BYTE_CMD) in FPT_phaseCommand()
4094 currSCCB->Sccb_scsistat = COMMAND_ST; in FPT_phaseCommand()
4132 struct sccb *currSCCB; in FPT_phaseMsgOut() local
4135 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseMsgOut()
4137 if (currSCCB != NULL) { in FPT_phaseMsgOut()
4139 message = currSCCB->Sccb_scsimsg; in FPT_phaseMsgOut()
4140 scsiID = currSCCB->TargID; in FPT_phaseMsgOut()
4165 } else if (currSCCB->Sccb_scsistat == ABORT_ST) { in FPT_phaseMsgOut()
4166 currSCCB->HostStatus = SCCB_COMPLETE; in FPT_phaseMsgOut()
4167 if (FPT_BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] != in FPT_phaseMsgOut()
4169 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_phaseMsgOut()
4176 else if (currSCCB->Sccb_scsistat < COMMAND_ST) { in FPT_phaseMsgOut()
4179 currSCCB->Sccb_MGRFlags |= F_DEV_SELECTED; in FPT_phaseMsgOut()
4216 if (currSCCB != NULL) { in FPT_phaseMsgOut()
4221 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseMsgOut()
4224 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_phaseMsgOut()
4226 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseMsgOut()
4228 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_phaseMsgOut()
4233 currSCCB, p_card); in FPT_phaseMsgOut()
4251 currSCCB->Sccb_scsimsg = NOP; in FPT_phaseMsgOut()
4271 struct sccb *currSCCB; in FPT_phaseMsgIn() local
4273 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseMsgIn()
4290 message = FPT_sfm(port, currSCCB); in FPT_phaseMsgIn()
4296 if (currSCCB->Sccb_scsimsg != MSG_PARITY_ERROR) in FPT_phaseMsgIn()
4317 struct sccb *currSCCB; in FPT_phaseIllegal() local
4319 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseIllegal()
4322 if (currSCCB != NULL) { in FPT_phaseIllegal()
4324 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseIllegal()
4325 currSCCB->Sccb_scsistat = ABORT_ST; in FPT_phaseIllegal()
4326 currSCCB->Sccb_scsimsg = ABORT_TASK_SET; in FPT_phaseIllegal()
4344 struct sccb *currSCCB; in FPT_phaseChkFifo() local
4346 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseChkFifo()
4348 if (currSCCB->Sccb_scsistat == DATA_IN_ST) { in FPT_phaseChkFifo()
4355 currSCCB->Sccb_ATC += currSCCB->Sccb_XferCnt; in FPT_phaseChkFifo()
4357 currSCCB->Sccb_XferCnt = 0; in FPT_phaseChkFifo()
4360 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_phaseChkFifo()
4361 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_phaseChkFifo()
4365 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_phaseChkFifo()
4384 currSCCB->Sccb_ATC += (currSCCB->Sccb_XferCnt - xfercnt); in FPT_phaseChkFifo()
4386 currSCCB->Sccb_XferCnt = xfercnt; in FPT_phaseChkFifo()
4389 (currSCCB->HostStatus == SCCB_COMPLETE)) { in FPT_phaseChkFifo()
4391 currSCCB->HostStatus = SCCB_PARITY_ERR; in FPT_phaseChkFifo()
4395 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_phaseChkFifo()
4414 struct sccb *currSCCB; in FPT_phaseBusFree() local
4416 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseBusFree()
4418 if (currSCCB != NULL) { in FPT_phaseBusFree()
4422 if (currSCCB->OperationCode == RESET_COMMAND) { in FPT_phaseBusFree()
4425 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4427 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4428 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseBusFree()
4430 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4433 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, in FPT_phaseBusFree()
4440 else if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_phaseBusFree()
4441 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus |= in FPT_phaseBusFree()
4443 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_phaseBusFree()
4447 else if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_phaseBusFree()
4448 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus = in FPT_phaseBusFree()
4449 (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4452 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_phaseBusFree()
4456 else if (currSCCB->Sccb_scsistat == SELECT_Q_ST) { in FPT_phaseBusFree()
4463 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4465 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4476 currSCCB->Sccb_scsistat = BUS_FREE_ST; in FPT_phaseBusFree()
4478 if (!currSCCB->HostStatus) { in FPT_phaseBusFree()
4479 currSCCB->HostStatus = SCCB_PHASE_SEQUENCE_FAIL; in FPT_phaseBusFree()
4483 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4485 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4486 TarLUNBusy[currSCCB->Lun] = 0; in FPT_phaseBusFree()
4488 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4491 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, in FPT_phaseBusFree()
4616 struct sccb *currSCCB; in FPT_autoCmdCmplt() local
4619 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_autoCmdCmplt()
4623 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUN_CA = 0; in FPT_autoCmdCmplt()
4630 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4632 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4633 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4638 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4639 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4642 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4644 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4648 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4657 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4662 currSCCB->Sccb_MGRFlags |= F_STATUSLOADED; in FPT_autoCmdCmplt()
4669 if (currSCCB->Sccb_scsistat == SELECT_SN_ST) { in FPT_autoCmdCmplt()
4670 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus |= in FPT_autoCmdCmplt()
4673 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_autoCmdCmplt()
4678 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4680 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4681 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4686 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4687 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4690 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4692 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4696 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4705 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4713 if (currSCCB->Sccb_scsistat == SELECT_WN_ST) { in FPT_autoCmdCmplt()
4715 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarStatus = in FPT_autoCmdCmplt()
4716 (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4719 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= in FPT_autoCmdCmplt()
4724 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4726 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4727 TarLUNBusy[currSCCB->Lun] = 1; in FPT_autoCmdCmplt()
4732 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4733 LunDiscQ_Idx[currSCCB->Lun]] = in FPT_autoCmdCmplt()
4736 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4738 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4742 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4751 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4761 if (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4763 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_autoCmdCmplt()
4767 if (FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4769 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_autoCmdCmplt()
4776 if (!(currSCCB->Sccb_XferState & F_AUTO_SENSE)) { in FPT_autoCmdCmplt()
4778 currSCCB->SccbStatus = SCCB_ERROR; in FPT_autoCmdCmplt()
4779 currSCCB->TargetStatus = status_byte; in FPT_autoCmdCmplt()
4783 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4786 if (currSCCB->RequestSenseLength != in FPT_autoCmdCmplt()
4789 if (currSCCB->RequestSenseLength == 0) in FPT_autoCmdCmplt()
4790 currSCCB->RequestSenseLength = in FPT_autoCmdCmplt()
4801 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4805 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4806 TarLUNBusy[currSCCB->Lun] = in FPT_autoCmdCmplt()
4815 [currSCCB-> in FPT_autoCmdCmplt()
4818 [currSCCB->Lun]] = in FPT_autoCmdCmplt()
4822 [currSCCB->TargID]. in FPT_autoCmdCmplt()
4824 if (currSCCB->Sccb_tag) { in FPT_autoCmdCmplt()
4831 discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4843 [p_card][currSCCB-> in FPT_autoCmdCmplt()
4856 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4858 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB-> in FPT_autoCmdCmplt()
4861 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = 0; in FPT_autoCmdCmplt()
4863 FPT_queueCmdComplete(&FPT_BL_Card[p_card], currSCCB, p_card); in FPT_autoCmdCmplt()
4889 struct sccb *currSCCB; in FPT_dataXferProcessor() local
4891 currSCCB = pCurrCard->currentSCCB; in FPT_dataXferProcessor()
4893 if (currSCCB->Sccb_XferState & F_SG_XFER) { in FPT_dataXferProcessor()
4896 currSCCB->Sccb_sgseg += (unsigned char)SG_BUF_CNT; in FPT_dataXferProcessor()
4897 currSCCB->Sccb_SGoffset = 0x00; in FPT_dataXferProcessor()
4901 FPT_busMstrSGDataXferStart(port, currSCCB); in FPT_dataXferProcessor()
4908 FPT_busMstrDataXferStart(port, currSCCB); in FPT_dataXferProcessor()
5374 static void FPT_hostDataXferRestart(struct sccb *currSCCB) in FPT_hostDataXferRestart() argument
5380 if (currSCCB->Sccb_XferState & F_SG_XFER) { in FPT_hostDataXferRestart()
5382 currSCCB->Sccb_XferCnt = 0; in FPT_hostDataXferRestart()
5388 while (data_count < currSCCB->Sccb_ATC) { in FPT_hostDataXferRestart()
5391 segp = (struct blogic_sg_seg *)(currSCCB->DataPointer) + in FPT_hostDataXferRestart()
5396 if (data_count == currSCCB->Sccb_ATC) { in FPT_hostDataXferRestart()
5398 currSCCB->Sccb_SGoffset = 0; in FPT_hostDataXferRestart()
5403 currSCCB->Sccb_SGoffset = in FPT_hostDataXferRestart()
5404 data_count - currSCCB->Sccb_ATC; in FPT_hostDataXferRestart()
5407 currSCCB->Sccb_sgseg = (unsigned short)sg_index; in FPT_hostDataXferRestart()
5411 currSCCB->Sccb_XferCnt = in FPT_hostDataXferRestart()
5412 currSCCB->DataLength - currSCCB->Sccb_ATC; in FPT_hostDataXferRestart()
6963 struct sccb *currSCCB; in FPT_queueFlushSccb() local
6966 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_queueFlushSccb()
6967 if (currSCCB != NULL) { in FPT_queueFlushSccb()
6968 thisTarg = (unsigned char)currSCCB->TargID; in FPT_queueFlushSccb()