Lines Matching refs:failcnt
4654 int failcnt = 0; in mpt_handshake_req_reply_wait() local
4678 failcnt++; in mpt_handshake_req_reply_wait()
4681 ioc->name, reqBytes, t, failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in mpt_handshake_req_reply_wait()
4693 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4694 failcnt++; in mpt_handshake_req_reply_wait()
4696 if (!failcnt) { in mpt_handshake_req_reply_wait()
4704 for (ii = 0; !failcnt && ii < reqBytes/4; ii++) { in mpt_handshake_req_reply_wait()
4712 failcnt++; in mpt_handshake_req_reply_wait()
4719 ioc->name, t, failcnt ? " - MISSING DOORBELL ACK!" : "")); in mpt_handshake_req_reply_wait()
4724 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4725 failcnt++; in mpt_handshake_req_reply_wait()
4728 ioc->name, t, failcnt ? " - MISSING DOORBELL REPLY!" : "")); in mpt_handshake_req_reply_wait()
4739 return -failcnt; in mpt_handshake_req_reply_wait()
4859 int failcnt = 0; in WaitForDoorbellReply() local
4872 failcnt++; in WaitForDoorbellReply()
4877 failcnt++; in WaitForDoorbellReply()
4886 failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in WaitForDoorbellReply()
4892 for (u16cnt=2; !failcnt && u16cnt < (2 * mptReply->MsgLength); u16cnt++) { in WaitForDoorbellReply()
4894 failcnt++; in WaitForDoorbellReply()
4902 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4903 failcnt++; in WaitForDoorbellReply()
4906 if (failcnt) { in WaitForDoorbellReply()
4909 return -failcnt; in WaitForDoorbellReply()