Lines Matching refs:p_card
761 static unsigned char FPT_sisyncn(u32 port, unsigned char p_card,
763 static void FPT_ssel(u32 port, unsigned char p_card);
764 static void FPT_sres(u32 port, unsigned char p_card,
766 static void FPT_shandem(u32 port, unsigned char p_card,
768 static void FPT_stsyncn(u32 port, unsigned char p_card);
774 static void FPT_sresb(u32 port, unsigned char p_card);
775 static void FPT_sxfrp(u32 p_port, unsigned char p_card);
776 static void FPT_schkdd(u32 port, unsigned char p_card);
783 static void FPT_queueFlushTargSccb(unsigned char p_card, unsigned char thisTarg,
786 static void FPT_sinits(struct sccb *p_sccb, unsigned char p_card);
789 static unsigned char FPT_siwidn(u32 port, unsigned char p_card);
790 static void FPT_stwidn(u32 port, unsigned char p_card);
794 unsigned char p_card);
795 static void FPT_queueDisconnect(struct sccb *p_SCCB, unsigned char p_card);
797 struct sccb *p_SCCB, unsigned char p_card);
799 unsigned char p_card);
800 static void FPT_queueFlushSccb(unsigned char p_card, unsigned char error_code);
803 unsigned char p_card);
820 static void FPT_phaseDataOut(u32 port, unsigned char p_card);
821 static void FPT_phaseDataIn(u32 port, unsigned char p_card);
822 static void FPT_phaseCommand(u32 port, unsigned char p_card);
823 static void FPT_phaseStatus(u32 port, unsigned char p_card);
824 static void FPT_phaseMsgOut(u32 port, unsigned char p_card);
825 static void FPT_phaseMsgIn(u32 port, unsigned char p_card);
826 static void FPT_phaseIllegal(u32 port, unsigned char p_card);
828 static void FPT_phaseDecode(u32 port, unsigned char p_card);
829 static void FPT_phaseChkFifo(u32 port, unsigned char p_card);
830 static void FPT_phaseBusFree(u32 p_port, unsigned char p_card);
842 static void FPT_hostDataXferAbort(u32 port, unsigned char p_card,
847 unsigned char p_card,
853 unsigned char p_card);
854 static void FPT_SccbMgrTableInitTarget(unsigned char p_card,
857 static void FPT_scini(unsigned char p_card, unsigned char p_our_id,
863 static void FPT_scasid(unsigned char p_card, u32 p_port);
874 static void FPT_inisci(unsigned char p_card, u32 p_port,
876 static void FPT_scsavdi(unsigned char p_card, u32 p_port);
877 static unsigned char FPT_scmachid(unsigned char p_card,
880 static void FPT_autoCmdCmplt(u32 p_port, unsigned char p_card);
1960 static unsigned char FPT_SccbMgr_bad_isr(u32 p_port, unsigned char p_card, in FPT_SccbMgr_bad_isr() argument
1973 FPT_hostDataXferAbort(p_port, p_card, in FPT_SccbMgr_bad_isr()
1993 FPT_sxfrp(p_port, p_card); in FPT_SccbMgr_bad_isr()
2004 FPT_phaseDecode(p_port, p_card); in FPT_SccbMgr_bad_isr()
2017 FPT_hostDataXferAbort(p_port, p_card, in FPT_SccbMgr_bad_isr()
2023 FPT_sresb(p_port, p_card); in FPT_SccbMgr_bad_isr()
2039 FPT_scini(p_card, pCurrCard->ourId, 0); in FPT_SccbMgr_bad_isr()
2049 FPT_sxfrp(p_port, p_card); in FPT_SccbMgr_bad_isr()
2063 &FPT_sccbMgrTbl[p_card][pCurrCard->currentSCCB->TargID]; in FPT_SccbMgr_bad_isr()
2084 FPT_queueCmdComplete(pCurrCard, pCurrCard->currentSCCB, p_card); in FPT_SccbMgr_bad_isr()
2092 FPT_scasid(p_card, p_port); in FPT_SccbMgr_bad_isr()
2134 unsigned char p_card) in FPT_SccbMgrTableInitCard() argument
2139 FPT_BL_Card[p_card].discQ_Tbl[qtag] = NULL; in FPT_SccbMgrTableInitCard()
2143 FPT_sccbMgrTbl[p_card][scsiID].TarStatus = 0; in FPT_SccbMgrTableInitCard()
2144 FPT_sccbMgrTbl[p_card][scsiID].TarEEValue = 0; in FPT_SccbMgrTableInitCard()
2145 FPT_SccbMgrTableInitTarget(p_card, scsiID); in FPT_SccbMgrTableInitCard()
2165 static void FPT_SccbMgrTableInitTarget(unsigned char p_card, in FPT_SccbMgrTableInitTarget() argument
2172 currTar_Info = &FPT_sccbMgrTbl[p_card][target]; in FPT_SccbMgrTableInitTarget()
2188 if (FPT_BL_Card[p_card].discQ_Tbl[qtag] != NULL) { in FPT_SccbMgrTableInitTarget()
2189 if (FPT_BL_Card[p_card].discQ_Tbl[qtag]->TargID == in FPT_SccbMgrTableInitTarget()
2191 FPT_BL_Card[p_card].discQ_Tbl[qtag] = NULL; in FPT_SccbMgrTableInitTarget()
2192 FPT_BL_Card[p_card].discQCount--; in FPT_SccbMgrTableInitTarget()
2275 static void FPT_ssel(u32 port, unsigned char p_card) in FPT_ssel() argument
2286 CurrCard = &FPT_BL_Card[p_card]; in FPT_ssel()
2289 currTar_Info = &FPT_sccbMgrTbl[p_card][target]; in FPT_ssel()
2312 FPT_queueSelectFail(CurrCard, p_card); in FPT_ssel()
2331 FPT_queueSelectFail(CurrCard, p_card); in FPT_ssel()
2351 FPT_queueSelectFail(CurrCard, p_card); in FPT_ssel()
2368 FPT_queueSelectFail(CurrCard, p_card); in FPT_ssel()
2402 FPT_SccbMgrTableInitTarget(p_card, target); in FPT_ssel()
2430 auto_loaded = FPT_siwidn(port, p_card); in FPT_ssel()
2436 auto_loaded = FPT_sisyncn(port, p_card, 0); in FPT_ssel()
2501 FPT_queueSelectFail(CurrCard, p_card); in FPT_ssel()
2574 static void FPT_sres(u32 port, unsigned char p_card, in FPT_sres() argument
2585 &FPT_sccbMgrTbl[p_card][pCurrCard->currentSCCB->TargID]; in FPT_sres()
2628 FPT_queueSelectFail(&FPT_BL_Card[p_card], p_card); in FPT_sres()
2634 currTar_Info = &FPT_sccbMgrTbl[p_card][our_target]; in FPT_sres()
2639 currTar_Info = &FPT_sccbMgrTbl[p_card][our_target]; in FPT_sres()
2740 if (FPT_sccbMgrTbl[p_card][our_target]. in FPT_sres()
2743 FPT_sccbMgrTbl[p_card][our_target]. in FPT_sres()
2748 if (FPT_sccbMgrTbl[p_card][our_target]. in FPT_sres()
2751 FPT_sccbMgrTbl[p_card][our_target]. in FPT_sres()
2755 FPT_queueFlushTargSccb(p_card, our_target, in FPT_sres()
2757 FPT_SccbMgrTableInitTarget(p_card, our_target); in FPT_sres()
2801 FPT_queueFindSccb(pCurrCard->currentSCCB, p_card); in FPT_sres()
2857 static void FPT_sdecm(unsigned char message, u32 port, unsigned char p_card) in FPT_sdecm() argument
2863 CurrCard = &FPT_BL_Card[p_card]; in FPT_sdecm()
2866 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_sdecm()
3005 FPT_shandem(port, p_card, currSCCB); in FPT_sdecm()
3038 static void FPT_shandem(u32 port, unsigned char p_card, struct sccb *pCurrSCCB) in FPT_shandem() argument
3054 FPT_stsyncn(port, p_card); in FPT_shandem()
3065 FPT_stwidn(port, p_card); in FPT_shandem()
3105 static unsigned char FPT_sisyncn(u32 port, unsigned char p_card, in FPT_sisyncn() argument
3111 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_sisyncn()
3112 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_sisyncn()
3186 static void FPT_stsyncn(u32 port, unsigned char p_card) in FPT_stsyncn() argument
3192 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_stsyncn()
3193 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_stsyncn()
3348 static unsigned char FPT_siwidn(u32 port, unsigned char p_card) in FPT_siwidn() argument
3353 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_siwidn()
3354 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_siwidn()
3403 static void FPT_stwidn(u32 port, unsigned char p_card) in FPT_stwidn() argument
3409 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_stwidn()
3410 currTar_Info = &FPT_sccbMgrTbl[p_card][currSCCB->TargID]; in FPT_stwidn()
3442 FPT_sisyncn(port, p_card, 1); in FPT_stwidn()
3576 static void FPT_sresb(u32 port, unsigned char p_card) in FPT_sresb() argument
3608 currTar_Info = &FPT_sccbMgrTbl[p_card][scsiID]; in FPT_sresb()
3621 FPT_SccbMgrTableInitTarget(p_card, scsiID); in FPT_sresb()
3624 FPT_BL_Card[p_card].scanIndex = 0x00; in FPT_sresb()
3625 FPT_BL_Card[p_card].currentSCCB = NULL; in FPT_sresb()
3626 FPT_BL_Card[p_card].globalFlags &= ~(F_TAG_STARTED | F_HOST_XFER_ACT in FPT_sresb()
3628 FPT_BL_Card[p_card].cmdCounter = 0x00; in FPT_sresb()
3629 FPT_BL_Card[p_card].discQCount = 0x00; in FPT_sresb()
3630 FPT_BL_Card[p_card].tagQ_Lst = 0x01; in FPT_sresb()
3633 FPT_BL_Card[p_card].discQ_Tbl[i] = NULL; in FPT_sresb()
3693 static void FPT_sxfrp(u32 p_port, unsigned char p_card) in FPT_sxfrp() argument
3699 if (FPT_BL_Card[p_card].globalFlags & F_HOST_XFER_ACT) { in FPT_sxfrp()
3701 FPT_hostDataXferAbort(p_port, p_card, in FPT_sxfrp()
3702 FPT_BL_Card[p_card].currentSCCB); in FPT_sxfrp()
3775 static void FPT_schkdd(u32 port, unsigned char p_card) in FPT_schkdd() argument
3782 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_schkdd()
3814 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_schkdd()
3846 FPT_phaseDataIn(port, p_card); in FPT_schkdd()
3850 FPT_phaseDataOut(port, p_card); in FPT_schkdd()
3853 FPT_sxfrp(port, p_card); in FPT_schkdd()
3857 FPT_phaseDecode(port, p_card); in FPT_schkdd()
3876 static void FPT_sinits(struct sccb *p_sccb, unsigned char p_card) in FPT_sinits() argument
3883 currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID]; in FPT_sinits()
3950 static void FPT_phaseDecode(u32 p_port, unsigned char p_card) in FPT_phaseDecode() argument
3962 (*phase) (p_port, p_card); /* Call the correct phase func */ in FPT_phaseDecode()
3973 static void FPT_phaseDataOut(u32 port, unsigned char p_card) in FPT_phaseDataOut() argument
3978 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseDataOut()
3992 FPT_dataXferProcessor(port, &FPT_BL_Card[p_card]); in FPT_phaseDataOut()
4000 FPT_sxfrp(port, p_card); in FPT_phaseDataOut()
4002 FPT_phaseDecode(port, p_card); in FPT_phaseDataOut()
4014 static void FPT_phaseDataIn(u32 port, unsigned char p_card) in FPT_phaseDataIn() argument
4019 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseDataIn()
4035 FPT_dataXferProcessor(port, &FPT_BL_Card[p_card]); in FPT_phaseDataIn()
4043 FPT_sxfrp(port, p_card); in FPT_phaseDataIn()
4045 FPT_phaseDecode(port, p_card); in FPT_phaseDataIn()
4058 static void FPT_phaseCommand(u32 p_port, unsigned char p_card) in FPT_phaseCommand() argument
4064 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseCommand()
4109 static void FPT_phaseStatus(u32 port, unsigned char p_card) in FPT_phaseStatus() argument
4130 static void FPT_phaseMsgOut(u32 port, unsigned char p_card) in FPT_phaseMsgOut() argument
4136 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseMsgOut()
4145 currTar_Info = &FPT_sccbMgrTbl[p_card][scsiID]; in FPT_phaseMsgOut()
4149 if (FPT_sccbMgrTbl[p_card][scsiID]. in FPT_phaseMsgOut()
4152 FPT_sccbMgrTbl[p_card][scsiID].TarStatus &= in FPT_phaseMsgOut()
4157 if (FPT_sccbMgrTbl[p_card][scsiID]. in FPT_phaseMsgOut()
4160 FPT_sccbMgrTbl[p_card][scsiID].TarStatus &= in FPT_phaseMsgOut()
4164 FPT_queueFlushSccb(p_card, SCCB_COMPLETE); in FPT_phaseMsgOut()
4165 FPT_SccbMgrTableInitTarget(p_card, scsiID); 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()
4172 FPT_sccbMgrTbl[p_card][scsiID].TarTagQ_Cnt--; in FPT_phaseMsgOut()
4182 FPT_ssel(port, p_card); in FPT_phaseMsgOut()
4189 FPT_queueFlushSccb(p_card, SCCB_COMPLETE); in FPT_phaseMsgOut()
4219 if ((FPT_BL_Card[p_card]. in FPT_phaseMsgOut()
4222 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseMsgOut()
4225 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_phaseMsgOut()
4229 FPT_sccbMgrTbl[p_card][currSCCB-> in FPT_phaseMsgOut()
4233 FPT_queueCmdComplete(&FPT_BL_Card[p_card], in FPT_phaseMsgOut()
4234 currSCCB, p_card); in FPT_phaseMsgOut()
4238 FPT_BL_Card[p_card].globalFlags |= in FPT_phaseMsgOut()
4245 FPT_sxfrp(port, p_card); in FPT_phaseMsgOut()
4256 FPT_sxfrp(port, p_card); in FPT_phaseMsgOut()
4269 static void FPT_phaseMsgIn(u32 port, unsigned char p_card) in FPT_phaseMsgIn() argument
4274 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseMsgIn()
4276 if (FPT_BL_Card[p_card].globalFlags & F_HOST_XFER_ACT) { in FPT_phaseMsgIn()
4278 FPT_phaseChkFifo(port, p_card); in FPT_phaseMsgIn()
4294 FPT_sdecm(message, port, p_card); in FPT_phaseMsgIn()
4316 static void FPT_phaseIllegal(u32 port, unsigned char p_card) in FPT_phaseIllegal() argument
4320 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseIllegal()
4342 static void FPT_phaseChkFifo(u32 port, unsigned char p_card) in FPT_phaseChkFifo() argument
4347 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseChkFifo()
4366 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_phaseChkFifo()
4368 FPT_dataXferProcessor(port, &FPT_BL_Card[p_card]); in FPT_phaseChkFifo()
4396 FPT_hostDataXferAbort(port, p_card, currSCCB); in FPT_phaseChkFifo()
4413 static void FPT_phaseBusFree(u32 port, unsigned char p_card) in FPT_phaseBusFree() argument
4417 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_phaseBusFree()
4425 if ((FPT_BL_Card[p_card].globalFlags & F_CONLUN_IO) && in FPT_phaseBusFree()
4426 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4428 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. 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()
4435 p_card); in FPT_phaseBusFree()
4437 FPT_queueSearchSelect(&FPT_BL_Card[p_card], p_card); 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()
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()
4464 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4466 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4483 if ((FPT_BL_Card[p_card].globalFlags & F_CONLUN_IO) && in FPT_phaseBusFree()
4484 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_phaseBusFree()
4486 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. 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()
4493 p_card); in FPT_phaseBusFree()
4497 FPT_BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in FPT_phaseBusFree()
4615 static void FPT_autoCmdCmplt(u32 p_port, unsigned char p_card) in FPT_autoCmdCmplt() argument
4620 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_autoCmdCmplt()
4624 FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUN_CA = 0; in FPT_autoCmdCmplt()
4630 if (((FPT_BL_Card[p_card].globalFlags & F_CONLUN_IO) && in FPT_autoCmdCmplt()
4631 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4633 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4635 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4636 FPT_BL_Card[p_card].discQCount--; in FPT_autoCmdCmplt()
4637 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4638 discQ_Tbl[FPT_sccbMgrTbl[p_card] in FPT_autoCmdCmplt()
4643 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4646 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4647 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4649 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4653 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4654 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4656 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4657 discQ_Tbl[FPT_sccbMgrTbl[p_card] in FPT_autoCmdCmplt()
4665 FPT_queueSelectFail(&FPT_BL_Card[p_card], p_card); 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()
4676 FPT_BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in FPT_autoCmdCmplt()
4678 if (((FPT_BL_Card[p_card].globalFlags & F_CONLUN_IO) && in FPT_autoCmdCmplt()
4679 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4681 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4683 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4684 FPT_BL_Card[p_card].discQCount--; in FPT_autoCmdCmplt()
4685 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4686 discQ_Tbl[FPT_sccbMgrTbl[p_card] in FPT_autoCmdCmplt()
4691 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4694 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4695 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4697 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4701 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4702 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4704 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4705 discQ_Tbl[FPT_sccbMgrTbl[p_card] 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()
4722 FPT_BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in FPT_autoCmdCmplt()
4724 if (((FPT_BL_Card[p_card].globalFlags & F_CONLUN_IO) && in FPT_autoCmdCmplt()
4725 ((FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4727 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4729 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4730 FPT_BL_Card[p_card].discQCount--; in FPT_autoCmdCmplt()
4731 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4732 discQ_Tbl[FPT_sccbMgrTbl[p_card] in FPT_autoCmdCmplt()
4737 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4740 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4741 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4743 FPT_BL_Card[p_card].discQ_Tbl[currSCCB-> in FPT_autoCmdCmplt()
4747 if (FPT_BL_Card[p_card].discQCount != 0) in FPT_autoCmdCmplt()
4748 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4750 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4751 discQ_Tbl[FPT_sccbMgrTbl[p_card] in FPT_autoCmdCmplt()
4761 if (FPT_BL_Card[p_card].globalFlags & F_DO_RENEGO) { 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()
4784 FPT_sccbMgrTbl[p_card][currSCCB->TargID]. in FPT_autoCmdCmplt()
4794 FPT_ssenss(&FPT_BL_Card[p_card]); in FPT_autoCmdCmplt()
4795 FPT_BL_Card[p_card].globalFlags |= in FPT_autoCmdCmplt()
4798 if (((FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4801 ((FPT_sccbMgrTbl[p_card] in FPT_autoCmdCmplt()
4805 FPT_sccbMgrTbl[p_card] in FPT_autoCmdCmplt()
4809 if (FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4811 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4813 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4815 [p_card] in FPT_autoCmdCmplt()
4822 FPT_sccbMgrTbl[p_card] in FPT_autoCmdCmplt()
4826 if (FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4829 [p_card]. in FPT_autoCmdCmplt()
4831 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4836 if (FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4839 [p_card]. in FPT_autoCmdCmplt()
4841 FPT_BL_Card[p_card]. in FPT_autoCmdCmplt()
4844 [p_card][currSCCB-> in FPT_autoCmdCmplt()
4856 if ((FPT_BL_Card[p_card].globalFlags & F_CONLUN_IO) && 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()
5106 static void FPT_hostDataXferAbort(u32 port, unsigned char p_card, in FPT_hostDataXferAbort() argument
5115 FPT_BL_Card[p_card].globalFlags &= ~F_HOST_XFER_ACT; in FPT_hostDataXferAbort()
5425 static void FPT_scini(unsigned char p_card, unsigned char p_our_id, in FPT_scini() argument
5436 currCard = &FPT_BL_Card[p_card]; in FPT_scini()
5452 FPT_inisci(p_card, p_port, p_our_id); in FPT_scini()
5481 FPT_sresb(p_port, p_card); in FPT_scini()
5536 FPT_sresb(p_port, p_card); in FPT_scini()
5541 FPT_scasid(p_card, p_port); in FPT_scini()
5575 FPT_inisci(p_card, in FPT_scini()
5607 FPT_scsavdi(p_card, p_port); in FPT_scini()
5729 static void FPT_scasid(unsigned char p_card, u32 p_port) in FPT_scasid() argument
5738 pCurrNvRam = FPT_BL_Card[p_card].pNvRamInfo; in FPT_scasid()
5762 i = FPT_scmachid(p_card, temp_id_string); in FPT_scasid()
6174 static void FPT_inisci(unsigned char p_card, u32 p_port, unsigned char p_our_id) in FPT_inisci() argument
6180 pCurrNvRam = FPT_BL_Card[p_card].pNvRamInfo; in FPT_inisci()
6244 static unsigned char FPT_scmachid(unsigned char p_card, in FPT_scmachid() argument
6288 if (FPT_BL_Card[p_card].pNvRamInfo == NULL) in FPT_scmachid()
6289 FPT_BL_Card[p_card].globalFlags |= in FPT_scmachid()
6332 if (FPT_BL_Card[p_card].pNvRamInfo == NULL) in FPT_scmachid()
6333 FPT_BL_Card[p_card].globalFlags |= in FPT_scmachid()
6360 static void FPT_scsavdi(unsigned char p_card, u32 p_port) in FPT_scsavdi() argument
6637 unsigned char p_card) in FPT_queueSearchSelect() argument
6645 currTar_Info = &FPT_sccbMgrTbl[p_card][scan_ptr]; in FPT_queueSearchSelect()
6789 unsigned char p_card) in FPT_queueSelectFail() argument
6798 currTar_Info = &FPT_sccbMgrTbl[p_card][thisTarg]; in FPT_queueSelectFail()
6830 struct sccb *p_sccb, unsigned char p_card) in FPT_queueCmdComplete() argument
6894 currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID]; in FPT_queueCmdComplete()
6927 static void FPT_queueDisconnect(struct sccb *p_sccb, unsigned char p_card) in FPT_queueDisconnect() argument
6931 currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID]; in FPT_queueDisconnect()
6933 if (((FPT_BL_Card[p_card].globalFlags & F_CONLUN_IO) && in FPT_queueDisconnect()
6935 FPT_BL_Card[p_card].discQ_Tbl[currTar_Info-> in FPT_queueDisconnect()
6940 FPT_BL_Card[p_card].discQ_Tbl[p_sccb->Sccb_tag] = in FPT_queueDisconnect()
6942 FPT_sccbMgrTbl[p_card][p_sccb->TargID].TarLUNBusy[0] = in FPT_queueDisconnect()
6944 FPT_sccbMgrTbl[p_card][p_sccb->TargID].TarTagQ_Cnt++; in FPT_queueDisconnect()
6946 FPT_BL_Card[p_card].discQ_Tbl[currTar_Info-> in FPT_queueDisconnect()
6950 FPT_BL_Card[p_card].currentSCCB = NULL; in FPT_queueDisconnect()
6961 static void FPT_queueFlushSccb(unsigned char p_card, unsigned char error_code) in FPT_queueFlushSccb() argument
6967 currSCCB = FPT_BL_Card[p_card].currentSCCB; in FPT_queueFlushSccb()
6970 currTar_Info = &FPT_sccbMgrTbl[p_card][thisTarg]; in FPT_queueFlushSccb()
6974 if (FPT_BL_Card[p_card].discQ_Tbl[qtag] && in FPT_queueFlushSccb()
6975 (FPT_BL_Card[p_card].discQ_Tbl[qtag]->TargID == in FPT_queueFlushSccb()
6978 FPT_BL_Card[p_card].discQ_Tbl[qtag]-> in FPT_queueFlushSccb()
6981 FPT_queueCmdComplete(&FPT_BL_Card[p_card], in FPT_queueFlushSccb()
6982 FPT_BL_Card[p_card]. in FPT_queueFlushSccb()
6983 discQ_Tbl[qtag], p_card); in FPT_queueFlushSccb()
6985 FPT_BL_Card[p_card].discQ_Tbl[qtag] = NULL; in FPT_queueFlushSccb()
7002 static void FPT_queueFlushTargSccb(unsigned char p_card, unsigned char thisTarg, in FPT_queueFlushTargSccb() argument
7008 currTar_Info = &FPT_sccbMgrTbl[p_card][thisTarg]; in FPT_queueFlushTargSccb()
7012 if (FPT_BL_Card[p_card].discQ_Tbl[qtag] && in FPT_queueFlushTargSccb()
7013 (FPT_BL_Card[p_card].discQ_Tbl[qtag]->TargID == thisTarg)) { in FPT_queueFlushTargSccb()
7015 FPT_BL_Card[p_card].discQ_Tbl[qtag]->HostStatus = in FPT_queueFlushTargSccb()
7018 FPT_queueCmdComplete(&FPT_BL_Card[p_card], in FPT_queueFlushTargSccb()
7019 FPT_BL_Card[p_card]. in FPT_queueFlushTargSccb()
7020 discQ_Tbl[qtag], p_card); in FPT_queueFlushTargSccb()
7022 FPT_BL_Card[p_card].discQ_Tbl[qtag] = NULL; in FPT_queueFlushTargSccb()
7030 static void FPT_queueAddSccb(struct sccb *p_SCCB, unsigned char p_card) in FPT_queueAddSccb() argument
7033 currTar_Info = &FPT_sccbMgrTbl[p_card][p_SCCB->TargID]; in FPT_queueAddSccb()
7063 unsigned char p_card) in FPT_queueFindSccb() argument
7068 currTar_Info = &FPT_sccbMgrTbl[p_card][p_SCCB->TargID]; in FPT_queueFindSccb()