Home
last modified time | relevance | path

Searched refs:tm_cmds (Results 1 – 7 of 7) sorted by relevance

/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c1952 if (ioc->tm_cmds.status == MPT3_CMD_NOT_USED) in _scsih_tm_done()
1954 if (ioc->tm_cmds.smid != smid) in _scsih_tm_done()
1957 ioc->tm_cmds.status |= MPT3_CMD_COMPLETE; in _scsih_tm_done()
1960 memcpy(ioc->tm_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in _scsih_tm_done()
1961 ioc->tm_cmds.status |= MPT3_CMD_REPLY_VALID; in _scsih_tm_done()
1963 ioc->tm_cmds.status &= ~MPT3_CMD_PENDING; in _scsih_tm_done()
1964 complete(&ioc->tm_cmds.done); in _scsih_tm_done()
2057 mutex_lock(&ioc->tm_cmds.mutex); in mpt3sas_scsih_issue_tm()
2058 if (ioc->tm_cmds.status != MPT3_CMD_NOT_USED) { in mpt3sas_scsih_issue_tm()
2106 ioc->tm_cmds.status = MPT3_CMD_PENDING; in mpt3sas_scsih_issue_tm()
[all …]
Dmpt3sas_base.c4685 ioc->tm_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); in mpt3sas_base_attach()
4686 ioc->tm_cmds.status = MPT3_CMD_NOT_USED; in mpt3sas_base_attach()
4687 mutex_init(&ioc->tm_cmds.mutex); in mpt3sas_base_attach()
4701 !ioc->scsih_cmds.reply || !ioc->tm_cmds.reply || in mpt3sas_base_attach()
4739 kfree(ioc->tm_cmds.reply); in mpt3sas_base_attach()
4750 ioc->tm_cmds.reply = NULL; in mpt3sas_base_attach()
4783 kfree(ioc->tm_cmds.reply); in mpt3sas_base_detach()
Dmpt3sas_base.h803 struct _internal_cmd tm_cmds; member
/drivers/scsi/mpt2sas/
Dmpt2sas_scsih.c2292 if (ioc->tm_cmds.status == MPT2_CMD_NOT_USED) in _scsih_tm_done()
2294 if (ioc->tm_cmds.smid != smid) in _scsih_tm_done()
2297 ioc->tm_cmds.status |= MPT2_CMD_COMPLETE; in _scsih_tm_done()
2300 memcpy(ioc->tm_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in _scsih_tm_done()
2301 ioc->tm_cmds.status |= MPT2_CMD_REPLY_VALID; in _scsih_tm_done()
2303 ioc->tm_cmds.status &= ~MPT2_CMD_PENDING; in _scsih_tm_done()
2304 complete(&ioc->tm_cmds.done); in _scsih_tm_done()
2398 mutex_lock(&ioc->tm_cmds.mutex); in mpt2sas_scsih_issue_tm()
2399 if (ioc->tm_cmds.status != MPT2_CMD_NOT_USED) { in mpt2sas_scsih_issue_tm()
2447 ioc->tm_cmds.status = MPT2_CMD_PENDING; in mpt2sas_scsih_issue_tm()
[all …]
Dmpt2sas_base.c4553 ioc->tm_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); in mpt2sas_base_attach()
4554 ioc->tm_cmds.status = MPT2_CMD_NOT_USED; in mpt2sas_base_attach()
4555 mutex_init(&ioc->tm_cmds.mutex); in mpt2sas_base_attach()
4569 !ioc->scsih_cmds.reply || !ioc->tm_cmds.reply || in mpt2sas_base_attach()
4577 !ioc->scsih_cmds.reply || !ioc->tm_cmds.reply || in mpt2sas_base_attach()
4616 kfree(ioc->tm_cmds.reply); in mpt2sas_base_attach()
4627 ioc->tm_cmds.reply = NULL; in mpt2sas_base_attach()
4663 kfree(ioc->tm_cmds.reply); in mpt2sas_base_detach()
Dmpt2sas_base.h874 struct _internal_cmd tm_cmds; member
Dmpt2sas_ctl.c991 ioc->tm_cmds.status = MPT2_CMD_NOT_USED; in _ctl_do_mpt_command()