Lines Matching refs:pCurrSCCB
767 struct sccb *pCurrSCCB);
839 struct sccb *pCurrSCCB);
841 struct sccb *pCurrSCCB);
843 struct sccb *pCurrSCCB);
2207 static unsigned char FPT_sfm(u32 port, struct sccb *pCurrSCCB) in FPT_sfm() argument
2232 if (pCurrSCCB != NULL) { in FPT_sfm()
2233 pCurrSCCB->Sccb_scsimsg = MSG_PARITY_ERROR; in FPT_sfm()
3037 static void FPT_shandem(u32 port, unsigned char p_card, struct sccb *pCurrSCCB) in FPT_shandem() argument
3041 length = FPT_sfm(port, pCurrSCCB); in FPT_shandem()
3045 message = FPT_sfm(port, pCurrSCCB); in FPT_shandem()
3056 pCurrSCCB->Sccb_scsimsg = MESSAGE_REJECT; in FPT_shandem()
3067 pCurrSCCB->Sccb_scsimsg = MESSAGE_REJECT; in FPT_shandem()
3076 pCurrSCCB->Sccb_scsimsg = MESSAGE_REJECT; in FPT_shandem()
3083 if (pCurrSCCB->Sccb_scsimsg != MSG_PARITY_ERROR) in FPT_shandem()
3089 if (pCurrSCCB->Sccb_scsimsg == MSG_PARITY_ERROR) in FPT_shandem()
5106 struct sccb *pCurrSCCB) in FPT_hostDataXferAbort() argument
5116 if (pCurrSCCB->Sccb_XferState & F_AUTO_SENSE) { in FPT_hostDataXferAbort()
5137 if (pCurrSCCB->HostStatus == 0x00) in FPT_hostDataXferAbort()
5139 pCurrSCCB->HostStatus = in FPT_hostDataXferAbort()
5150 if (pCurrSCCB->HostStatus == in FPT_hostDataXferAbort()
5153 pCurrSCCB->HostStatus = in FPT_hostDataXferAbort()
5160 else if (pCurrSCCB->Sccb_XferCnt) { in FPT_hostDataXferAbort()
5162 if (pCurrSCCB->Sccb_XferState & F_SG_XFER) { in FPT_hostDataXferAbort()
5170 sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT; in FPT_hostDataXferAbort()
5173 (unsigned int)(pCurrSCCB->DataLength / in FPT_hostDataXferAbort()
5176 sg_ptr = (u32)(pCurrSCCB->DataLength / in FPT_hostDataXferAbort()
5180 remain_cnt = pCurrSCCB->Sccb_XferCnt; in FPT_hostDataXferAbort()
5185 segp = (struct blogic_sg_seg *)(pCurrSCCB-> in FPT_hostDataXferAbort()
5196 pCurrSCCB->Sccb_SGoffset = remain_cnt; in FPT_hostDataXferAbort()
5198 pCurrSCCB->Sccb_sgseg = (unsigned short)sg_ptr; in FPT_hostDataXferAbort()
5201 pCurrSCCB->DataLength && (remain_cnt == 0)) in FPT_hostDataXferAbort()
5203 pCurrSCCB->Sccb_XferState |= in FPT_hostDataXferAbort()
5209 if (pCurrSCCB->HostStatus == 0x00) { in FPT_hostDataXferAbort()
5211 pCurrSCCB->HostStatus = in FPT_hostDataXferAbort()
5217 if (!(pCurrSCCB->Sccb_XferState & F_HOST_XFER_DIR)) { in FPT_hostDataXferAbort()
5232 if (pCurrSCCB->HostStatus == in FPT_hostDataXferAbort()
5235 pCurrSCCB->HostStatus = in FPT_hostDataXferAbort()
5276 if (pCurrSCCB->HostStatus == 0x00) { in FPT_hostDataXferAbort()
5278 pCurrSCCB->HostStatus = in FPT_hostDataXferAbort()
5291 if (pCurrSCCB->HostStatus == 0x00) { in FPT_hostDataXferAbort()
5293 pCurrSCCB->HostStatus = in FPT_hostDataXferAbort()
5314 if (pCurrSCCB->HostStatus == 0x00) { in FPT_hostDataXferAbort()
5316 pCurrSCCB->HostStatus = SCCB_BM_ERR; in FPT_hostDataXferAbort()
5327 if (pCurrSCCB->HostStatus == 0x00) { in FPT_hostDataXferAbort()
5329 pCurrSCCB->HostStatus = SCCB_BM_ERR; in FPT_hostDataXferAbort()
5335 if (pCurrSCCB->Sccb_XferState & F_SG_XFER) { in FPT_hostDataXferAbort()
5343 pCurrSCCB->Sccb_sgseg += SG_BUF_CNT; in FPT_hostDataXferAbort()
5345 pCurrSCCB->Sccb_SGoffset = 0x00; in FPT_hostDataXferAbort()
5347 if ((u32)(pCurrSCCB->Sccb_sgseg * SG_ELEMENT_SIZE) >= in FPT_hostDataXferAbort()
5348 pCurrSCCB->DataLength) { in FPT_hostDataXferAbort()
5350 pCurrSCCB->Sccb_XferState |= F_ALL_XFERRED; in FPT_hostDataXferAbort()
5351 pCurrSCCB->Sccb_sgseg = in FPT_hostDataXferAbort()
5352 (unsigned short)(pCurrSCCB->DataLength / in FPT_hostDataXferAbort()
5358 if (!(pCurrSCCB->Sccb_XferState & F_AUTO_SENSE)) in FPT_hostDataXferAbort()
5359 pCurrSCCB->Sccb_XferState |= F_ALL_XFERRED; in FPT_hostDataXferAbort()