base_cmds 1239 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status == MPT3_CMD_NOT_USED) base_cmds 1242 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status |= MPT3_CMD_COMPLETE; base_cmds 1244 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status |= MPT3_CMD_REPLY_VALID; base_cmds 1245 drivers/scsi/mpt3sas/mpt3sas_base.c memcpy(ioc->base_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); base_cmds 1247 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status &= ~MPT3_CMD_PENDING; base_cmds 1249 drivers/scsi/mpt3sas/mpt3sas_base.c complete(&ioc->base_cmds.done); base_cmds 4256 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status & MPT3_CMD_PENDING) { base_cmds 4277 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_PENDING; base_cmds 4279 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.smid = smid; base_cmds 4286 drivers/scsi/mpt3sas/mpt3sas_base.c init_completion(&ioc->base_cmds.done); base_cmds 4289 drivers/scsi/mpt3sas/mpt3sas_base.c wait_for_completion_timeout(&ioc->base_cmds.done, base_cmds 4292 drivers/scsi/mpt3sas/mpt3sas_base.c if (!(ioc->base_cmds.status & MPT3_CMD_COMPLETE)) { base_cmds 4299 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status & MPT3_CMD_REPLY_VALID) { base_cmds 4300 drivers/scsi/mpt3sas/mpt3sas_base.c memcpy(&mpi_reply, ioc->base_cmds.reply, base_cmds 4319 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_NOT_USED; base_cmds 5803 drivers/scsi/mpt3sas/mpt3sas_base.c mutex_lock(&ioc->base_cmds.mutex); base_cmds 5805 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status != MPT3_CMD_NOT_USED) { base_cmds 5823 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_PENDING; base_cmds 5825 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.smid = smid; base_cmds 5830 drivers/scsi/mpt3sas/mpt3sas_base.c init_completion(&ioc->base_cmds.done); base_cmds 5832 drivers/scsi/mpt3sas/mpt3sas_base.c wait_for_completion_timeout(&ioc->base_cmds.done, base_cmds 5838 drivers/scsi/mpt3sas/mpt3sas_base.c if (!(ioc->base_cmds.status & MPT3_CMD_COMPLETE)) { base_cmds 5841 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status, mpi_request, base_cmds 5845 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status & MPT3_CMD_REPLY_VALID) base_cmds 5846 drivers/scsi/mpt3sas/mpt3sas_base.c memcpy(mpi_reply, ioc->base_cmds.reply, base_cmds 5850 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_NOT_USED; base_cmds 5856 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_NOT_USED; base_cmds 5859 drivers/scsi/mpt3sas/mpt3sas_base.c mutex_unlock(&ioc->base_cmds.mutex); base_cmds 5885 drivers/scsi/mpt3sas/mpt3sas_base.c mutex_lock(&ioc->base_cmds.mutex); base_cmds 5887 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status != MPT3_CMD_NOT_USED) { base_cmds 5905 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_PENDING; base_cmds 5907 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.smid = smid; base_cmds 5910 drivers/scsi/mpt3sas/mpt3sas_base.c init_completion(&ioc->base_cmds.done); base_cmds 5912 drivers/scsi/mpt3sas/mpt3sas_base.c wait_for_completion_timeout(&ioc->base_cmds.done, base_cmds 5914 drivers/scsi/mpt3sas/mpt3sas_base.c if (!(ioc->base_cmds.status & MPT3_CMD_COMPLETE)) { base_cmds 5917 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status, mpi_request, base_cmds 5921 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status & MPT3_CMD_REPLY_VALID) base_cmds 5922 drivers/scsi/mpt3sas/mpt3sas_base.c memcpy(mpi_reply, ioc->base_cmds.reply, base_cmds 5926 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_NOT_USED; base_cmds 5932 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_NOT_USED; base_cmds 5935 drivers/scsi/mpt3sas/mpt3sas_base.c mutex_unlock(&ioc->base_cmds.mutex); base_cmds 6472 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status & MPT3_CMD_PENDING) { base_cmds 6482 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_PENDING; base_cmds 6484 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.smid = smid; base_cmds 6492 drivers/scsi/mpt3sas/mpt3sas_base.c init_completion(&ioc->base_cmds.done); base_cmds 6494 drivers/scsi/mpt3sas/mpt3sas_base.c wait_for_completion_timeout(&ioc->base_cmds.done, 30*HZ); base_cmds 6495 drivers/scsi/mpt3sas/mpt3sas_base.c if (!(ioc->base_cmds.status & MPT3_CMD_COMPLETE)) { base_cmds 6499 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status & MPT3_CMD_RESET) base_cmds 6505 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_NOT_USED; base_cmds 6541 drivers/scsi/mpt3sas/mpt3sas_base.c mutex_lock(&ioc->base_cmds.mutex); base_cmds 6543 drivers/scsi/mpt3sas/mpt3sas_base.c mutex_unlock(&ioc->base_cmds.mutex); base_cmds 7104 drivers/scsi/mpt3sas/mpt3sas_base.c mutex_init(&ioc->base_cmds.mutex); base_cmds 7105 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); base_cmds 7106 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status = MPT3_CMD_NOT_USED; base_cmds 7138 drivers/scsi/mpt3sas/mpt3sas_base.c if (!ioc->base_cmds.reply || !ioc->port_enable_cmds.reply || base_cmds 7205 drivers/scsi/mpt3sas/mpt3sas_base.c kfree(ioc->base_cmds.reply); base_cmds 7211 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.reply = NULL; base_cmds 7245 drivers/scsi/mpt3sas/mpt3sas_base.c kfree(ioc->base_cmds.reply); base_cmds 7278 drivers/scsi/mpt3sas/mpt3sas_base.c if (ioc->base_cmds.status & MPT3_CMD_PENDING) { base_cmds 7279 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->base_cmds.status |= MPT3_CMD_RESET; base_cmds 7280 drivers/scsi/mpt3sas/mpt3sas_base.c mpt3sas_base_free_smid(ioc, ioc->base_cmds.smid); base_cmds 7281 drivers/scsi/mpt3sas/mpt3sas_base.c complete(&ioc->base_cmds.done); base_cmds 1249 drivers/scsi/mpt3sas/mpt3sas_base.h struct _internal_cmd base_cmds;