Lines Matching refs:failcnt
4658 int failcnt = 0; in mpt_handshake_req_reply_wait() local
4682 failcnt++; in mpt_handshake_req_reply_wait()
4685 ioc->name, reqBytes, t, failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in mpt_handshake_req_reply_wait()
4697 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4698 failcnt++; in mpt_handshake_req_reply_wait()
4700 if (!failcnt) { in mpt_handshake_req_reply_wait()
4708 for (ii = 0; !failcnt && ii < reqBytes/4; ii++) { in mpt_handshake_req_reply_wait()
4716 failcnt++; in mpt_handshake_req_reply_wait()
4723 ioc->name, t, failcnt ? " - MISSING DOORBELL ACK!" : "")); in mpt_handshake_req_reply_wait()
4728 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4729 failcnt++; in mpt_handshake_req_reply_wait()
4732 ioc->name, t, failcnt ? " - MISSING DOORBELL REPLY!" : "")); in mpt_handshake_req_reply_wait()
4743 return -failcnt; in mpt_handshake_req_reply_wait()
4863 int failcnt = 0; in WaitForDoorbellReply() local
4876 failcnt++; in WaitForDoorbellReply()
4881 failcnt++; in WaitForDoorbellReply()
4890 failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in WaitForDoorbellReply()
4896 for (u16cnt=2; !failcnt && u16cnt < (2 * mptReply->MsgLength); u16cnt++) { in WaitForDoorbellReply()
4898 failcnt++; in WaitForDoorbellReply()
4906 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4907 failcnt++; in WaitForDoorbellReply()
4910 if (failcnt) { in WaitForDoorbellReply()
4913 return -failcnt; in WaitForDoorbellReply()