Searched refs:taskmgmt_cmds (Results 1 – 5 of 5) sorted by relevance
295 ioc->taskmgmt_cmds.status |= MPT_MGMT_STATUS_COMMAND_GOOD; in mptctl_taskmgmt_reply()300 ioc->taskmgmt_cmds.status |= MPT_MGMT_STATUS_RF_VALID; in mptctl_taskmgmt_reply()301 memcpy(ioc->taskmgmt_cmds.reply, mr, in mptctl_taskmgmt_reply()304 if (ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_PENDING) { in mptctl_taskmgmt_reply()306 ioc->taskmgmt_cmds.status &= ~MPT_MGMT_STATUS_PENDING; in mptctl_taskmgmt_reply()307 complete(&ioc->taskmgmt_cmds.done); in mptctl_taskmgmt_reply()328 mutex_lock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_taskmgmt()330 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_taskmgmt()385 INITIALIZE_MGMT_STATUS(ioc->taskmgmt_cmds.status) in mptctl_do_taskmgmt()406 ii = wait_for_completion_timeout(&ioc->taskmgmt_cmds.done, timeout*HZ); in mptctl_do_taskmgmt()[all …]
1555 mutex_lock(&ioc->taskmgmt_cmds.mutex); in mptscsih_IssueTaskMgmt()1601 INITIALIZE_MGMT_STATUS(ioc->taskmgmt_cmds.status) in mptscsih_IssueTaskMgmt()1619 timeleft = wait_for_completion_timeout(&ioc->taskmgmt_cmds.done, in mptscsih_IssueTaskMgmt()1621 if (!(ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) { in mptscsih_IssueTaskMgmt()1626 if (ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET) in mptscsih_IssueTaskMgmt()1633 (SCSITaskMgmtReply_t *) ioc->taskmgmt_cmds.reply); in mptscsih_IssueTaskMgmt()1641 CLEAR_MGMT_STATUS(ioc->taskmgmt_cmds.status) in mptscsih_IssueTaskMgmt()1653 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptscsih_IssueTaskMgmt()1959 if (!(ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_RF_VALID)) { in mptscsih_taskmgmt_reply()2060 ioc->taskmgmt_cmds.status |= MPT_MGMT_STATUS_COMMAND_GOOD; in mptscsih_taskmgmt_complete()[all …]
1227 ioc->taskmgmt_cmds.status |= MPT_MGMT_STATUS_COMMAND_GOOD; in mptsas_taskmgmt_complete()1228 ioc->taskmgmt_cmds.status |= MPT_MGMT_STATUS_RF_VALID; in mptsas_taskmgmt_complete()1229 memcpy(ioc->taskmgmt_cmds.reply, mr, in mptsas_taskmgmt_complete()1231 if (ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_PENDING) { in mptsas_taskmgmt_complete()1232 ioc->taskmgmt_cmds.status &= ~MPT_MGMT_STATUS_PENDING; in mptsas_taskmgmt_complete()1233 complete(&ioc->taskmgmt_cmds.done); in mptsas_taskmgmt_complete()4796 INITIALIZE_MGMT_STATUS(ioc->taskmgmt_cmds.status) in mptsas_issue_tm()4802 timeleft = wait_for_completion_timeout(&ioc->taskmgmt_cmds.done, in mptsas_issue_tm()4804 if (!(ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) { in mptsas_issue_tm()4809 if (ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET) in mptsas_issue_tm()[all …]
750 MPT_MGMT taskmgmt_cmds; member
1836 mutex_init(&ioc->taskmgmt_cmds.mutex); in mpt_attach()1837 init_completion(&ioc->taskmgmt_cmds.done); in mpt_attach()6581 if (ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_PENDING) { in mpt_ioc_reset()6582 ioc->taskmgmt_cmds.status |= in mpt_ioc_reset()6584 complete(&ioc->taskmgmt_cmds.done); in mpt_ioc_reset()