Lines Matching refs:failcnt
4661 int failcnt = 0; in mpt_handshake_req_reply_wait() local
4685 failcnt++; in mpt_handshake_req_reply_wait()
4688 ioc->name, reqBytes, t, failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in mpt_handshake_req_reply_wait()
4700 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4701 failcnt++; in mpt_handshake_req_reply_wait()
4703 if (!failcnt) { in mpt_handshake_req_reply_wait()
4711 for (ii = 0; !failcnt && ii < reqBytes/4; ii++) { in mpt_handshake_req_reply_wait()
4719 failcnt++; in mpt_handshake_req_reply_wait()
4726 ioc->name, t, failcnt ? " - MISSING DOORBELL ACK!" : "")); in mpt_handshake_req_reply_wait()
4731 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4732 failcnt++; in mpt_handshake_req_reply_wait()
4735 ioc->name, t, failcnt ? " - MISSING DOORBELL REPLY!" : "")); in mpt_handshake_req_reply_wait()
4746 return -failcnt; in mpt_handshake_req_reply_wait()
4866 int failcnt = 0; in WaitForDoorbellReply() local
4879 failcnt++; in WaitForDoorbellReply()
4884 failcnt++; in WaitForDoorbellReply()
4893 failcnt ? " - MISSING DOORBELL HANDSHAKE!" : "")); in WaitForDoorbellReply()
4899 for (u16cnt=2; !failcnt && u16cnt < (2 * mptReply->MsgLength); u16cnt++) { in WaitForDoorbellReply()
4901 failcnt++; in WaitForDoorbellReply()
4909 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4910 failcnt++; in WaitForDoorbellReply()
4913 if (failcnt) { in WaitForDoorbellReply()
4916 return -failcnt; in WaitForDoorbellReply()