Lines Matching refs:ret
247 int ret = param_set_int(val, kp); in mpt_set_debug_level() local
250 if (ret) in mpt_set_debug_level()
251 return ret; in mpt_set_debug_level()
2306 int ret = 0; in mpt_do_ioc_recovery() local
2352 ret = -1; in mpt_do_ioc_recovery()
2378 ret = -2; in mpt_do_ioc_recovery()
2402 if ((ret == 0) && (reason == MPT_HOSTEVENT_IOC_BRINGUP) && in mpt_do_ioc_recovery()
2419 if ((ret == 0) && (reason == MPT_HOSTEVENT_IOC_BRINGUP)) { in mpt_do_ioc_recovery()
2435 ret = -EBUSY; in mpt_do_ioc_recovery()
2455 if ((ret == 0) && ((rc = PrimeIocFifos(ioc)) != 0)) in mpt_do_ioc_recovery()
2456 ret = -3; in mpt_do_ioc_recovery()
2463 if ((ret == 0) && ((rc = SendIocInit(ioc, sleepFlag)) != 0)) in mpt_do_ioc_recovery()
2464 ret = -4; in mpt_do_ioc_recovery()
2491 if (ret == 0) { in mpt_do_ioc_recovery()
2510 ret = -6; in mpt_do_ioc_recovery()
2519 if ((ret == 0) && (!ioc->facts.EventState)) { in mpt_do_ioc_recovery()
2523 ret = SendEventNotification(ioc, 1, sleepFlag); /* 1=Enable */ in mpt_do_ioc_recovery()
2529 if (ret == 0) { in mpt_do_ioc_recovery()
2553 if ((ret == 0) && (reason == MPT_HOSTEVENT_IOC_BRINGUP)) { in mpt_do_ioc_recovery()
2567 ret = mptbase_sas_persist_operation(ioc, in mpt_do_ioc_recovery()
2569 if(ret != 0) in mpt_do_ioc_recovery()
2626 if ((ret != 0) && irq_allocated) { in mpt_do_ioc_recovery()
2631 return ret; in mpt_do_ioc_recovery()
2702 int ret; in mpt_adapter_disable() local
2707 if ((ret = mpt_downloadboot(ioc, (MpiFwHeader_t *) in mpt_adapter_disable()
2711 ioc->name, ret); in mpt_adapter_disable()
2795 if((ret = mpt_host_page_access_control(ioc, in mpt_adapter_disable()
2799 ioc->name, __func__, ret); in mpt_adapter_disable()
5073 int ret = 0; in mptbase_sas_persist_operation() local
5090 ret = -1; in mptbase_sas_persist_operation()
5101 ret = -1; in mptbase_sas_persist_operation()
5115 ret = -ETIME; in mptbase_sas_persist_operation()
5130 ret = -1; in mptbase_sas_persist_operation()
5141 ret = -1; in mptbase_sas_persist_operation()
5148 return ret; in mptbase_sas_persist_operation()
6353 int ret; in mpt_config() local
6402 ret = -EAGAIN; in mpt_config()
6467 ret = -ETIME; in mpt_config()
6493 ret = -1; in mpt_config()
6497 ret = le16_to_cpu(pReply->IOCStatus) & MPI_IOCSTATUS_MASK; in mpt_config()
6498 if (ret == MPI_IOCSTATUS_SUCCESS) { in mpt_config()
6515 ioc->name, ret, timeleft); in mpt_config()
6518 ret, le32_to_cpu(pReply->IOCLogInfo))); in mpt_config()
6547 return ret; in mpt_config()
7111 int ret = -1; in mpt_Soft_Hard_ResetHandler() local
7113 ret = mpt_SoftResetHandler(ioc, sleepFlag); in mpt_Soft_Hard_ResetHandler()
7114 if (ret == 0) in mpt_Soft_Hard_ResetHandler()
7115 return ret; in mpt_Soft_Hard_ResetHandler()
7116 ret = mpt_HardResetHandler(ioc, sleepFlag); in mpt_Soft_Hard_ResetHandler()
7117 return ret; in mpt_Soft_Hard_ResetHandler()