Lines Matching refs:drv_cmd
19 struct mpi3mr_drv_cmd *drv_cmd);
3686 struct mpi3mr_drv_cmd *drv_cmd) in mpi3mr_port_enable_complete() argument
3688 drv_cmd->callback = NULL; in mpi3mr_port_enable_complete()
3690 if (drv_cmd->state & MPI3MR_CMD_RESET) in mpi3mr_port_enable_complete()
3693 mrioc->scan_failed = drv_cmd->ioc_status; in mpi3mr_port_enable_complete()
3694 drv_cmd->state = MPI3MR_CMD_NOTUSED; in mpi3mr_port_enable_complete()
4975 struct mpi3mr_drv_cmd *drv_cmd) in mpi3mr_pel_wait_post() argument
4982 drv_cmd->state = MPI3MR_CMD_PENDING; in mpi3mr_pel_wait_post()
4983 drv_cmd->is_waiting = 0; in mpi3mr_pel_wait_post()
4984 drv_cmd->callback = mpi3mr_pel_wait_complete; in mpi3mr_pel_wait_post()
4985 drv_cmd->ioc_status = 0; in mpi3mr_pel_wait_post()
4986 drv_cmd->ioc_loginfo = 0; in mpi3mr_pel_wait_post()
5000 drv_cmd->state = MPI3MR_CMD_NOTUSED; in mpi3mr_pel_wait_post()
5001 drv_cmd->callback = NULL; in mpi3mr_pel_wait_post()
5002 drv_cmd->retry_count = 0; in mpi3mr_pel_wait_post()
5018 struct mpi3mr_drv_cmd *drv_cmd) in mpi3mr_pel_get_seqnum_post() argument
5039 if (drv_cmd) { in mpi3mr_pel_get_seqnum_post()
5040 drv_cmd->state = MPI3MR_CMD_NOTUSED; in mpi3mr_pel_get_seqnum_post()
5041 drv_cmd->callback = NULL; in mpi3mr_pel_get_seqnum_post()
5042 drv_cmd->retry_count = 0; in mpi3mr_pel_get_seqnum_post()
5064 struct mpi3mr_drv_cmd *drv_cmd) in mpi3mr_pel_wait_complete() argument
5070 if (drv_cmd->state & MPI3MR_CMD_RESET) in mpi3mr_pel_wait_complete()
5073 ioc_status = drv_cmd->ioc_status & MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_pel_wait_complete()
5076 __func__, ioc_status, drv_cmd->ioc_loginfo); in mpi3mr_pel_wait_complete()
5079 ioc_status, drv_cmd->ioc_loginfo); in mpi3mr_pel_wait_complete()
5083 if (drv_cmd->state & MPI3MR_CMD_REPLY_VALID) in mpi3mr_pel_wait_complete()
5084 pel_reply = (struct mpi3_pel_reply *)drv_cmd->reply; in mpi3mr_pel_wait_complete()
5104 if (drv_cmd->retry_count < MPI3MR_PEL_RETRY_COUNT) { in mpi3mr_pel_wait_complete()
5105 drv_cmd->retry_count++; in mpi3mr_pel_wait_complete()
5107 drv_cmd->retry_count); in mpi3mr_pel_wait_complete()
5108 mpi3mr_pel_wait_post(mrioc, drv_cmd); in mpi3mr_pel_wait_complete()
5113 drv_cmd->retry_count); in mpi3mr_pel_wait_complete()
5126 drv_cmd->state = MPI3MR_CMD_NOTUSED; in mpi3mr_pel_wait_complete()
5127 drv_cmd->callback = NULL; in mpi3mr_pel_wait_complete()
5128 drv_cmd->retry_count = 0; in mpi3mr_pel_wait_complete()
5143 struct mpi3mr_drv_cmd *drv_cmd) in mpi3mr_pel_get_seqnum_complete() argument
5152 if (drv_cmd->state & MPI3MR_CMD_RESET) in mpi3mr_pel_get_seqnum_complete()
5155 ioc_status = drv_cmd->ioc_status & MPI3_IOCSTATUS_STATUS_MASK; in mpi3mr_pel_get_seqnum_complete()
5159 ioc_status, drv_cmd->ioc_loginfo); in mpi3mr_pel_get_seqnum_complete()
5163 if (drv_cmd->state & MPI3MR_CMD_REPLY_VALID) in mpi3mr_pel_get_seqnum_complete()
5164 pel_reply = (struct mpi3_pel_reply *)drv_cmd->reply; in mpi3mr_pel_get_seqnum_complete()
5179 if (drv_cmd->retry_count < MPI3MR_PEL_RETRY_COUNT) { in mpi3mr_pel_get_seqnum_complete()
5180 drv_cmd->retry_count++; in mpi3mr_pel_get_seqnum_complete()
5183 drv_cmd->retry_count); in mpi3mr_pel_get_seqnum_complete()
5184 mpi3mr_pel_get_seqnum_post(mrioc, drv_cmd); in mpi3mr_pel_get_seqnum_complete()
5190 drv_cmd->retry_count); in mpi3mr_pel_get_seqnum_complete()
5194 drv_cmd->retry_count = 0; in mpi3mr_pel_get_seqnum_complete()
5195 mpi3mr_pel_wait_post(mrioc, drv_cmd); in mpi3mr_pel_get_seqnum_complete()
5201 drv_cmd->state = MPI3MR_CMD_NOTUSED; in mpi3mr_pel_get_seqnum_complete()
5202 drv_cmd->callback = NULL; in mpi3mr_pel_get_seqnum_complete()
5203 drv_cmd->retry_count = 0; in mpi3mr_pel_get_seqnum_complete()