• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/message/fusion/

Lines Matching refs:sleepFlag

167 			int sleepFlag);
168 static int mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag);
174 static int MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag);
175 static int GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason);
176 static int GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
177 static int SendIocInit(MPT_ADAPTER *ioc, int sleepFlag);
178 static int SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
179 static int mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag);
180 static int mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag);
181 static int mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
182 static int KickStart(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
183 static int SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag);
185 static int WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
186 static int WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
187 static int WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
197 int sleepFlag);
199 static int mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag);
1105 * @sleepFlag: Use schedule if CAN_SLEEP else use udelay.
1116 mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag)
1147 if ((ii = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) {
1160 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) {
1174 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) {
1180 if (r >= 0 && WaitForDoorbellInt(ioc, 10, sleepFlag) >= 0)
1196 * @sleepFlag: Specifies whether the process can sleep
1211 mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag)
1228 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) {
2177 * @sleepFlag: Use schedule if CAN_SLEEP else use udelay.
2195 mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag)
2231 if ((hard_reset_done = MakeIocReady(ioc, hard, sleepFlag)) < 0) {
2256 if ((rc = MakeIocReady(ioc->alt_ioc, 0, sleepFlag)) == 0)
2266 if ((rc = GetIocFacts(ioc, sleepFlag, reason)) == 0)
2280 if ((rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason)) != 0) {
2286 rc = GetIocFacts(ioc->alt_ioc, sleepFlag, reason);
2359 if ((ret == 0) && ((rc = SendIocInit(ioc, sleepFlag)) != 0))
2371 if ((rc = SendIocInit(ioc->alt_ioc, sleepFlag)) != 0) {
2388 rc = mpt_do_upload(ioc, sleepFlag);
2419 ret = SendEventNotification(ioc, 1, sleepFlag); /* 1=Enable */
2423 rc = SendEventNotification(ioc->alt_ioc, 1, sleepFlag);
2801 * @sleepFlag: Specifies whether the process can sleep
2812 MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag)
2875 if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) == 0)
2882 hard_reset_done = KickStart(ioc, statefault||force, sleepFlag);
2890 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 5; /* 5 seconds */
2898 if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) != 0) {
2907 if ((r = SendIocReset(ioc, MPI_FUNCTION_IO_UNIT_RESET, sleepFlag)) != 0) {
2921 if (sleepFlag == CAN_SLEEP) {
2965 * @sleepFlag: Specifies whether the process can sleep
2971 GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason)
3011 reply_sz, (u16*)facts, 5 /*seconds*/, sleepFlag);
3127 if ( (r = GetPortFacts(ioc, 0, sleepFlag)) != 0 )
3146 * @sleepFlag: Specifies whether the process can sleep
3151 GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag)
3188 reply_sz, (u16*)pfacts, 5 /*seconds*/, sleepFlag);
3227 * @sleepFlag: Specifies whether the process can sleep
3234 SendIocInit(MPT_ADAPTER *ioc, int sleepFlag)
3298 sizeof(MPIDefaultReply_t), (u16*)&init_reply, 10 /*seconds*/, sleepFlag);
3311 if ((r = SendPortEnable(ioc, 0, sleepFlag)) != 0) {
3321 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 60; /* 60 seconds */
3324 if (sleepFlag == CAN_SLEEP) {
3351 * @sleepFlag: Specifies whether the process can sleep
3358 SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag)
3387 300 /*seconds*/, sleepFlag);
3391 30 /*seconds*/, sleepFlag);
3463 * @sleepFlag: Specifies whether the process can sleep
3474 mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag)
3495 prequest = (sleepFlag == NO_SLEEP) ? kzalloc(ioc->req_sz, GFP_ATOMIC) :
3528 reply_sz, (u16 *)preply, 65 /*seconds*/, sleepFlag);
3565 * @sleepFlag: Specifies whether the process can sleep
3575 mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag)
3600 if (sleepFlag == CAN_SLEEP) {
3617 if (sleepFlag == CAN_SLEEP) {
3703 if (sleepFlag == CAN_SLEEP) {
3727 if ( (GetIocFacts(ioc, sleepFlag,
3743 if ((SendIocInit(ioc, sleepFlag)) != 0) {
3754 if (sleepFlag == CAN_SLEEP) {
3770 * @sleepFlag: Specifies whether the process can sleep
3792 KickStart(MPT_ADAPTER *ioc, int force, int sleepFlag)
3803 SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag);
3805 if (sleepFlag == CAN_SLEEP) {
3812 hard_reset_done = mpt_diag_reset(ioc, force, sleepFlag);
3819 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 2; /* 2 seconds */
3827 if (sleepFlag == CAN_SLEEP) {
3845 * @sleepFlag: CAN_SLEEP if called in a non-interrupt thread,
3859 mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag)
3881 if (sleepFlag == CAN_SLEEP)
3912 if (sleepFlag == CAN_SLEEP)
3946 if (sleepFlag == CAN_SLEEP) {
4025 if (sleepFlag == CAN_SLEEP) {
4031 if ((count = mpt_downloadboot(ioc, cached_fw, sleepFlag)) < 0) {
4056 if (sleepFlag == CAN_SLEEP) {
4095 if (sleepFlag == CAN_SLEEP) {
4154 * @sleepFlag: Specifies whether the process can sleep
4161 SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag)
4170 if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0)
4176 cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 15; /* 15 seconds */
4182 if (sleepFlag != CAN_SLEEP)
4191 if (sleepFlag == CAN_SLEEP) {
4540 * @sleepFlag: Specifies whether the process can sleep
4551 int replyBytes, u16 *u16reply, int maxwait, int sleepFlag)
4577 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0)
4593 if (!failcnt && (t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0)
4611 if ((t = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0)
4624 if (!failcnt && (t = WaitForDoorbellReply(ioc, maxwait, sleepFlag)) < 0)
4647 * @sleepFlag: Specifies whether the process can sleep
4656 WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag)
4664 if (sleepFlag == CAN_SLEEP) {
4698 * @sleepFlag: Specifies whether the process can sleep
4706 WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag)
4713 if (sleepFlag == CAN_SLEEP) {
4747 * @sleepFlag: Specifies whether the process can sleep
4756 WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag)
4771 if ((t = WaitForDoorbellInt(ioc, howlong, sleepFlag)) < 0) {
4776 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0)
4793 if ((t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0)
4802 if (!failcnt && (t = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0)
6145 * @sleepFlag: Specifies whether the process can sleep
6148 SendEventNotification(MPT_ADAPTER *ioc, u8 EvSwitch, int sleepFlag)
6166 sleepFlag);
6857 * @sleepFlag: Indicates if sleep or schedule must be called.
6868 mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag)
6925 rc = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag);
6941 rc = GetIocFacts(ioc, sleepFlag,
6945 if (sleepFlag == CAN_SLEEP)
6957 rc = SendIocInit(ioc, sleepFlag);
6961 rc = SendEventNotification(ioc, 1, sleepFlag);
7001 * @sleepFlag: Indicates if sleep or schedule must be called.
7008 mpt_Soft_Hard_ResetHandler(MPT_ADAPTER *ioc, int sleepFlag) {
7011 ret = mpt_SoftResetHandler(ioc, sleepFlag);
7014 ret = mpt_HardResetHandler(ioc, sleepFlag);
7027 * @sleepFlag: Indicates if sleep or schedule must be called.
7041 mpt_HardResetHandler(MPT_ADAPTER *ioc, int sleepFlag)
7085 rc = mpt_do_ioc_recovery(ioc, MPT_HOSTEVENT_IOC_RECOVER, sleepFlag);