Lines Matching refs:BL_Card

58 #define BL_Card				FPT_BL_Card  macro
2281 extern SCCBCARD BL_Card[MAX_CARDS];
2744 if (BL_Card[thisCard].ioPort == ioport) { in SccbMgr_config_adapter()
2746 CurrCard = &BL_Card[thisCard]; in SccbMgr_config_adapter()
2751 else if (BL_Card[thisCard].ioPort == 0x00) { in SccbMgr_config_adapter()
2753 BL_Card[thisCard].ioPort = ioport; in SccbMgr_config_adapter()
2754 CurrCard = &BL_Card[thisCard]; in SccbMgr_config_adapter()
3344 if (BL_Card[thisCard].ioPort == ioport) { in init_adapter()
3346 CurrCard = &BL_Card[thisCard]; in init_adapter()
3351 else if (BL_Card[thisCard].ioPort == 0x00) { in init_adapter()
3353 BL_Card[thisCard].ioPort = ioport; in init_adapter()
3354 CurrCard = &BL_Card[thisCard]; in init_adapter()
4411 queueSelectFail(&BL_Card[thisCard], thisCard); in SccbMgr_start_sccb()
4426 queueSelectFail(&BL_Card[thisCard], thisCard); in SccbMgr_start_sccb()
4465 queueSelectFail(&BL_Card[thisCard], thisCard); in SccbMgr_start_sccb()
4607 if(BL_Card[thisCard].discQ_Tbl[currTar_Info->LunDiscQ_Idx[p_Sccb->Lun]] in SccbMgr_abort_sccb()
5229 return(BL_Card[pCurrCard].cmdCounter); in SccbMgr_status()
5247 SccbMgrTableInitCard(&BL_Card[thisCard],thisCard); in SccbMgrTableInitAll()
5249 BL_Card[thisCard].ioPort = 0x00; in SccbMgrTableInitAll()
5250 BL_Card[thisCard].cardInfo = NULL; in SccbMgrTableInitAll()
5251 BL_Card[thisCard].cardIndex = 0xFF; in SccbMgrTableInitAll()
5252 BL_Card[thisCard].ourId = 0x00; in SccbMgrTableInitAll()
5253 BL_Card[thisCard].pNvRamInfo = NULL; in SccbMgrTableInitAll()
5272 BL_Card[p_card].discQ_Tbl[qtag] = NULL; in SccbMgrTableInitCard()
5326 if(BL_Card[p_card].discQ_Tbl[qtag] != NULL) in SccbMgrTableInitTarget()
5328 if(BL_Card[p_card].discQ_Tbl[qtag]->TargID == target) in SccbMgrTableInitTarget()
5330 BL_Card[p_card].discQ_Tbl[qtag] = NULL; in SccbMgrTableInitTarget()
5331 BL_Card[p_card].discQCount--; in SccbMgrTableInitTarget()
5396 SCCBCARD BL_Card[MAX_CARDS] = { { 0 } }; variable
5582 CurrCard = &BL_Card[p_card]; in ssel()
5985 queueSelectFail(&BL_Card[p_card],p_card); in sres()
6353 CurrCard = &BL_Card[p_card]; in sdecm()
6622 currSCCB = BL_Card[p_card].currentSCCB; in sisyncn()
6702 currSCCB = BL_Card[p_card].currentSCCB; in stsyncn()
6879 currSCCB = BL_Card[p_card].currentSCCB; in siwidn()
6936 currSCCB = BL_Card[p_card].currentSCCB; in stwidn()
7174 BL_Card[p_card].scanIndex = 0x00; in sresb()
7175 BL_Card[p_card].currentSCCB = NULL; in sresb()
7176 BL_Card[p_card].globalFlags &= ~(F_TAG_STARTED | F_HOST_XFER_ACT in sresb()
7178 BL_Card[p_card].cmdCounter = 0x00; in sresb()
7179 BL_Card[p_card].discQCount = 0x00; in sresb()
7180 BL_Card[p_card].tagQ_Lst = 0x01; in sresb()
7183 BL_Card[p_card].discQ_Tbl[i] = NULL; in sresb()
7257 if (BL_Card[p_card].globalFlags & F_HOST_XFER_ACT) { in sxfrp()
7259 hostDataXferAbort(p_port,p_card,BL_Card[p_card].currentSCCB); in sxfrp()
7343 currSCCB = BL_Card[p_card].currentSCCB; in schkdd()
7628 currSCCB = BL_Card[p_card].currentSCCB; in phaseDataOut()
7643 dataXferProcessor(port, &BL_Card[p_card]); in phaseDataOut()
7687 currSCCB = BL_Card[p_card].currentSCCB; in phaseDataIn()
7705 dataXferProcessor(port, &BL_Card[p_card]); in phaseDataIn()
7747 currSCCB = BL_Card[p_card].currentSCCB; in phaseCommand()
7837 currSCCB = BL_Card[p_card].currentSCCB; in phaseMsgOut()
7872 if(BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] != NULL) in phaseMsgOut()
7874 BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL; in phaseMsgOut()
7933 if((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in phaseMsgOut()
7939 queueCmdComplete(&BL_Card[p_card],currSCCB, p_card); in phaseMsgOut()
7944 BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in phaseMsgOut()
7992 currSCCB = BL_Card[p_card].currentSCCB; in phaseMsgIn()
7994 if (BL_Card[p_card].globalFlags & F_HOST_XFER_ACT) in phaseMsgIn()
8052 currSCCB = BL_Card[p_card].currentSCCB; in phaseIllegal()
8085 currSCCB = BL_Card[p_card].currentSCCB; in phaseChkFifo()
8109 dataXferProcessor(port, &BL_Card[p_card]); in phaseChkFifo()
8181 currSCCB = BL_Card[p_card].currentSCCB; in phaseBusFree()
8192 if((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in phaseBusFree()
8198 queueCmdComplete(&BL_Card[p_card], currSCCB, p_card); in phaseBusFree()
8200 queueSearchSelect(&BL_Card[p_card],p_card); in phaseBusFree()
8251 if((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in phaseBusFree()
8257 queueCmdComplete(&BL_Card[p_card], currSCCB, p_card); in phaseBusFree()
8262 BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in phaseBusFree()
8440 currSCCB = BL_Card[p_card].currentSCCB; in autoCmdCmplt()
8451 if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in autoCmdCmplt()
8455 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8456 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8457BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL; in autoCmdCmplt()
8464 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8465 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8466 BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL; in autoCmdCmplt()
8469 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8470 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8471 BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL; in autoCmdCmplt()
8477 queueSelectFail(&BL_Card[p_card],p_card); in autoCmdCmplt()
8488 BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in autoCmdCmplt()
8490 if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in autoCmdCmplt()
8494 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8495 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8496BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL; in autoCmdCmplt()
8503 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8504 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8505 BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL; in autoCmdCmplt()
8508 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8509 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8510 BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL; in autoCmdCmplt()
8525 BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in autoCmdCmplt()
8527 if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in autoCmdCmplt()
8531 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8532 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8533BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL; in autoCmdCmplt()
8540 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8541 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8542 BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL; in autoCmdCmplt()
8545 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8546 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8547 BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL; in autoCmdCmplt()
8556 if(BL_Card[p_card].globalFlags & F_DO_RENEGO) in autoCmdCmplt()
8586 ssenss(&BL_Card[p_card]); in autoCmdCmplt()
8587 BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in autoCmdCmplt()
8589 if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in autoCmdCmplt()
8593 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8594 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8595BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL; in autoCmdCmplt()
8602 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8603 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8604 BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL; in autoCmdCmplt()
8607 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8608 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8609 BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL; in autoCmdCmplt()
8618 ssenss(&BL_Card[p_card]); in autoCmdCmplt()
8619 BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; in autoCmdCmplt()
8621 if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in autoCmdCmplt()
8625 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8626 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8627BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL; in autoCmdCmplt()
8634 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8635 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8636 BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL; in autoCmdCmplt()
8639 if(BL_Card[p_card].discQCount != 0) in autoCmdCmplt()
8640 BL_Card[p_card].discQCount--; in autoCmdCmplt()
8641 BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL; in autoCmdCmplt()
8653 if((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in autoCmdCmplt()
8660 queueCmdComplete(&BL_Card[p_card], currSCCB, p_card); in autoCmdCmplt()
9031 BL_Card[p_card].globalFlags &= ~F_HOST_XFER_ACT; in hostDataXferAbort()
9425 currCard = &BL_Card[p_card]; in scini()
9760 pCurrNvRam = BL_Card[p_card].pNvRamInfo; in scasid()
10345 pCurrNvRam = BL_Card[p_card].pNvRamInfo; in inisci()
10460 if(BL_Card[p_card].pNvRamInfo == NULL) in scmachid()
10461 BL_Card[p_card].globalFlags |= F_UPDATE_EEPROM; in scmachid()
10510 if(BL_Card[p_card].pNvRamInfo == NULL) in scmachid()
10511 BL_Card[p_card].globalFlags |= F_UPDATE_EEPROM; in scmachid()
11447 if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) && in queueDisconnect()
11450 BL_Card[p_card].discQ_Tbl[currTar_Info->LunDiscQ_Idx[p_sccb->Lun]] = p_sccb; in queueDisconnect()
11456 BL_Card[p_card].discQ_Tbl[p_sccb->Sccb_tag] = p_sccb; in queueDisconnect()
11461 BL_Card[p_card].discQ_Tbl[currTar_Info->LunDiscQ_Idx[0]] = p_sccb; in queueDisconnect()
11464 BL_Card[p_card].currentSCCB = NULL; in queueDisconnect()
11482 currSCCB = BL_Card[p_card].currentSCCB; in queueFlushSccb()
11490 if (BL_Card[p_card].discQ_Tbl[qtag] && in queueFlushSccb()
11491 (BL_Card[p_card].discQ_Tbl[qtag]->TargID == thisTarg)) in queueFlushSccb()
11494 BL_Card[p_card].discQ_Tbl[qtag]->HostStatus = (UCHAR)error_code; in queueFlushSccb()
11496 queueCmdComplete(&BL_Card[p_card],BL_Card[p_card].discQ_Tbl[qtag], p_card); in queueFlushSccb()
11498 BL_Card[p_card].discQ_Tbl[qtag] = NULL; in queueFlushSccb()
11524 if (BL_Card[p_card].discQ_Tbl[qtag] && in queueFlushTargSccb()
11525 (BL_Card[p_card].discQ_Tbl[qtag]->TargID == thisTarg)) in queueFlushTargSccb()
11528 BL_Card[p_card].discQ_Tbl[qtag]->HostStatus = (UCHAR)error_code; in queueFlushTargSccb()
11530 queueCmdComplete(&BL_Card[p_card],BL_Card[p_card].discQ_Tbl[qtag], p_card); in queueFlushTargSccb()
11532 BL_Card[p_card].discQ_Tbl[qtag] = NULL; in queueFlushTargSccb()