Lines Matching refs:p_sccb
786 static void FPT_sinits(struct sccb *p_sccb, unsigned char p_card);
3876 static void FPT_sinits(struct sccb *p_sccb, unsigned char p_card) in FPT_sinits() argument
3880 if ((p_sccb->TargID >= MAX_SCSI_TAR) || (p_sccb->Lun >= MAX_LUN)) { in FPT_sinits()
3883 currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID]; in FPT_sinits()
3885 p_sccb->Sccb_XferState = 0x00; in FPT_sinits()
3886 p_sccb->Sccb_XferCnt = p_sccb->DataLength; in FPT_sinits()
3888 if ((p_sccb->OperationCode == SCATTER_GATHER_COMMAND) || in FPT_sinits()
3889 (p_sccb->OperationCode == RESIDUAL_SG_COMMAND)) { in FPT_sinits()
3891 p_sccb->Sccb_SGoffset = 0; in FPT_sinits()
3892 p_sccb->Sccb_XferState = F_SG_XFER; in FPT_sinits()
3893 p_sccb->Sccb_XferCnt = 0x00; in FPT_sinits()
3896 if (p_sccb->DataLength == 0x00) in FPT_sinits()
3898 p_sccb->Sccb_XferState |= F_ALL_XFERRED; in FPT_sinits()
3900 if (p_sccb->ControlByte & F_USE_CMD_Q) { in FPT_sinits()
3902 p_sccb->ControlByte &= ~F_USE_CMD_Q; in FPT_sinits()
3919 p_sccb->Sccb_idmsg = IDENTIFY(true, p_sccb->Lun); in FPT_sinits()
3921 p_sccb->Sccb_idmsg = IDENTIFY(false, p_sccb->Lun); in FPT_sinits()
3924 p_sccb->HostStatus = 0x00; in FPT_sinits()
3925 p_sccb->TargetStatus = 0x00; in FPT_sinits()
3926 p_sccb->Sccb_tag = 0x00; in FPT_sinits()
3927 p_sccb->Sccb_MGRFlags = 0x00; in FPT_sinits()
3928 p_sccb->Sccb_sgseg = 0x00; in FPT_sinits()
3929 p_sccb->Sccb_ATC = 0x00; in FPT_sinits()
3930 p_sccb->Sccb_savedATC = 0x00; in FPT_sinits()
3936 p_sccb->Sccb_scsistat = BUS_FREE_ST; in FPT_sinits()
3937 p_sccb->SccbStatus = SCCB_IN_PROCESS; in FPT_sinits()
3938 p_sccb->Sccb_scsimsg = NOP; in FPT_sinits()
6830 struct sccb *p_sccb, unsigned char p_card) in FPT_queueCmdComplete() argument
6837 SCSIcmd = p_sccb->Cdb[0]; in FPT_queueCmdComplete()
6839 if (!(p_sccb->Sccb_XferState & F_ALL_XFERRED)) { in FPT_queueCmdComplete()
6841 if ((p_sccb-> in FPT_queueCmdComplete()
6843 && (p_sccb->HostStatus == SCCB_COMPLETE) in FPT_queueCmdComplete()
6844 && (p_sccb->TargetStatus != SAM_STAT_CHECK_CONDITION)) in FPT_queueCmdComplete()
6854 p_sccb->HostStatus = SCCB_DATA_UNDER_RUN; in FPT_queueCmdComplete()
6857 if (p_sccb->SccbStatus == SCCB_IN_PROCESS) { in FPT_queueCmdComplete()
6858 if (p_sccb->HostStatus || p_sccb->TargetStatus) in FPT_queueCmdComplete()
6859 p_sccb->SccbStatus = SCCB_ERROR; in FPT_queueCmdComplete()
6861 p_sccb->SccbStatus = SCCB_SUCCESS; in FPT_queueCmdComplete()
6864 if (p_sccb->Sccb_XferState & F_AUTO_SENSE) { in FPT_queueCmdComplete()
6866 p_sccb->CdbLength = p_sccb->Save_CdbLen; in FPT_queueCmdComplete()
6868 p_sccb->Cdb[i] = p_sccb->Save_Cdb[i]; in FPT_queueCmdComplete()
6872 if ((p_sccb->OperationCode == RESIDUAL_SG_COMMAND) || in FPT_queueCmdComplete()
6873 (p_sccb->OperationCode == RESIDUAL_COMMAND)) { in FPT_queueCmdComplete()
6875 FPT_utilUpdateResidual(p_sccb); in FPT_queueCmdComplete()
6894 currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID]; in FPT_queueCmdComplete()
6900 LunDiscQ_Idx[p_sccb->Lun]] = NULL; in FPT_queueCmdComplete()
6902 if (p_sccb->Sccb_tag) { in FPT_queueCmdComplete()
6904 pCurrCard->discQ_Tbl[p_sccb->Sccb_tag] = NULL; in FPT_queueCmdComplete()
6914 callback = (CALL_BK_FN) p_sccb->SccbCallback; in FPT_queueCmdComplete()
6915 callback(p_sccb); 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()
6936 LunDiscQ_Idx[p_sccb->Lun]] = in FPT_queueDisconnect()
6937 p_sccb; in FPT_queueDisconnect()
6939 if (p_sccb->Sccb_tag) { in FPT_queueDisconnect()
6940 FPT_BL_Card[p_card].discQ_Tbl[p_sccb->Sccb_tag] = in FPT_queueDisconnect()
6941 p_sccb; 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()
6947 LunDiscQ_Idx[0]] = p_sccb; in FPT_queueDisconnect()