Lines Matching refs:internal_cmds

2566 		if (ioc->internal_cmds.status & MPT_MGMT_STATUS_PENDING) {  in mptscsih_ioc_reset()
2567 ioc->internal_cmds.status |= in mptscsih_ioc_reset()
2569 complete(&ioc->internal_cmds.done); in mptscsih_ioc_reset()
2632 ioc->internal_cmds.status |= MPT_MGMT_STATUS_COMMAND_GOOD; in mptscsih_scandv_complete()
2633 ioc->internal_cmds.completion_code = MPT_SCANDV_GOOD; in mptscsih_scandv_complete()
2639 ioc->internal_cmds.completion_code = in mptscsih_scandv_complete()
2641 ioc->internal_cmds.status |= MPT_MGMT_STATUS_RF_VALID; in mptscsih_scandv_complete()
2642 memcpy(ioc->internal_cmds.reply, reply, in mptscsih_scandv_complete()
2653 memcpy(ioc->internal_cmds.sense, sense_data, sz); in mptscsih_scandv_complete()
2656 if (!(ioc->internal_cmds.status & MPT_MGMT_STATUS_PENDING)) in mptscsih_scandv_complete()
2658 ioc->internal_cmds.status &= ~MPT_MGMT_STATUS_PENDING; in mptscsih_scandv_complete()
2659 complete(&ioc->internal_cmds.done); in mptscsih_scandv_complete()
2799 mutex_lock(&ioc->internal_cmds.mutex); in mptscsih_do_cmd()
2963 INITIALIZE_MGMT_STATUS(ioc->internal_cmds.status) in mptscsih_do_cmd()
2965 timeleft = wait_for_completion_timeout(&ioc->internal_cmds.done, in mptscsih_do_cmd()
2967 if (!(ioc->internal_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) { in mptscsih_do_cmd()
2972 if (ioc->internal_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET) { in mptscsih_do_cmd()
2988 ret = ioc->internal_cmds.completion_code; in mptscsih_do_cmd()
2993 CLEAR_MGMT_STATUS(ioc->internal_cmds.status) in mptscsih_do_cmd()
2994 mutex_unlock(&ioc->internal_cmds.mutex); in mptscsih_do_cmd()