Lines Matching refs:scsih_cmds
622 mutex_lock(&ioc->scsih_cmds.mutex); in _base_sync_drv_fw_timestamp()
623 if (ioc->scsih_cmds.status != MPT3_CMD_NOT_USED) { in _base_sync_drv_fw_timestamp()
627 ioc->scsih_cmds.status = MPT3_CMD_PENDING; in _base_sync_drv_fw_timestamp()
631 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in _base_sync_drv_fw_timestamp()
635 ioc->scsih_cmds.smid = smid; in _base_sync_drv_fw_timestamp()
644 init_completion(&ioc->scsih_cmds.done); in _base_sync_drv_fw_timestamp()
649 wait_for_completion_timeout(&ioc->scsih_cmds.done, in _base_sync_drv_fw_timestamp()
651 if (!(ioc->scsih_cmds.status & MPT3_CMD_COMPLETE)) { in _base_sync_drv_fw_timestamp()
653 ioc->scsih_cmds.status, mpi_request, in _base_sync_drv_fw_timestamp()
657 if (ioc->scsih_cmds.status & MPT3_CMD_REPLY_VALID) { in _base_sync_drv_fw_timestamp()
658 mpi_reply = ioc->scsih_cmds.reply; in _base_sync_drv_fw_timestamp()
667 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in _base_sync_drv_fw_timestamp()
669 mutex_unlock(&ioc->scsih_cmds.mutex); in _base_sync_drv_fw_timestamp()
8530 ioc->scsih_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); in mpt3sas_base_attach()
8531 ioc->scsih_cmds.status = MPT3_CMD_NOT_USED; in mpt3sas_base_attach()
8532 mutex_init(&ioc->scsih_cmds.mutex); in mpt3sas_base_attach()
8551 !ioc->transport_cmds.reply || !ioc->scsih_cmds.reply || in mpt3sas_base_attach()
8619 kfree(ioc->scsih_cmds.reply); in mpt3sas_base_attach()
8629 ioc->scsih_cmds.reply = NULL; in mpt3sas_base_attach()
8665 kfree(ioc->scsih_cmds.reply); in mpt3sas_base_detach()