p_sccb 814 drivers/scsi/FlashPoint.c static void FPT_sinits(struct sccb *p_sccb, unsigned char p_card); p_sccb 3900 drivers/scsi/FlashPoint.c static void FPT_sinits(struct sccb *p_sccb, unsigned char p_card) p_sccb 3904 drivers/scsi/FlashPoint.c if ((p_sccb->TargID >= MAX_SCSI_TAR) || (p_sccb->Lun >= MAX_LUN)) { p_sccb 3907 drivers/scsi/FlashPoint.c currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID]; p_sccb 3909 drivers/scsi/FlashPoint.c p_sccb->Sccb_XferState = 0x00; p_sccb 3910 drivers/scsi/FlashPoint.c p_sccb->Sccb_XferCnt = p_sccb->DataLength; p_sccb 3912 drivers/scsi/FlashPoint.c if ((p_sccb->OperationCode == SCATTER_GATHER_COMMAND) || p_sccb 3913 drivers/scsi/FlashPoint.c (p_sccb->OperationCode == RESIDUAL_SG_COMMAND)) { p_sccb 3915 drivers/scsi/FlashPoint.c p_sccb->Sccb_SGoffset = 0; p_sccb 3916 drivers/scsi/FlashPoint.c p_sccb->Sccb_XferState = F_SG_XFER; p_sccb 3917 drivers/scsi/FlashPoint.c p_sccb->Sccb_XferCnt = 0x00; p_sccb 3920 drivers/scsi/FlashPoint.c if (p_sccb->DataLength == 0x00) p_sccb 3922 drivers/scsi/FlashPoint.c p_sccb->Sccb_XferState |= F_ALL_XFERRED; p_sccb 3924 drivers/scsi/FlashPoint.c if (p_sccb->ControlByte & F_USE_CMD_Q) { p_sccb 3926 drivers/scsi/FlashPoint.c p_sccb->ControlByte &= ~F_USE_CMD_Q; p_sccb 3943 drivers/scsi/FlashPoint.c p_sccb->Sccb_idmsg = p_sccb 3944 drivers/scsi/FlashPoint.c (unsigned char)(SMIDENT | DISC_PRIV) | p_sccb->Lun; p_sccb 3949 drivers/scsi/FlashPoint.c p_sccb->Sccb_idmsg = (unsigned char)SMIDENT | p_sccb->Lun; p_sccb 3952 drivers/scsi/FlashPoint.c p_sccb->HostStatus = 0x00; p_sccb 3953 drivers/scsi/FlashPoint.c p_sccb->TargetStatus = 0x00; p_sccb 3954 drivers/scsi/FlashPoint.c p_sccb->Sccb_tag = 0x00; p_sccb 3955 drivers/scsi/FlashPoint.c p_sccb->Sccb_MGRFlags = 0x00; p_sccb 3956 drivers/scsi/FlashPoint.c p_sccb->Sccb_sgseg = 0x00; p_sccb 3957 drivers/scsi/FlashPoint.c p_sccb->Sccb_ATC = 0x00; p_sccb 3958 drivers/scsi/FlashPoint.c p_sccb->Sccb_savedATC = 0x00; p_sccb 3964 drivers/scsi/FlashPoint.c p_sccb->Sccb_scsistat = BUS_FREE_ST; p_sccb 3965 drivers/scsi/FlashPoint.c p_sccb->SccbStatus = SCCB_IN_PROCESS; p_sccb 3966 drivers/scsi/FlashPoint.c p_sccb->Sccb_scsimsg = SMNO_OP; p_sccb 6858 drivers/scsi/FlashPoint.c struct sccb *p_sccb, unsigned char p_card) p_sccb 6865 drivers/scsi/FlashPoint.c SCSIcmd = p_sccb->Cdb[0]; p_sccb 6867 drivers/scsi/FlashPoint.c if (!(p_sccb->Sccb_XferState & F_ALL_XFERRED)) { p_sccb 6869 drivers/scsi/FlashPoint.c if ((p_sccb-> p_sccb 6871 drivers/scsi/FlashPoint.c && (p_sccb->HostStatus == SCCB_COMPLETE) p_sccb 6872 drivers/scsi/FlashPoint.c && (p_sccb->TargetStatus != SSCHECK)) p_sccb 6882 drivers/scsi/FlashPoint.c p_sccb->HostStatus = SCCB_DATA_UNDER_RUN; p_sccb 6885 drivers/scsi/FlashPoint.c if (p_sccb->SccbStatus == SCCB_IN_PROCESS) { p_sccb 6886 drivers/scsi/FlashPoint.c if (p_sccb->HostStatus || p_sccb->TargetStatus) p_sccb 6887 drivers/scsi/FlashPoint.c p_sccb->SccbStatus = SCCB_ERROR; p_sccb 6889 drivers/scsi/FlashPoint.c p_sccb->SccbStatus = SCCB_SUCCESS; p_sccb 6892 drivers/scsi/FlashPoint.c if (p_sccb->Sccb_XferState & F_AUTO_SENSE) { p_sccb 6894 drivers/scsi/FlashPoint.c p_sccb->CdbLength = p_sccb->Save_CdbLen; p_sccb 6896 drivers/scsi/FlashPoint.c p_sccb->Cdb[i] = p_sccb->Save_Cdb[i]; p_sccb 6900 drivers/scsi/FlashPoint.c if ((p_sccb->OperationCode == RESIDUAL_SG_COMMAND) || p_sccb 6901 drivers/scsi/FlashPoint.c (p_sccb->OperationCode == RESIDUAL_COMMAND)) { p_sccb 6903 drivers/scsi/FlashPoint.c FPT_utilUpdateResidual(p_sccb); p_sccb 6922 drivers/scsi/FlashPoint.c currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID]; p_sccb 6928 drivers/scsi/FlashPoint.c LunDiscQ_Idx[p_sccb->Lun]] = NULL; p_sccb 6930 drivers/scsi/FlashPoint.c if (p_sccb->Sccb_tag) { p_sccb 6932 drivers/scsi/FlashPoint.c pCurrCard->discQ_Tbl[p_sccb->Sccb_tag] = NULL; p_sccb 6942 drivers/scsi/FlashPoint.c callback = (CALL_BK_FN) p_sccb->SccbCallback; p_sccb 6943 drivers/scsi/FlashPoint.c callback(p_sccb); p_sccb 6955 drivers/scsi/FlashPoint.c static void FPT_queueDisconnect(struct sccb *p_sccb, unsigned char p_card) p_sccb 6959 drivers/scsi/FlashPoint.c currTar_Info = &FPT_sccbMgrTbl[p_card][p_sccb->TargID]; p_sccb 6964 drivers/scsi/FlashPoint.c LunDiscQ_Idx[p_sccb->Lun]] = p_sccb 6965 drivers/scsi/FlashPoint.c p_sccb; p_sccb 6967 drivers/scsi/FlashPoint.c if (p_sccb->Sccb_tag) { p_sccb 6968 drivers/scsi/FlashPoint.c FPT_BL_Card[p_card].discQ_Tbl[p_sccb->Sccb_tag] = p_sccb 6969 drivers/scsi/FlashPoint.c p_sccb; p_sccb 6970 drivers/scsi/FlashPoint.c FPT_sccbMgrTbl[p_card][p_sccb->TargID].TarLUNBusy[0] = p_sccb 6972 drivers/scsi/FlashPoint.c FPT_sccbMgrTbl[p_card][p_sccb->TargID].TarTagQ_Cnt++; p_sccb 6975 drivers/scsi/FlashPoint.c LunDiscQ_Idx[0]] = p_sccb;