Lines Matching refs:mptbase_cmds

648 		ioc->mptbase_cmds.status |= MPT_MGMT_STATUS_COMMAND_GOOD;  in mptbase_reply()
649 ioc->mptbase_cmds.status |= MPT_MGMT_STATUS_RF_VALID; in mptbase_reply()
650 memcpy(ioc->mptbase_cmds.reply, reply, in mptbase_reply()
653 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_PENDING) { in mptbase_reply()
654 ioc->mptbase_cmds.status &= ~MPT_MGMT_STATUS_PENDING; in mptbase_reply()
655 complete(&ioc->mptbase_cmds.done); in mptbase_reply()
658 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_FREE_MF) in mptbase_reply()
1834 mutex_init(&ioc->mptbase_cmds.mutex); in mpt_attach()
1835 init_completion(&ioc->mptbase_cmds.done); in mpt_attach()
5075 mutex_lock(&ioc->mptbase_cmds.mutex); in mptbase_sas_persist_operation()
5078 memset(ioc->mptbase_cmds.reply, 0 , MPT_DEFAULT_FRAME_SIZE); in mptbase_sas_persist_operation()
5079 INITIALIZE_MGMT_STATUS(ioc->mptbase_cmds.status) in mptbase_sas_persist_operation()
5112 timeleft = wait_for_completion_timeout(&ioc->mptbase_cmds.done, 10*HZ); in mptbase_sas_persist_operation()
5113 if (!(ioc->mptbase_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) { in mptbase_sas_persist_operation()
5116 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET) in mptbase_sas_persist_operation()
5128 if (!(ioc->mptbase_cmds.status & MPT_MGMT_STATUS_RF_VALID)) { in mptbase_sas_persist_operation()
5134 (SasIoUnitControlReply_t *)ioc->mptbase_cmds.reply; in mptbase_sas_persist_operation()
5145 CLEAR_MGMT_STATUS(ioc->mptbase_cmds.status) in mptbase_sas_persist_operation()
5146 mutex_unlock(&ioc->mptbase_cmds.mutex); in mptbase_sas_persist_operation()
6391 mutex_lock(&ioc->mptbase_cmds.mutex); in mpt_config()
6393 memset(ioc->mptbase_cmds.reply, 0 , MPT_DEFAULT_FRAME_SIZE); in mpt_config()
6394 INITIALIZE_MGMT_STATUS(ioc->mptbase_cmds.status) in mpt_config()
6463 timeleft = wait_for_completion_timeout(&ioc->mptbase_cmds.done, in mpt_config()
6465 if (!(ioc->mptbase_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) { in mpt_config()
6471 pReq->Action, ioc->mptbase_cmds.status, timeleft)); in mpt_config()
6472 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET) in mpt_config()
6482 mutex_unlock(&ioc->mptbase_cmds.mutex); in mpt_config()
6491 if (!(ioc->mptbase_cmds.status & MPT_MGMT_STATUS_RF_VALID)) { in mpt_config()
6495 pReply = (ConfigReply_t *)ioc->mptbase_cmds.reply; in mpt_config()
6521 CLEAR_MGMT_STATUS(ioc->mptbase_cmds.status) in mpt_config()
6522 mutex_unlock(&ioc->mptbase_cmds.mutex); in mpt_config()
6575 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_PENDING) { in mpt_ioc_reset()
6576 ioc->mptbase_cmds.status |= in mpt_ioc_reset()
6578 complete(&ioc->mptbase_cmds.done); in mpt_ioc_reset()