Lines Matching refs:mptbase_cmds
591 ioc->mptbase_cmds.status |= MPT_MGMT_STATUS_COMMAND_GOOD;
593 ioc->mptbase_cmds.status |= MPT_MGMT_STATUS_RF_VALID;
594 memcpy(ioc->mptbase_cmds.reply, reply,
598 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_PENDING) {
599 ioc->mptbase_cmds.status &= ~MPT_MGMT_STATUS_PENDING;
600 complete(&ioc->mptbase_cmds.done);
603 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_FREE_MF)
1769 mutex_init(&ioc->mptbase_cmds.mutex);
1770 init_completion(&ioc->mptbase_cmds.done);
4949 mutex_lock(&ioc->mptbase_cmds.mutex);
4952 memset(ioc->mptbase_cmds.reply, 0 , MPT_DEFAULT_FRAME_SIZE);
4953 INITIALIZE_MGMT_STATUS(ioc->mptbase_cmds.status)
4986 timeleft = wait_for_completion_timeout(&ioc->mptbase_cmds.done, 10*HZ);
4987 if (!(ioc->mptbase_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) {
4990 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET)
5002 if (!(ioc->mptbase_cmds.status & MPT_MGMT_STATUS_RF_VALID)) {
5008 (SasIoUnitControlReply_t *)ioc->mptbase_cmds.reply;
5019 CLEAR_MGMT_STATUS(ioc->mptbase_cmds.status)
5020 mutex_unlock(&ioc->mptbase_cmds.mutex);
6264 mutex_lock(&ioc->mptbase_cmds.mutex);
6266 memset(ioc->mptbase_cmds.reply, 0 , MPT_DEFAULT_FRAME_SIZE);
6267 INITIALIZE_MGMT_STATUS(ioc->mptbase_cmds.status)
6336 timeleft = wait_for_completion_timeout(&ioc->mptbase_cmds.done,
6338 if (!(ioc->mptbase_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) {
6344 pReq->Action, ioc->mptbase_cmds.status, timeleft));
6345 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET)
6352 if (!(ioc->mptbase_cmds.status & MPT_MGMT_STATUS_RF_VALID)) {
6356 pReply = (ConfigReply_t *)ioc->mptbase_cmds.reply;
6382 CLEAR_MGMT_STATUS(ioc->mptbase_cmds.status)
6383 mutex_unlock(&ioc->mptbase_cmds.mutex);
6435 /* wake up mptbase_cmds */
6436 if (ioc->mptbase_cmds.status & MPT_MGMT_STATUS_PENDING) {
6437 ioc->mptbase_cmds.status |=
6439 complete(&ioc->mptbase_cmds.done);