Lines Matching refs:internal_cmds
2616 if (ioc->internal_cmds.status & MPT_MGMT_STATUS_PENDING) { in mptscsih_ioc_reset()
2617 ioc->internal_cmds.status |= in mptscsih_ioc_reset()
2619 complete(&ioc->internal_cmds.done); in mptscsih_ioc_reset()
2682 ioc->internal_cmds.status |= MPT_MGMT_STATUS_COMMAND_GOOD; in mptscsih_scandv_complete()
2683 ioc->internal_cmds.completion_code = MPT_SCANDV_GOOD; in mptscsih_scandv_complete()
2689 ioc->internal_cmds.completion_code = in mptscsih_scandv_complete()
2691 ioc->internal_cmds.status |= MPT_MGMT_STATUS_RF_VALID; in mptscsih_scandv_complete()
2692 memcpy(ioc->internal_cmds.reply, reply, in mptscsih_scandv_complete()
2703 memcpy(ioc->internal_cmds.sense, sense_data, sz); in mptscsih_scandv_complete()
2706 if (!(ioc->internal_cmds.status & MPT_MGMT_STATUS_PENDING)) in mptscsih_scandv_complete()
2708 ioc->internal_cmds.status &= ~MPT_MGMT_STATUS_PENDING; in mptscsih_scandv_complete()
2709 complete(&ioc->internal_cmds.done); in mptscsih_scandv_complete()
2849 mutex_lock(&ioc->internal_cmds.mutex); in mptscsih_do_cmd()
3013 INITIALIZE_MGMT_STATUS(ioc->internal_cmds.status) in mptscsih_do_cmd()
3015 timeleft = wait_for_completion_timeout(&ioc->internal_cmds.done, in mptscsih_do_cmd()
3017 if (!(ioc->internal_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) { in mptscsih_do_cmd()
3022 if (ioc->internal_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET) { in mptscsih_do_cmd()
3038 ret = ioc->internal_cmds.completion_code; in mptscsih_do_cmd()
3043 CLEAR_MGMT_STATUS(ioc->internal_cmds.status) in mptscsih_do_cmd()
3044 mutex_unlock(&ioc->internal_cmds.mutex); in mptscsih_do_cmd()