Home
last modified time | relevance | path

Searched refs:config_cmds (Results 1 – 6 of 6) sorted by relevance

/drivers/scsi/mpt2sas/
Dmpt2sas_config.c245 if (ioc->config_cmds.status == MPT2_CMD_NOT_USED) in mpt2sas_config_done()
247 if (ioc->config_cmds.smid != smid) in mpt2sas_config_done()
249 ioc->config_cmds.status |= MPT2_CMD_COMPLETE; in mpt2sas_config_done()
252 ioc->config_cmds.status |= MPT2_CMD_REPLY_VALID; in mpt2sas_config_done()
253 memcpy(ioc->config_cmds.reply, mpi_reply, in mpt2sas_config_done()
256 ioc->config_cmds.status &= ~MPT2_CMD_PENDING; in mpt2sas_config_done()
260 ioc->config_cmds.smid = USHRT_MAX; in mpt2sas_config_done()
261 complete(&ioc->config_cmds.done); in mpt2sas_config_done()
298 mutex_lock(&ioc->config_cmds.mutex); in _config_request()
299 if (ioc->config_cmds.status != MPT2_CMD_NOT_USED) { in _config_request()
[all …]
Dmpt2sas_base.c4558 ioc->config_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); in mpt2sas_base_attach()
4559 ioc->config_cmds.status = MPT2_CMD_NOT_USED; in mpt2sas_base_attach()
4560 mutex_init(&ioc->config_cmds.mutex); in mpt2sas_base_attach()
4570 !ioc->config_cmds.reply || !ioc->ctl_cmds.reply || in mpt2sas_base_attach()
4578 !ioc->config_cmds.reply || !ioc->ctl_cmds.reply) { in mpt2sas_base_attach()
4619 kfree(ioc->config_cmds.reply); in mpt2sas_base_attach()
4630 ioc->config_cmds.reply = NULL; in mpt2sas_base_attach()
4666 kfree(ioc->config_cmds.reply); in mpt2sas_base_detach()
4718 if (ioc->config_cmds.status & MPT2_CMD_PENDING) { in _base_reset_handler()
4719 ioc->config_cmds.status |= MPT2_CMD_RESET; in _base_reset_handler()
[all …]
Dmpt2sas_base.h876 struct _internal_cmd config_cmds; member
/drivers/scsi/mpt3sas/
Dmpt3sas_config.c245 if (ioc->config_cmds.status == MPT3_CMD_NOT_USED) in mpt3sas_config_done()
247 if (ioc->config_cmds.smid != smid) in mpt3sas_config_done()
249 ioc->config_cmds.status |= MPT3_CMD_COMPLETE; in mpt3sas_config_done()
252 ioc->config_cmds.status |= MPT3_CMD_REPLY_VALID; in mpt3sas_config_done()
253 memcpy(ioc->config_cmds.reply, mpi_reply, in mpt3sas_config_done()
256 ioc->config_cmds.status &= ~MPT3_CMD_PENDING; in mpt3sas_config_done()
260 ioc->config_cmds.smid = USHRT_MAX; in mpt3sas_config_done()
261 complete(&ioc->config_cmds.done); in mpt3sas_config_done()
299 mutex_lock(&ioc->config_cmds.mutex); in _config_request()
300 if (ioc->config_cmds.status != MPT3_CMD_NOT_USED) { in _config_request()
[all …]
Dmpt3sas_base.c4690 ioc->config_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); in mpt3sas_base_attach()
4691 ioc->config_cmds.status = MPT3_CMD_NOT_USED; in mpt3sas_base_attach()
4692 mutex_init(&ioc->config_cmds.mutex); in mpt3sas_base_attach()
4702 !ioc->config_cmds.reply || !ioc->ctl_cmds.reply || in mpt3sas_base_attach()
4742 kfree(ioc->config_cmds.reply); in mpt3sas_base_attach()
4753 ioc->config_cmds.reply = NULL; in mpt3sas_base_attach()
4786 kfree(ioc->config_cmds.reply); in mpt3sas_base_detach()
4837 if (ioc->config_cmds.status & MPT3_CMD_PENDING) { in _base_reset_handler()
4838 ioc->config_cmds.status |= MPT3_CMD_RESET; in _base_reset_handler()
4839 mpt3sas_base_free_smid(ioc, ioc->config_cmds.smid); in _base_reset_handler()
[all …]
Dmpt3sas_base.h805 struct _internal_cmd config_cmds; member