Lines Matching refs:failcnt
4634 int failcnt = 0; in mpt_handshake_req_reply_wait() local
4658 failcnt++; in mpt_handshake_req_reply_wait()
4661 ioc->name, reqBytes, t, failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in mpt_handshake_req_reply_wait()
4673 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4674 failcnt++; in mpt_handshake_req_reply_wait()
4676 if (!failcnt) { in mpt_handshake_req_reply_wait()
4684 for (ii = 0; !failcnt && ii < reqBytes/4; ii++) { in mpt_handshake_req_reply_wait()
4692 failcnt++; in mpt_handshake_req_reply_wait()
4699 ioc->name, t, failcnt ? " - MISSING DOORBELL ACK!" : "")); in mpt_handshake_req_reply_wait()
4704 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4705 failcnt++; in mpt_handshake_req_reply_wait()
4708 ioc->name, t, failcnt ? " - MISSING DOORBELL REPLY!" : "")); in mpt_handshake_req_reply_wait()
4719 return -failcnt; in mpt_handshake_req_reply_wait()
4839 int failcnt = 0; in WaitForDoorbellReply() local
4852 failcnt++; in WaitForDoorbellReply()
4857 failcnt++; in WaitForDoorbellReply()
4866 failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in WaitForDoorbellReply()
4872 for (u16cnt=2; !failcnt && u16cnt < (2 * mptReply->MsgLength); u16cnt++) { in WaitForDoorbellReply()
4874 failcnt++; in WaitForDoorbellReply()
4882 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4883 failcnt++; in WaitForDoorbellReply()
4886 if (failcnt) { in WaitForDoorbellReply()
4889 return -failcnt; in WaitForDoorbellReply()