Lines Matching refs:cfg_cmds
306 return &mrioc->cfg_cmds; in mpi3mr_get_drv_cmd()
4564 cmdptr = &mrioc->cfg_cmds; in mpi3mr_flush_drv_cmds()
5072 mutex_lock(&mrioc->cfg_cmds.mutex); in mpi3mr_post_cfg_req()
5073 if (mrioc->cfg_cmds.state & MPI3MR_CMD_PENDING) { in mpi3mr_post_cfg_req()
5076 mutex_unlock(&mrioc->cfg_cmds.mutex); in mpi3mr_post_cfg_req()
5079 mrioc->cfg_cmds.state = MPI3MR_CMD_PENDING; in mpi3mr_post_cfg_req()
5080 mrioc->cfg_cmds.is_waiting = 1; in mpi3mr_post_cfg_req()
5081 mrioc->cfg_cmds.callback = NULL; in mpi3mr_post_cfg_req()
5082 mrioc->cfg_cmds.ioc_status = 0; in mpi3mr_post_cfg_req()
5083 mrioc->cfg_cmds.ioc_loginfo = 0; in mpi3mr_post_cfg_req()
5088 init_completion(&mrioc->cfg_cmds.done); in mpi3mr_post_cfg_req()
5098 wait_for_completion_timeout(&mrioc->cfg_cmds.done, (timeout * HZ)); in mpi3mr_post_cfg_req()
5099 if (!(mrioc->cfg_cmds.state & MPI3MR_CMD_COMPLETE)) { in mpi3mr_post_cfg_req()
5106 *ioc_status = mrioc->cfg_cmds.ioc_status & MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_post_cfg_req()
5110 *ioc_status, mrioc->cfg_cmds.ioc_loginfo); in mpi3mr_post_cfg_req()
5113 mrioc->cfg_cmds.state = MPI3MR_CMD_NOTUSED; in mpi3mr_post_cfg_req()
5114 mutex_unlock(&mrioc->cfg_cmds.mutex); in mpi3mr_post_cfg_req()