• Home
  • Raw
  • Download

Lines Matching refs:tm_cmds

2577 	if (ioc->tm_cmds.status == MPT3_CMD_NOT_USED)  in _scsih_tm_done()
2579 if (ioc->tm_cmds.smid != smid) in _scsih_tm_done()
2581 ioc->tm_cmds.status |= MPT3_CMD_COMPLETE; in _scsih_tm_done()
2584 memcpy(ioc->tm_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in _scsih_tm_done()
2585 ioc->tm_cmds.status |= MPT3_CMD_REPLY_VALID; in _scsih_tm_done()
2587 ioc->tm_cmds.status &= ~MPT3_CMD_PENDING; in _scsih_tm_done()
2588 complete(&ioc->tm_cmds.done); in _scsih_tm_done()
2677 lockdep_assert_held(&ioc->tm_cmds.mutex); in mpt3sas_scsih_issue_tm()
2679 if (ioc->tm_cmds.status != MPT3_CMD_NOT_USED) { in mpt3sas_scsih_issue_tm()
2713 ioc->tm_cmds.status = MPT3_CMD_PENDING; in mpt3sas_scsih_issue_tm()
2715 ioc->tm_cmds.smid = smid; in mpt3sas_scsih_issue_tm()
2717 memset(ioc->tm_cmds.reply, 0, sizeof(Mpi2SCSITaskManagementReply_t)); in mpt3sas_scsih_issue_tm()
2725 init_completion(&ioc->tm_cmds.done); in mpt3sas_scsih_issue_tm()
2727 wait_for_completion_timeout(&ioc->tm_cmds.done, timeout*HZ); in mpt3sas_scsih_issue_tm()
2728 if (!(ioc->tm_cmds.status & MPT3_CMD_COMPLETE)) { in mpt3sas_scsih_issue_tm()
2730 ioc->tm_cmds.status, mpi_request, in mpt3sas_scsih_issue_tm()
2742 if (ioc->tm_cmds.status & MPT3_CMD_REPLY_VALID) { in mpt3sas_scsih_issue_tm()
2744 mpi_reply = ioc->tm_cmds.reply; in mpt3sas_scsih_issue_tm()
2761 ioc->tm_cmds.status = MPT3_CMD_NOT_USED; in mpt3sas_scsih_issue_tm()
2771 mutex_lock(&ioc->tm_cmds.mutex); in mpt3sas_scsih_issue_locked_tm()
2774 mutex_unlock(&ioc->tm_cmds.mutex); in mpt3sas_scsih_issue_locked_tm()
7387 mutex_lock(&ioc->tm_cmds.mutex); in _scsih_sas_broadcast_primitive_event()
7394 mpi_reply = ioc->tm_cmds.reply; in _scsih_sas_broadcast_primitive_event()
7521 mutex_unlock(&ioc->tm_cmds.mutex); in _scsih_sas_broadcast_primitive_event()
9289 if (ioc->tm_cmds.status & MPT3_CMD_PENDING) { in mpt3sas_scsih_after_reset_handler()
9290 ioc->tm_cmds.status |= MPT3_CMD_RESET; in mpt3sas_scsih_after_reset_handler()
9291 mpt3sas_base_free_smid(ioc, ioc->tm_cmds.smid); in mpt3sas_scsih_after_reset_handler()
9292 complete(&ioc->tm_cmds.done); in mpt3sas_scsih_after_reset_handler()