Lines Matching refs:failcnt
4663 int failcnt = 0; in mpt_handshake_req_reply_wait() local
4687 failcnt++; in mpt_handshake_req_reply_wait()
4690 ioc->name, reqBytes, t, failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in mpt_handshake_req_reply_wait()
4702 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4703 failcnt++; in mpt_handshake_req_reply_wait()
4705 if (!failcnt) { in mpt_handshake_req_reply_wait()
4713 for (ii = 0; !failcnt && ii < reqBytes/4; ii++) { in mpt_handshake_req_reply_wait()
4721 failcnt++; in mpt_handshake_req_reply_wait()
4728 ioc->name, t, failcnt ? " - MISSING DOORBELL ACK!" : "")); in mpt_handshake_req_reply_wait()
4733 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4734 failcnt++; in mpt_handshake_req_reply_wait()
4737 ioc->name, t, failcnt ? " - MISSING DOORBELL REPLY!" : "")); in mpt_handshake_req_reply_wait()
4748 return -failcnt; in mpt_handshake_req_reply_wait()
4868 int failcnt = 0; in WaitForDoorbellReply() local
4881 failcnt++; in WaitForDoorbellReply()
4886 failcnt++; in WaitForDoorbellReply()
4895 failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in WaitForDoorbellReply()
4901 for (u16cnt=2; !failcnt && u16cnt < (2 * mptReply->MsgLength); u16cnt++) { in WaitForDoorbellReply()
4903 failcnt++; in WaitForDoorbellReply()
4911 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4912 failcnt++; in WaitForDoorbellReply()
4915 if (failcnt) { in WaitForDoorbellReply()
4918 return -failcnt; in WaitForDoorbellReply()