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()
371 ioc->config_cmds.status = MPT3_CMD_NOT_USED; in _config_request()
377 memset(ioc->config_cmds.reply, 0, sizeof(Mpi2ConfigReply_t)); in _config_request()
378 ioc->config_cmds.status = MPT3_CMD_PENDING; in _config_request()
380 ioc->config_cmds.smid = smid; in _config_request()
384 init_completion(&ioc->config_cmds.done); in _config_request()
386 wait_for_completion_timeout(&ioc->config_cmds.done, timeout*HZ); in _config_request()
387 if (!(ioc->config_cmds.status & MPT3_CMD_COMPLETE)) { in _config_request()
392 mpt3sas_base_check_cmd_timeout(ioc, ioc->config_cmds.status, in _config_request()
395 if (ioc->config_cmds.smid == smid) in _config_request()
397 if (ioc->config_cmds.status & MPT3_CMD_RESET) in _config_request()
407 if (ioc->config_cmds.status & MPT3_CMD_REPLY_VALID) { in _config_request()
408 memcpy(mpi_reply, ioc->config_cmds.reply, in _config_request()
491 ioc->config_cmds.status = MPT3_CMD_NOT_USED; in _config_request()
492 mutex_unlock(&ioc->config_cmds.mutex); in _config_request()