Lines Matching refs:p_Sccb
4212 void SccbMgr_start_sccb(USHORT pCurrCard, PSCCB p_Sccb) in SccbMgr_start_sccb()
4214 void SccbMgr_start_sccb(ULONG pCurrCard, PSCCB p_Sccb) in SccbMgr_start_sccb()
4228 PSCCB p_Sccb; in SccbMgr_start_sccb() local
4236 p_Sccb = (PSCCB)p_ucb->UCB_MgrPrivatePtr; in SccbMgr_start_sccb()
4239 if((p_Sccb->TargID > MAX_SCSI_TAR) || (p_Sccb->Lun > MAX_LUN)) in SccbMgr_start_sccb()
4251 p_Sccb->HostStatus = SCCB_COMPLETE; in SccbMgr_start_sccb()
4252 p_Sccb->SccbStatus = SCCB_ERROR; in SccbMgr_start_sccb()
4253 callback = (CALL_BK_FN)p_Sccb->SccbCallback; in SccbMgr_start_sccb()
4255 callback(p_Sccb); in SccbMgr_start_sccb()
4263 sinits(p_Sccb,thisCard); in SccbMgr_start_sccb()
4407 if(p_Sccb->OperationCode == RESET_COMMAND) in SccbMgr_start_sccb()
4410 ((PSCCBcard) pCurrCard)->currentSCCB = p_Sccb; in SccbMgr_start_sccb()
4416 queueAddSccb(p_Sccb,thisCard); in SccbMgr_start_sccb()
4422 if(p_Sccb->OperationCode == RESET_COMMAND) in SccbMgr_start_sccb()
4425 ((PSCCBcard) pCurrCard)->currentSCCB = p_Sccb; in SccbMgr_start_sccb()
4431 queueAddSccb(p_Sccb,thisCard); in SccbMgr_start_sccb()
4440 ((sccbMgrTbl[thisCard][p_Sccb->TargID].TarStatus & TAR_TAG_Q_MASK) != TAG_Q_TRYING)) in SccbMgr_start_sccb()
4441 lun = p_Sccb->Lun; in SccbMgr_start_sccb()
4445 (sccbMgrTbl[thisCard][p_Sccb->TargID].TarSelQ_Cnt == 0) && in SccbMgr_start_sccb()
4446 (sccbMgrTbl[thisCard][p_Sccb->TargID].TarLUNBusy[lun] in SccbMgr_start_sccb()
4449 ((PSCCBcard) pCurrCard)->currentSCCB = p_Sccb; in SccbMgr_start_sccb()
4452 ssel((USHORT)p_Sccb->SccbIOPort,thisCard); in SccbMgr_start_sccb()
4454 ssel(p_Sccb->SccbIOPort,thisCard); in SccbMgr_start_sccb()
4461 if(p_Sccb->OperationCode == RESET_COMMAND) in SccbMgr_start_sccb()
4464 ((PSCCBcard) pCurrCard)->currentSCCB = p_Sccb; in SccbMgr_start_sccb()
4470 queueAddSccb(p_Sccb,thisCard); in SccbMgr_start_sccb()
4495 int SccbMgr_abort_sccb(USHORT pCurrCard, PSCCB p_Sccb) in SccbMgr_abort_sccb()
4497 int SccbMgr_abort_sccb(ULONG pCurrCard, PSCCB p_Sccb) in SccbMgr_abort_sccb()
4516 PSCCB p_Sccb; in SccbMgr_abort_sccb() local
4517 p_Sccb=(PSCCB)p_ucb->UCB_MgrPrivatePtr; in SccbMgr_abort_sccb()
4534 if (queueFindSccb(p_Sccb,thisCard)) in SccbMgr_abort_sccb()
4546 p_Sccb->SccbStatus = SCCB_ABORT; in SccbMgr_abort_sccb()
4547 callback = p_Sccb->SccbCallback; in SccbMgr_abort_sccb()
4548 callback(p_Sccb); in SccbMgr_abort_sccb()
4562 if (((PSCCBcard)pCurrCard)->currentSCCB == p_Sccb) in SccbMgr_abort_sccb()
4564 p_Sccb->SccbStatus = SCCB_ABORT; in SccbMgr_abort_sccb()
4572 TID = p_Sccb->TargID; in SccbMgr_abort_sccb()
4575 if(p_Sccb->Sccb_tag) in SccbMgr_abort_sccb()
4578 if (((PSCCBcard) pCurrCard)->discQ_Tbl[p_Sccb->Sccb_tag]==p_Sccb) in SccbMgr_abort_sccb()
4580 p_Sccb->SccbStatus = SCCB_ABORT; in SccbMgr_abort_sccb()
4581 p_Sccb->Sccb_scsistat = ABORT_ST; in SccbMgr_abort_sccb()
4585 p_Sccb->Sccb_scsimsg = SMABORT_TAG; in SccbMgr_abort_sccb()
4589 ((PSCCBcard) pCurrCard)->currentSCCB = p_Sccb; in SccbMgr_abort_sccb()
4595 ((PSCCBcard) pCurrCard)->currentSCCB = p_Sccb; in SccbMgr_abort_sccb()
4605 currTar_Info = &sccbMgrTbl[thisCard][p_Sccb->TargID]; in SccbMgr_abort_sccb()
4607 if(BL_Card[thisCard].discQ_Tbl[currTar_Info->LunDiscQ_Idx[p_Sccb->Lun]] in SccbMgr_abort_sccb()
4608 == p_Sccb) in SccbMgr_abort_sccb()
4610 p_Sccb->SccbStatus = SCCB_ABORT; in SccbMgr_abort_sccb()