Lines Matching refs:taskmgmt_cmds

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()
327 mutex_lock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_taskmgmt()
329 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_taskmgmt()
384 INITIALIZE_MGMT_STATUS(ioc->taskmgmt_cmds.status) in mptctl_do_taskmgmt()
404 ii = wait_for_completion_timeout(&ioc->taskmgmt_cmds.done, timeout*HZ); in mptctl_do_taskmgmt()
406 if (!(ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) { in mptctl_do_taskmgmt()
411 if (ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET) in mptctl_do_taskmgmt()
418 if (!(ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_RF_VALID)) { in mptctl_do_taskmgmt()
425 pScsiTmReply = (SCSITaskMgmtReply_t *) ioc->taskmgmt_cmds.reply; in mptctl_do_taskmgmt()
449 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_taskmgmt()
450 CLEAR_MGMT_STATUS(ioc->taskmgmt_cmds.status) in mptctl_do_taskmgmt()
2164 mutex_lock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_mpt_command()
2166 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_mpt_command()
2184 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_mpt_command()
2203 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_mpt_command()
2212 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_mpt_command()
2221 mutex_unlock(&ioc->taskmgmt_cmds.mutex); in mptctl_do_mpt_command()