Home
last modified time | relevance | path

Searched refs:ctl_cmds (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.c261 if (ioc->ctl_cmds.status == MPT3_CMD_NOT_USED) in mpt3sas_ctl_done()
263 if (ioc->ctl_cmds.smid != smid) in mpt3sas_ctl_done()
265 ioc->ctl_cmds.status |= MPT3_CMD_COMPLETE; in mpt3sas_ctl_done()
268 memcpy(ioc->ctl_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in mpt3sas_ctl_done()
269 ioc->ctl_cmds.status |= MPT3_CMD_REPLY_VALID; in mpt3sas_ctl_done()
281 memcpy(ioc->ctl_cmds.sense, sense_data, sz); in mpt3sas_ctl_done()
294 memcpy(ioc->ctl_cmds.sense, sense_data, sz); in mpt3sas_ctl_done()
299 ioc->ctl_cmds.status &= ~MPT3_CMD_PENDING; in mpt3sas_ctl_done()
300 complete(&ioc->ctl_cmds.done); in mpt3sas_ctl_done()
482 if (ioc->ctl_cmds.status & MPT3_CMD_PENDING) { in mpt3sas_ctl_after_reset_handler()
[all …]
Dmpt3sas_base.c7134 ioc->ctl_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); in mpt3sas_base_attach()
7135 ioc->ctl_cmds.sense = kzalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL); in mpt3sas_base_attach()
7136 ioc->ctl_cmds.status = MPT3_CMD_NOT_USED; in mpt3sas_base_attach()
7137 mutex_init(&ioc->ctl_cmds.mutex); in mpt3sas_base_attach()
7142 !ioc->ctl_cmds.reply || !ioc->ctl_cmds.sense) { in mpt3sas_base_attach()
7208 kfree(ioc->ctl_cmds.reply); in mpt3sas_base_attach()
7209 kfree(ioc->ctl_cmds.sense); in mpt3sas_base_attach()
7211 ioc->ctl_cmds.reply = NULL; in mpt3sas_base_attach()
7244 kfree(ioc->ctl_cmds.reply); in mpt3sas_base_detach()
7245 kfree(ioc->ctl_cmds.sense); in mpt3sas_base_detach()
Dmpt3sas_base.h1254 struct _internal_cmd ctl_cmds; member