Lines Matching refs:cmdptr
354 struct mpi3mr_drv_cmd *cmdptr = NULL; in mpi3mr_process_admin_reply_desc() local
407 cmdptr = mpi3mr_get_drv_cmd(mrioc, host_tag, def_reply); in mpi3mr_process_admin_reply_desc()
408 if (cmdptr) { in mpi3mr_process_admin_reply_desc()
409 if (cmdptr->state & MPI3MR_CMD_PENDING) { in mpi3mr_process_admin_reply_desc()
410 cmdptr->state |= MPI3MR_CMD_COMPLETE; in mpi3mr_process_admin_reply_desc()
411 cmdptr->ioc_loginfo = ioc_loginfo; in mpi3mr_process_admin_reply_desc()
413 cmdptr->ioc_status = ioc_status; in mpi3mr_process_admin_reply_desc()
415 cmdptr->ioc_status = masked_ioc_status; in mpi3mr_process_admin_reply_desc()
416 cmdptr->state &= ~MPI3MR_CMD_PENDING; in mpi3mr_process_admin_reply_desc()
418 cmdptr->state |= MPI3MR_CMD_REPLY_VALID; in mpi3mr_process_admin_reply_desc()
419 memcpy((u8 *)cmdptr->reply, (u8 *)def_reply, in mpi3mr_process_admin_reply_desc()
422 if (sense_buf && cmdptr->sensebuf) { in mpi3mr_process_admin_reply_desc()
423 cmdptr->is_sense = 1; in mpi3mr_process_admin_reply_desc()
424 memcpy(cmdptr->sensebuf, sense_buf, in mpi3mr_process_admin_reply_desc()
427 if (cmdptr->is_waiting) { in mpi3mr_process_admin_reply_desc()
428 complete(&cmdptr->done); in mpi3mr_process_admin_reply_desc()
429 cmdptr->is_waiting = 0; in mpi3mr_process_admin_reply_desc()
430 } else if (cmdptr->callback) in mpi3mr_process_admin_reply_desc()
431 cmdptr->callback(mrioc, cmdptr); in mpi3mr_process_admin_reply_desc()
4908 struct mpi3mr_drv_cmd *cmdptr) in mpi3mr_drv_cmd_comp_reset() argument
4910 if (cmdptr->state & MPI3MR_CMD_PENDING) { in mpi3mr_drv_cmd_comp_reset()
4911 cmdptr->state |= MPI3MR_CMD_RESET; in mpi3mr_drv_cmd_comp_reset()
4912 cmdptr->state &= ~MPI3MR_CMD_PENDING; in mpi3mr_drv_cmd_comp_reset()
4913 if (cmdptr->is_waiting) { in mpi3mr_drv_cmd_comp_reset()
4914 complete(&cmdptr->done); in mpi3mr_drv_cmd_comp_reset()
4915 cmdptr->is_waiting = 0; in mpi3mr_drv_cmd_comp_reset()
4916 } else if (cmdptr->callback) in mpi3mr_drv_cmd_comp_reset()
4917 cmdptr->callback(mrioc, cmdptr); in mpi3mr_drv_cmd_comp_reset()
4931 struct mpi3mr_drv_cmd *cmdptr; in mpi3mr_flush_drv_cmds() local
4934 cmdptr = &mrioc->init_cmds; in mpi3mr_flush_drv_cmds()
4935 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()
4937 cmdptr = &mrioc->cfg_cmds; in mpi3mr_flush_drv_cmds()
4938 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()
4940 cmdptr = &mrioc->bsg_cmds; in mpi3mr_flush_drv_cmds()
4941 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()
4942 cmdptr = &mrioc->host_tm_cmds; in mpi3mr_flush_drv_cmds()
4943 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()
4946 cmdptr = &mrioc->dev_rmhs_cmds[i]; in mpi3mr_flush_drv_cmds()
4947 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()
4951 cmdptr = &mrioc->evtack_cmds[i]; in mpi3mr_flush_drv_cmds()
4952 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()
4955 cmdptr = &mrioc->pel_cmds; in mpi3mr_flush_drv_cmds()
4956 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()
4958 cmdptr = &mrioc->pel_abort_cmd; in mpi3mr_flush_drv_cmds()
4959 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()
4961 cmdptr = &mrioc->transport_cmds; in mpi3mr_flush_drv_cmds()
4962 mpi3mr_drv_cmd_comp_reset(mrioc, cmdptr); in mpi3mr_flush_drv_cmds()