Lines Matching refs:config_cmds

257 	if (ioc->config_cmds.status == MPT3_CMD_NOT_USED)  in mpt3sas_config_done()
259 if (ioc->config_cmds.smid != smid) in mpt3sas_config_done()
261 ioc->config_cmds.status |= MPT3_CMD_COMPLETE; in mpt3sas_config_done()
264 ioc->config_cmds.status |= MPT3_CMD_REPLY_VALID; in mpt3sas_config_done()
265 memcpy(ioc->config_cmds.reply, mpi_reply, in mpt3sas_config_done()
268 ioc->config_cmds.status &= ~MPT3_CMD_PENDING; in mpt3sas_config_done()
271 ioc->config_cmds.smid = USHRT_MAX; in mpt3sas_config_done()
272 complete(&ioc->config_cmds.done); in mpt3sas_config_done()
307 mutex_lock(&ioc->config_cmds.mutex); in _config_request()
308 if (ioc->config_cmds.status != MPT3_CMD_NOT_USED) { in _config_request()
310 mutex_unlock(&ioc->config_cmds.mutex); in _config_request()
368 ioc->config_cmds.status = MPT3_CMD_NOT_USED; in _config_request()
374 memset(ioc->config_cmds.reply, 0, sizeof(Mpi2ConfigReply_t)); in _config_request()
375 ioc->config_cmds.status = MPT3_CMD_PENDING; in _config_request()
377 ioc->config_cmds.smid = smid; in _config_request()
381 init_completion(&ioc->config_cmds.done); in _config_request()
383 wait_for_completion_timeout(&ioc->config_cmds.done, timeout*HZ); in _config_request()
384 if (!(ioc->config_cmds.status & MPT3_CMD_COMPLETE)) { in _config_request()
389 mpt3sas_base_check_cmd_timeout(ioc, ioc->config_cmds.status, in _config_request()
392 if (ioc->config_cmds.smid == smid) in _config_request()
394 if ((ioc->shost_recovery) || (ioc->config_cmds.status & in _config_request()
402 if (ioc->config_cmds.status & MPT3_CMD_REPLY_VALID) { in _config_request()
403 memcpy(mpi_reply, ioc->config_cmds.reply, in _config_request()
486 ioc->config_cmds.status = MPT3_CMD_NOT_USED; in _config_request()
487 mutex_unlock(&ioc->config_cmds.mutex); in _config_request()