Lines Matching refs:sleepFlag
168 int sleepFlag);
169 static int mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag);
175 static int MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag);
176 static int GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason);
177 static int GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
178 static int SendIocInit(MPT_ADAPTER *ioc, int sleepFlag);
179 static int SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
180 static int mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag);
181 static int mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag);
182 static int mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
183 static int KickStart(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
184 static int SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag);
186 static int WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
187 static int WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
188 static int WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
198 int sleepFlag);
200 static int mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag);
1188 mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag) in mpt_send_handshake_request() argument
1219 if ((ii = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1232 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1246 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1252 if (r >= 0 && WaitForDoorbellInt(ioc, 10, sleepFlag) >= 0) in mpt_send_handshake_request()
1283 mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag) in mpt_host_page_access_control() argument
1300 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) { in mpt_host_page_access_control()
2274 mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag) in mpt_do_ioc_recovery() argument
2310 if ((hard_reset_done = MakeIocReady(ioc, hard, sleepFlag)) < 0) { in mpt_do_ioc_recovery()
2335 if ((rc = MakeIocReady(ioc->alt_ioc, 0, sleepFlag)) == 0) in mpt_do_ioc_recovery()
2345 if ((rc = GetIocFacts(ioc, sleepFlag, reason)) == 0) in mpt_do_ioc_recovery()
2359 if ((rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason)) != 0) { in mpt_do_ioc_recovery()
2365 rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason); in mpt_do_ioc_recovery()
2438 if ((ret == 0) && ((rc = SendIocInit(ioc, sleepFlag)) != 0)) in mpt_do_ioc_recovery()
2450 if ((rc = SendIocInit(ioc->alt_ioc, sleepFlag)) != 0) { in mpt_do_ioc_recovery()
2467 rc = mpt_do_upload(ioc, sleepFlag); in mpt_do_ioc_recovery()
2498 ret = SendEventNotification(ioc, 1, sleepFlag); /* 1=Enable */ in mpt_do_ioc_recovery()
2502 rc = SendEventNotification(ioc->alt_ioc, 1, sleepFlag); in mpt_do_ioc_recovery()
2906 MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag) in MakeIocReady() argument
2969 if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) == 0) in MakeIocReady()
2976 hard_reset_done = KickStart(ioc, statefault||force, sleepFlag); in MakeIocReady()
2984 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 5; /* 5 seconds */ in MakeIocReady()
2992 if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) != 0) { in MakeIocReady()
3001 if ((r = SendIocReset(ioc, MPI_FUNCTION_IO_UNIT_RESET, sleepFlag)) != 0) { in MakeIocReady()
3015 if (sleepFlag == CAN_SLEEP) { in MakeIocReady()
3065 GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason) in GetIocFacts() argument
3105 reply_sz, (u16*)facts, 5 /*seconds*/, sleepFlag); in GetIocFacts()
3221 if ( (r = GetPortFacts(ioc, 0, sleepFlag)) != 0 ) in GetIocFacts()
3245 GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag) in GetPortFacts() argument
3282 reply_sz, (u16*)pfacts, 5 /*seconds*/, sleepFlag); in GetPortFacts()
3328 SendIocInit(MPT_ADAPTER *ioc, int sleepFlag) in SendIocInit() argument
3392 sizeof(MPIDefaultReply_t), (u16*)&init_reply, 10 /*seconds*/, sleepFlag); in SendIocInit()
3405 if ((r = SendPortEnable(ioc, 0, sleepFlag)) != 0) { in SendIocInit()
3415 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 60; /* 60 seconds */ in SendIocInit()
3418 if (sleepFlag == CAN_SLEEP) { in SendIocInit()
3452 SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag) in SendPortEnable() argument
3481 300 /*seconds*/, sleepFlag); in SendPortEnable()
3485 30 /*seconds*/, sleepFlag); in SendPortEnable()
3568 mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag) in mpt_do_upload() argument
3589 prequest = (sleepFlag == NO_SLEEP) ? kzalloc(ioc->req_sz, GFP_ATOMIC) : in mpt_do_upload()
3622 reply_sz, (u16 *)preply, 65 /*seconds*/, sleepFlag); in mpt_do_upload()
3669 mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag) in mpt_downloadboot() argument
3694 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3711 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3801 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3825 if ( (GetIocFacts(ioc, sleepFlag, in mpt_downloadboot()
3841 if ((SendIocInit(ioc, sleepFlag)) != 0) { in mpt_downloadboot()
3852 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3890 KickStart(MPT_ADAPTER *ioc, int force, int sleepFlag) in KickStart() argument
3901 SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag); in KickStart()
3903 if (sleepFlag == CAN_SLEEP) { in KickStart()
3910 hard_reset_done = mpt_diag_reset(ioc, force, sleepFlag); in KickStart()
3917 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 2; /* 2 seconds */ in KickStart()
3925 if (sleepFlag == CAN_SLEEP) { in KickStart()
3957 mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag) in mpt_diag_reset() argument
3979 if (sleepFlag == CAN_SLEEP) in mpt_diag_reset()
4010 if (sleepFlag == CAN_SLEEP) in mpt_diag_reset()
4044 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4123 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4129 if ((count = mpt_downloadboot(ioc, cached_fw, sleepFlag)) < 0) { in mpt_diag_reset()
4154 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4193 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4259 SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag) in SendIocReset() argument
4268 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in SendIocReset()
4274 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 15; /* 15 seconds */ in SendIocReset()
4280 if (sleepFlag != CAN_SLEEP) in SendIocReset()
4289 if (sleepFlag == CAN_SLEEP) { in SendIocReset()
4664 int replyBytes, u16 *u16reply, int maxwait, int sleepFlag) in mpt_handshake_req_reply_wait() argument
4690 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4706 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4724 if ((t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4737 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4769 WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellAck() argument
4777 if (sleepFlag == CAN_SLEEP) { in WaitForDoorbellAck()
4819 WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellInt() argument
4826 if (sleepFlag == CAN_SLEEP) { in WaitForDoorbellInt()
4869 WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellReply() argument
4884 if ((t = WaitForDoorbellInt(ioc, howlong, sleepFlag)) < 0) { in WaitForDoorbellReply()
4889 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4906 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4915 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
6279 SendEventNotification(MPT_ADAPTER *ioc, u8 EvSwitch, int sleepFlag) in SendEventNotification() argument
6297 sleepFlag); in SendEventNotification()
7010 mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag) in mpt_SoftResetHandler() argument
7067 rc = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag); in mpt_SoftResetHandler()
7083 rc = GetIocFacts(ioc, sleepFlag, in mpt_SoftResetHandler()
7087 if (sleepFlag == CAN_SLEEP) in mpt_SoftResetHandler()
7099 rc = SendIocInit(ioc, sleepFlag); in mpt_SoftResetHandler()
7103 rc = SendEventNotification(ioc, 1, sleepFlag); in mpt_SoftResetHandler()
7150 mpt_Soft_Hard_ResetHandler(MPT_ADAPTER *ioc, int sleepFlag) { in mpt_Soft_Hard_ResetHandler() argument
7153 ret = mpt_SoftResetHandler(ioc, sleepFlag); in mpt_Soft_Hard_ResetHandler()
7156 ret = mpt_HardResetHandler(ioc, sleepFlag); in mpt_Soft_Hard_ResetHandler()
7183 mpt_HardResetHandler(MPT_ADAPTER *ioc, int sleepFlag) in mpt_HardResetHandler() argument
7238 rc = mpt_do_ioc_recovery(ioc, MPT_HOSTEVENT_IOC_RECOVER, sleepFlag); in mpt_HardResetHandler()