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);
1184 mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag) in mpt_send_handshake_request() argument
1215 if ((ii = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1228 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1242 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1248 if (r >= 0 && WaitForDoorbellInt(ioc, 10, sleepFlag) >= 0) in mpt_send_handshake_request()
1279 mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag) in mpt_host_page_access_control() argument
1296 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) { in mpt_host_page_access_control()
2299 mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag) in mpt_do_ioc_recovery() argument
2335 if ((hard_reset_done = MakeIocReady(ioc, hard, sleepFlag)) < 0) { in mpt_do_ioc_recovery()
2360 if ((rc = MakeIocReady(ioc->alt_ioc, 0, sleepFlag)) == 0) in mpt_do_ioc_recovery()
2370 if ((rc = GetIocFacts(ioc, sleepFlag, reason)) == 0) in mpt_do_ioc_recovery()
2384 if ((rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason)) != 0) { in mpt_do_ioc_recovery()
2390 rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason); in mpt_do_ioc_recovery()
2463 if ((ret == 0) && ((rc = SendIocInit(ioc, sleepFlag)) != 0)) in mpt_do_ioc_recovery()
2475 if ((rc = SendIocInit(ioc->alt_ioc, sleepFlag)) != 0) { in mpt_do_ioc_recovery()
2492 rc = mpt_do_upload(ioc, sleepFlag); in mpt_do_ioc_recovery()
2523 ret = SendEventNotification(ioc, 1, sleepFlag); /* 1=Enable */ in mpt_do_ioc_recovery()
2527 rc = SendEventNotification(ioc->alt_ioc, 1, sleepFlag); in mpt_do_ioc_recovery()
2921 MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag) in MakeIocReady() argument
2984 if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) == 0) in MakeIocReady()
2991 hard_reset_done = KickStart(ioc, statefault||force, sleepFlag); in MakeIocReady()
2999 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 5; /* 5 seconds */ in MakeIocReady()
3007 if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) != 0) { in MakeIocReady()
3016 if ((r = SendIocReset(ioc, MPI_FUNCTION_IO_UNIT_RESET, sleepFlag)) != 0) { in MakeIocReady()
3030 if (sleepFlag == CAN_SLEEP) { in MakeIocReady()
3080 GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason) in GetIocFacts() argument
3120 reply_sz, (u16*)facts, 5 /*seconds*/, sleepFlag); in GetIocFacts()
3231 if ( (r = GetPortFacts(ioc, 0, sleepFlag)) != 0 ) in GetIocFacts()
3255 GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag) in GetPortFacts() argument
3292 reply_sz, (u16*)pfacts, 5 /*seconds*/, sleepFlag); in GetPortFacts()
3338 SendIocInit(MPT_ADAPTER *ioc, int sleepFlag) in SendIocInit() argument
3402 sizeof(MPIDefaultReply_t), (u16*)&init_reply, 10 /*seconds*/, sleepFlag); in SendIocInit()
3415 if ((r = SendPortEnable(ioc, 0, sleepFlag)) != 0) { in SendIocInit()
3425 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 60; /* 60 seconds */ in SendIocInit()
3428 if (sleepFlag == CAN_SLEEP) { in SendIocInit()
3462 SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag) in SendPortEnable() argument
3491 300 /*seconds*/, sleepFlag); in SendPortEnable()
3495 30 /*seconds*/, sleepFlag); in SendPortEnable()
3578 mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag) in mpt_do_upload() argument
3599 prequest = (sleepFlag == NO_SLEEP) ? kzalloc(ioc->req_sz, GFP_ATOMIC) : in mpt_do_upload()
3632 reply_sz, (u16 *)preply, 65 /*seconds*/, sleepFlag); in mpt_do_upload()
3679 mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag) in mpt_downloadboot() argument
3704 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3721 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3811 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3835 if ( (GetIocFacts(ioc, sleepFlag, in mpt_downloadboot()
3851 if ((SendIocInit(ioc, sleepFlag)) != 0) { in mpt_downloadboot()
3862 if (sleepFlag == CAN_SLEEP) { in mpt_downloadboot()
3900 KickStart(MPT_ADAPTER *ioc, int force, int sleepFlag) in KickStart() argument
3911 SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag); in KickStart()
3913 if (sleepFlag == CAN_SLEEP) { in KickStart()
3920 hard_reset_done = mpt_diag_reset(ioc, force, sleepFlag); in KickStart()
3927 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 2; /* 2 seconds */ in KickStart()
3935 if (sleepFlag == CAN_SLEEP) { in KickStart()
3967 mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag) in mpt_diag_reset() argument
3989 if (sleepFlag == CAN_SLEEP) in mpt_diag_reset()
4020 if (sleepFlag == CAN_SLEEP) in mpt_diag_reset()
4054 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4133 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4139 if ((count = mpt_downloadboot(ioc, cached_fw, sleepFlag)) < 0) { in mpt_diag_reset()
4164 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4203 if (sleepFlag == CAN_SLEEP) { in mpt_diag_reset()
4269 SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag) in SendIocReset() argument
4278 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in SendIocReset()
4284 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 15; /* 15 seconds */ in SendIocReset()
4290 if (sleepFlag != CAN_SLEEP) in SendIocReset()
4299 if (sleepFlag == CAN_SLEEP) { in SendIocReset()
4660 int replyBytes, u16 *u16reply, int maxwait, int sleepFlag) in mpt_handshake_req_reply_wait() argument
4686 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4702 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4720 if ((t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4733 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0) in mpt_handshake_req_reply_wait()
4765 WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellAck() argument
4773 if (sleepFlag == CAN_SLEEP) { in WaitForDoorbellAck()
4815 WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellInt() argument
4822 if (sleepFlag == CAN_SLEEP) { in WaitForDoorbellInt()
4865 WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellReply() argument
4880 if ((t = WaitForDoorbellInt(ioc, howlong, sleepFlag)) < 0) { in WaitForDoorbellReply()
4885 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4902 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
4911 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) in WaitForDoorbellReply()
6276 SendEventNotification(MPT_ADAPTER *ioc, u8 EvSwitch, int sleepFlag) in SendEventNotification() argument
6294 sleepFlag); in SendEventNotification()
6970 mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag) in mpt_SoftResetHandler() argument
7027 rc = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag); in mpt_SoftResetHandler()
7043 rc = GetIocFacts(ioc, sleepFlag, in mpt_SoftResetHandler()
7047 if (sleepFlag == CAN_SLEEP) in mpt_SoftResetHandler()
7059 rc = SendIocInit(ioc, sleepFlag); in mpt_SoftResetHandler()
7063 rc = SendEventNotification(ioc, 1, sleepFlag); in mpt_SoftResetHandler()
7110 mpt_Soft_Hard_ResetHandler(MPT_ADAPTER *ioc, int sleepFlag) { in mpt_Soft_Hard_ResetHandler() argument
7113 ret = mpt_SoftResetHandler(ioc, sleepFlag); in mpt_Soft_Hard_ResetHandler()
7116 ret = mpt_HardResetHandler(ioc, sleepFlag); in mpt_Soft_Hard_ResetHandler()
7143 mpt_HardResetHandler(MPT_ADAPTER *ioc, int sleepFlag) in mpt_HardResetHandler() argument
7198 rc = mpt_do_ioc_recovery(ioc, MPT_HOSTEVENT_IOC_RECOVER, sleepFlag); in mpt_HardResetHandler()