Lines Matching refs:scsih_cmds
2967 } else if (smid_task == ioc->scsih_cmds.smid) { in scsih_tm_cmd_map_status()
2968 if ((ioc->scsih_cmds.status & MPT3_CMD_COMPLETE) || in scsih_tm_cmd_map_status()
2969 (ioc->scsih_cmds.status & MPT3_CMD_NOT_USED)) in scsih_tm_cmd_map_status()
7093 if (ioc->scsih_cmds.status == MPT3_CMD_NOT_USED) in _scsih_done()
7095 if (ioc->scsih_cmds.smid != smid) in _scsih_done()
7097 ioc->scsih_cmds.status |= MPT3_CMD_COMPLETE; in _scsih_done()
7099 memcpy(ioc->scsih_cmds.reply, mpi_reply, in _scsih_done()
7101 ioc->scsih_cmds.status |= MPT3_CMD_REPLY_VALID; in _scsih_done()
7103 ioc->scsih_cmds.status &= ~MPT3_CMD_PENDING; in _scsih_done()
7104 complete(&ioc->scsih_cmds.done); in _scsih_done()
8928 mutex_lock(&ioc->scsih_cmds.mutex); in _scsih_ir_fastpath()
8930 if (ioc->scsih_cmds.status != MPT3_CMD_NOT_USED) { in _scsih_ir_fastpath()
8935 ioc->scsih_cmds.status = MPT3_CMD_PENDING; in _scsih_ir_fastpath()
8940 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in _scsih_ir_fastpath()
8946 ioc->scsih_cmds.smid = smid; in _scsih_ir_fastpath()
8957 init_completion(&ioc->scsih_cmds.done); in _scsih_ir_fastpath()
8959 wait_for_completion_timeout(&ioc->scsih_cmds.done, 10*HZ); in _scsih_ir_fastpath()
8961 if (!(ioc->scsih_cmds.status & MPT3_CMD_COMPLETE)) { in _scsih_ir_fastpath()
8963 ioc->scsih_cmds.status, mpi_request, in _scsih_ir_fastpath()
8969 if (ioc->scsih_cmds.status & MPT3_CMD_REPLY_VALID) { in _scsih_ir_fastpath()
8971 mpi_reply = ioc->scsih_cmds.reply; in _scsih_ir_fastpath()
8989 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in _scsih_ir_fastpath()
8990 mutex_unlock(&ioc->scsih_cmds.mutex); in _scsih_ir_fastpath()
10670 if (ioc->scsih_cmds.status & MPT3_CMD_PENDING) { in mpt3sas_scsih_clear_outstanding_scsi_tm_commands()
10671 ioc->scsih_cmds.status |= MPT3_CMD_RESET; in mpt3sas_scsih_clear_outstanding_scsi_tm_commands()
10672 mpt3sas_base_free_smid(ioc, ioc->scsih_cmds.smid); in mpt3sas_scsih_clear_outstanding_scsi_tm_commands()
10673 complete(&ioc->scsih_cmds.done); in mpt3sas_scsih_clear_outstanding_scsi_tm_commands()
11110 mutex_lock(&ioc->scsih_cmds.mutex); in _scsih_nvme_shutdown()
11112 if (ioc->scsih_cmds.status != MPT3_CMD_NOT_USED) { in _scsih_nvme_shutdown()
11117 ioc->scsih_cmds.status = MPT3_CMD_PENDING; in _scsih_nvme_shutdown()
11123 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in _scsih_nvme_shutdown()
11128 ioc->scsih_cmds.smid = smid; in _scsih_nvme_shutdown()
11133 init_completion(&ioc->scsih_cmds.done); in _scsih_nvme_shutdown()
11139 wait_for_completion_timeout(&ioc->scsih_cmds.done, in _scsih_nvme_shutdown()
11142 if (!(ioc->scsih_cmds.status & MPT3_CMD_COMPLETE)) { in _scsih_nvme_shutdown()
11147 if (ioc->scsih_cmds.status & MPT3_CMD_REPLY_VALID) { in _scsih_nvme_shutdown()
11148 mpi_reply = ioc->scsih_cmds.reply; in _scsih_nvme_shutdown()
11155 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in _scsih_nvme_shutdown()
11156 mutex_unlock(&ioc->scsih_cmds.mutex); in _scsih_nvme_shutdown()
11182 mutex_lock(&ioc->scsih_cmds.mutex); in _scsih_ir_shutdown()
11184 if (ioc->scsih_cmds.status != MPT3_CMD_NOT_USED) { in _scsih_ir_shutdown()
11188 ioc->scsih_cmds.status = MPT3_CMD_PENDING; in _scsih_ir_shutdown()
11193 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in _scsih_ir_shutdown()
11198 ioc->scsih_cmds.smid = smid; in _scsih_ir_shutdown()
11206 init_completion(&ioc->scsih_cmds.done); in _scsih_ir_shutdown()
11208 wait_for_completion_timeout(&ioc->scsih_cmds.done, 10*HZ); in _scsih_ir_shutdown()
11210 if (!(ioc->scsih_cmds.status & MPT3_CMD_COMPLETE)) { in _scsih_ir_shutdown()
11215 if (ioc->scsih_cmds.status & MPT3_CMD_REPLY_VALID) { in _scsih_ir_shutdown()
11216 mpi_reply = ioc->scsih_cmds.reply; in _scsih_ir_shutdown()
11224 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in _scsih_ir_shutdown()
11225 mutex_unlock(&ioc->scsih_cmds.mutex); in _scsih_ir_shutdown()