Lines Matching refs:sleepFlag
164 int sleepFlag);
165 static int mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag);
171 static int MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag);
172 static int GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason);
173 static int GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
174 static int SendIocInit(MPT_ADAPTER *ioc, int sleepFlag);
175 static int SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
176 static int mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag);
177 static int mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag);
178 static int mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
179 static int KickStart(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
180 static int SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag);
182 static int WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
183 static int WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
184 static int WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
194 int sleepFlag);
196 static int mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag);
1180 mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag) in mpt_send_handshake_request() argument
1211 if ((ii = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1224 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1238 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1244 if (r >= 0 && WaitForDoorbellInt(ioc, 10, sleepFlag) >= 0) in mpt_send_handshake_request()
1275 mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag) in mpt_host_page_access_control() argument
1290 if (WaitForDoorbellAck(ioc, 5, sleepFlag) < 0) in mpt_host_page_access_control()
2286 mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag) in mpt_do_ioc_recovery() argument
2322 if ((hard_reset_done = MakeIocReady(ioc, hard, sleepFlag)) < 0) { in mpt_do_ioc_recovery()
2347 if ((rc = MakeIocReady(ioc->alt_ioc, 0, sleepFlag)) == 0) in mpt_do_ioc_recovery()
2357 if ((rc = GetIocFacts(ioc, sleepFlag, reason)) == 0) in mpt_do_ioc_recovery()
2371 if ((rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason)) != 0) { in mpt_do_ioc_recovery()
2377 rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason); in mpt_do_ioc_recovery()
2450 if ((ret == 0) && ((rc = SendIocInit(ioc, sleepFlag)) != 0)) in mpt_do_ioc_recovery()
2462 if ((rc = SendIocInit(ioc->alt_ioc, sleepFlag)) != 0) { in mpt_do_ioc_recovery()
2479 rc = mpt_do_upload(ioc, sleepFlag); in mpt_do_ioc_recovery()
2510 ret = SendEventNotification(ioc, 1, sleepFlag); /* 1=Enable */ in mpt_do_ioc_recovery()
2514 rc = SendEventNotification(ioc->alt_ioc, 1, sleepFlag); in mpt_do_ioc_recovery()
2908 MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag) in MakeIocReady() argument
2971 if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) == 0) in MakeIocReady()
2978 hard_reset_done = KickStart(ioc, statefault||force, sleepFlag); in MakeIocReady()
2986 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 5; /* 5 seconds */ in MakeIocReady()
2994 if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) != 0) { in MakeIocReady()
3003 if ((r = SendIocReset(ioc, MPI_FUNCTION_IO_UNIT_RESET, sleepFlag)) != 0) { in MakeIocReady()
3017 if (sleepFlag == CAN_SLEEP) { in MakeIocReady()
3067 GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason) in GetIocFacts() argument
3107 reply_sz, (u16*)facts, 5 /*seconds*/, sleepFlag); in GetIocFacts()
3217 if ( (r = GetPortFacts(ioc, 0, sleepFlag)) != 0 ) in GetIocFacts()
3241 GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag) in GetPortFacts() argument
3278 reply_sz, (u16*)pfacts, 5 /*seconds*/, sleepFlag); in GetPortFacts()
3324 SendIocInit(MPT_ADAPTER *ioc, int sleepFlag) in SendIocInit() argument
3388 sizeof(MPIDefaultReply_t), (u16*)&init_reply, 10 /*seconds*/, sleepFlag); in SendIocInit()
3401 if ((r = SendPortEnable(ioc, 0, sleepFlag)) != 0) { in SendIocInit()
3411 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 60; /* 60 seconds */ in SendIocInit()
3414 if (sleepFlag == CAN_SLEEP) { in SendIocInit()
3448 SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag) in SendPortEnable() argument
3477 300 /*seconds*/, sleepFlag); in SendPortEnable()
3481 30 /*seconds*/, sleepFlag); in SendPortEnable()
3566 mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag) in mpt_do_upload() argument
3587 prequest = (sleepFlag == NO_SLEEP) ? kzalloc(ioc->req_sz, GFP_ATOMIC) : in mpt_do_upload()
3620 reply_sz, (u16 *)preply, 65 /*seconds*/, sleepFlag); in mpt_do_upload()
3667 mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag) in mpt_downloadboot() argument
3692 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3709 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3799 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3823 if ( (GetIocFacts(ioc, sleepFlag, in mpt_downloadboot()
3839 if ((SendIocInit(ioc, sleepFlag)) != 0) { in mpt_downloadboot()
3850 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3888 KickStart(MPT_ADAPTER *ioc, int force, int sleepFlag) in KickStart() argument
3899 SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag); in KickStart()
3901 if (sleepFlag == CAN_SLEEP) { in KickStart()
3908 hard_reset_done = mpt_diag_reset(ioc, force, sleepFlag); in KickStart()
3915 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 2; /* 2 seconds */ in KickStart()
3923 if (sleepFlag == CAN_SLEEP) { in KickStart()
3955 mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag) in mpt_diag_reset() argument
3977 if (sleepFlag == CAN_SLEEP) in mpt_diag_reset()
4008 if (sleepFlag == CAN_SLEEP) in mpt_diag_reset()
4042 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4121 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4127 if ((count = mpt_downloadboot(ioc, cached_fw, sleepFlag)) < 0) { in mpt_diag_reset()
4152 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4191 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4257 SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag) in SendIocReset() argument
4266 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in SendIocReset()
4272 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 15; /* 15 seconds */ in SendIocReset()
4278 if (sleepFlag != CAN_SLEEP) in SendIocReset()
4287 if (sleepFlag == CAN_SLEEP) { in SendIocReset()
4647 int replyBytes, u16 *u16reply, int maxwait, int sleepFlag) in mpt_handshake_req_reply_wait() argument
4673 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4689 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4707 if ((t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4720 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4752 WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellAck() argument
4760 if (sleepFlag == CAN_SLEEP) { in WaitForDoorbellAck()
4802 WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellInt() argument
4809 if (sleepFlag == CAN_SLEEP) { in WaitForDoorbellInt()
4852 WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellReply() argument
4867 if ((t = WaitForDoorbellInt(ioc, howlong, sleepFlag)) < 0) { in WaitForDoorbellReply()
4872 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4889 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4898 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
6284 SendEventNotification(MPT_ADAPTER *ioc, u8 EvSwitch, int sleepFlag) in SendEventNotification() argument
6302 sleepFlag); in SendEventNotification()
6968 mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag) in mpt_SoftResetHandler() argument
7023 rc = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag); in mpt_SoftResetHandler()
7039 rc = GetIocFacts(ioc, sleepFlag, in mpt_SoftResetHandler()
7043 if (sleepFlag == CAN_SLEEP) in mpt_SoftResetHandler()
7055 rc = SendIocInit(ioc, sleepFlag); in mpt_SoftResetHandler()
7059 rc = SendEventNotification(ioc, 1, sleepFlag); in mpt_SoftResetHandler()
7106 mpt_Soft_Hard_ResetHandler(MPT_ADAPTER *ioc, int sleepFlag) { in mpt_Soft_Hard_ResetHandler() argument
7109 ret = mpt_SoftResetHandler(ioc, sleepFlag); in mpt_Soft_Hard_ResetHandler()
7112 ret = mpt_HardResetHandler(ioc, sleepFlag); in mpt_Soft_Hard_ResetHandler()
7139 mpt_HardResetHandler(MPT_ADAPTER *ioc, int sleepFlag) in mpt_HardResetHandler() argument
7194 rc = mpt_do_ioc_recovery(ioc, MPT_HOSTEVENT_IOC_RECOVER, sleepFlag); in mpt_HardResetHandler()