tm_cmds          7123 drivers/scsi/mpt3sas/mpt3sas_base.c 	ioc->tm_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL);
tm_cmds          7124 drivers/scsi/mpt3sas/mpt3sas_base.c 	ioc->tm_cmds.status = MPT3_CMD_NOT_USED;
tm_cmds          7125 drivers/scsi/mpt3sas/mpt3sas_base.c 	mutex_init(&ioc->tm_cmds.mutex);
tm_cmds          7140 drivers/scsi/mpt3sas/mpt3sas_base.c 	    !ioc->tm_cmds.reply || !ioc->config_cmds.reply ||
tm_cmds          7201 drivers/scsi/mpt3sas/mpt3sas_base.c 	kfree(ioc->tm_cmds.reply);
tm_cmds          7212 drivers/scsi/mpt3sas/mpt3sas_base.c 	ioc->tm_cmds.reply = NULL;
tm_cmds          7247 drivers/scsi/mpt3sas/mpt3sas_base.c 	kfree(ioc->tm_cmds.reply);
tm_cmds          1253 drivers/scsi/mpt3sas/mpt3sas_base.h 	struct _internal_cmd tm_cmds;
tm_cmds          2577 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (ioc->tm_cmds.status == MPT3_CMD_NOT_USED)
tm_cmds          2579 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (ioc->tm_cmds.smid != smid)
tm_cmds          2581 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	ioc->tm_cmds.status |= MPT3_CMD_COMPLETE;
tm_cmds          2584 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		memcpy(ioc->tm_cmds.reply, mpi_reply, mpi_reply->MsgLength*4);
tm_cmds          2585 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		ioc->tm_cmds.status |= MPT3_CMD_REPLY_VALID;
tm_cmds          2587 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	ioc->tm_cmds.status &= ~MPT3_CMD_PENDING;
tm_cmds          2588 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	complete(&ioc->tm_cmds.done);
tm_cmds          2677 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	lockdep_assert_held(&ioc->tm_cmds.mutex);
tm_cmds          2679 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (ioc->tm_cmds.status != MPT3_CMD_NOT_USED) {
tm_cmds          2713 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	ioc->tm_cmds.status = MPT3_CMD_PENDING;
tm_cmds          2715 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	ioc->tm_cmds.smid = smid;
tm_cmds          2717 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	memset(ioc->tm_cmds.reply, 0, sizeof(Mpi2SCSITaskManagementReply_t));
tm_cmds          2725 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	init_completion(&ioc->tm_cmds.done);
tm_cmds          2727 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	wait_for_completion_timeout(&ioc->tm_cmds.done, timeout*HZ);
tm_cmds          2728 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (!(ioc->tm_cmds.status & MPT3_CMD_COMPLETE)) {
tm_cmds          2730 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			ioc->tm_cmds.status, mpi_request,
tm_cmds          2742 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (ioc->tm_cmds.status & MPT3_CMD_REPLY_VALID) {
tm_cmds          2744 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		mpi_reply = ioc->tm_cmds.reply;
tm_cmds          2761 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	ioc->tm_cmds.status = MPT3_CMD_NOT_USED;
tm_cmds          2771 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	mutex_lock(&ioc->tm_cmds.mutex);
tm_cmds          2774 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	mutex_unlock(&ioc->tm_cmds.mutex);
tm_cmds          7387 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	mutex_lock(&ioc->tm_cmds.mutex);
tm_cmds          7394 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	mpi_reply = ioc->tm_cmds.reply;
tm_cmds          7521 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	mutex_unlock(&ioc->tm_cmds.mutex);
tm_cmds          9289 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (ioc->tm_cmds.status & MPT3_CMD_PENDING) {
tm_cmds          9290 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		ioc->tm_cmds.status |= MPT3_CMD_RESET;
tm_cmds          9291 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		mpt3sas_base_free_smid(ioc, ioc->tm_cmds.smid);
tm_cmds          9292 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		complete(&ioc->tm_cmds.done);