Lines Matching refs:failcnt
4664 int failcnt = 0; in mpt_handshake_req_reply_wait() local
4688 failcnt++; in mpt_handshake_req_reply_wait()
4691 ioc->name, reqBytes, t, failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in mpt_handshake_req_reply_wait()
4703 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4704 failcnt++; in mpt_handshake_req_reply_wait()
4706 if (!failcnt) { in mpt_handshake_req_reply_wait()
4714 for (ii = 0; !failcnt && ii < reqBytes/4; ii++) { in mpt_handshake_req_reply_wait()
4722 failcnt++; in mpt_handshake_req_reply_wait()
4729 ioc->name, t, failcnt ? " - MISSING DOORBELL ACK!" : "")); in mpt_handshake_req_reply_wait()
4734 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4735 failcnt++; in mpt_handshake_req_reply_wait()
4738 ioc->name, t, failcnt ? " - MISSING DOORBELL REPLY!" : "")); in mpt_handshake_req_reply_wait()
4749 return -failcnt; in mpt_handshake_req_reply_wait()
4869 int failcnt = 0; in WaitForDoorbellReply() local
4882 failcnt++; in WaitForDoorbellReply()
4887 failcnt++; in WaitForDoorbellReply()
4896 failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in WaitForDoorbellReply()
4902 for (u16cnt=2; !failcnt && u16cnt < (2 * mptReply->MsgLength); u16cnt++) { in WaitForDoorbellReply()
4904 failcnt++; in WaitForDoorbellReply()
4912 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4913 failcnt++; in WaitForDoorbellReply()
4916 if (failcnt) { in WaitForDoorbellReply()
4919 return -failcnt; in WaitForDoorbellReply()