Home
last modified time | relevance | path

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

/openbmc/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_ctl.c267 if (ioc->ctl_cmds.status == MPT3_CMD_NOT_USED) in mpt3sas_ctl_done()
269 if (ioc->ctl_cmds.smid != smid) in mpt3sas_ctl_done()
271 ioc->ctl_cmds.status |= MPT3_CMD_COMPLETE; in mpt3sas_ctl_done()
274 memcpy(ioc->ctl_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in mpt3sas_ctl_done()
275 ioc->ctl_cmds.status |= MPT3_CMD_REPLY_VALID; in mpt3sas_ctl_done()
287 memcpy(ioc->ctl_cmds.sense, sense_data, sz); in mpt3sas_ctl_done()
300 memcpy(ioc->ctl_cmds.sense, sense_data, sz); in mpt3sas_ctl_done()
305 ioc->ctl_cmds.status &= ~MPT3_CMD_PENDING; in mpt3sas_ctl_done()
306 complete(&ioc->ctl_cmds.done); in mpt3sas_ctl_done()
498 if (ioc->ctl_cmds.status & MPT3_CMD_PENDING) { in mpt3sas_ctl_clear_outstanding_ioctls()
[all …]
H A Dmpt3sas_base.c8587 ioc->ctl_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); in mpt3sas_base_attach()
8588 ioc->ctl_cmds.sense = kzalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL); in mpt3sas_base_attach()
8589 ioc->ctl_cmds.status = MPT3_CMD_NOT_USED; in mpt3sas_base_attach()
8590 mutex_init(&ioc->ctl_cmds.mutex); in mpt3sas_base_attach()
8595 !ioc->ctl_cmds.reply || !ioc->ctl_cmds.sense) { in mpt3sas_base_attach()
8665 kfree(ioc->ctl_cmds.reply); in mpt3sas_base_attach()
8666 kfree(ioc->ctl_cmds.sense); in mpt3sas_base_attach()
8668 ioc->ctl_cmds.reply = NULL; in mpt3sas_base_attach()
8701 kfree(ioc->ctl_cmds.reply); in mpt3sas_base_detach()
8702 kfree(ioc->ctl_cmds.sense); in mpt3sas_base_detach()
H A Dmpt3sas_base.h1423 struct _internal_cmd ctl_cmds; member
H A Dmpt3sas_scsih.c2970 } else if (smid_task == ioc->ctl_cmds.smid) { in scsih_tm_cmd_map_status()
2971 if ((ioc->ctl_cmds.status & MPT3_CMD_COMPLETE) || in scsih_tm_cmd_map_status()
2972 (ioc->ctl_cmds.status & MPT3_CMD_NOT_USED)) in scsih_tm_cmd_map_status()