Lines Matching refs:cmd_idx

3494 	U16 cmd_idx = drv_cmd->host_tag - MPI3MR_HOSTTAG_DEVRMCMD_MIN;  in mpi3mr_dev_rmhs_complete_iou()  local
3548 mpi3mr_clear_bit(cmd_idx, sc->devrem_bitmap); in mpi3mr_dev_rmhs_complete_iou()
3566 U16 cmd_idx = drv_cmd->host_tag - MPI3MR_HOSTTAG_DEVRMCMD_MIN; in mpi3mr_dev_rmhs_complete_tm() local
3581 sc->name, drv_cmd->dev_handle, cmd_idx); in mpi3mr_dev_rmhs_complete_tm()
3606 mpi3mr_clear_bit(cmd_idx, sc->devrem_bitmap); in mpi3mr_dev_rmhs_complete_tm()
3627 U16 cmd_idx = MPI3MR_NUM_DEVRMCMD; in mpi3mr_dev_rmhs_send_tm() local
3635 cmd_idx = mpi3mr_find_first_zero_bit(sc->devrem_bitmap, in mpi3mr_dev_rmhs_send_tm()
3637 if (cmd_idx < MPI3MR_NUM_DEVRMCMD) { in mpi3mr_dev_rmhs_send_tm()
3638 if (!mpi3mr_test_and_set_bit(cmd_idx, sc->devrem_bitmap)) in mpi3mr_dev_rmhs_send_tm()
3640 cmd_idx = MPI3MR_NUM_DEVRMCMD; in mpi3mr_dev_rmhs_send_tm()
3644 if (cmd_idx >= MPI3MR_NUM_DEVRMCMD) { in mpi3mr_dev_rmhs_send_tm()
3659 drv_cmd = &sc->dev_rmhs_cmds[cmd_idx]; in mpi3mr_dev_rmhs_send_tm()
3662 cmd_idx = drv_cmd->host_tag - MPI3MR_HOSTTAG_DEVRMCMD_MIN; in mpi3mr_dev_rmhs_send_tm()
3665 __func__, handle, cmd_idx); in mpi3mr_dev_rmhs_send_tm()
3697 mpi3mr_clear_bit(cmd_idx, sc->devrem_bitmap); in mpi3mr_dev_rmhs_send_tm()
3714 U16 cmd_idx = drv_cmd->host_tag - MPI3MR_HOSTTAG_EVTACKCMD_MIN; in mpi3mr_complete_evt_ack() local
3737 mpi3mr_clear_bit(cmd_idx, sc->evtack_cmds_bitmap); in mpi3mr_complete_evt_ack()
3760 U16 cmd_idx = MPI3MR_NUM_EVTACKCMD; in mpi3mr_send_evt_ack() local
3767 cmd_idx = mpi3mr_find_first_zero_bit(sc->evtack_cmds_bitmap, in mpi3mr_send_evt_ack()
3769 if (cmd_idx < MPI3MR_NUM_EVTACKCMD) { in mpi3mr_send_evt_ack()
3770 if (!mpi3mr_test_and_set_bit(cmd_idx, in mpi3mr_send_evt_ack()
3773 cmd_idx = MPI3MR_NUM_EVTACKCMD; in mpi3mr_send_evt_ack()
3777 if (cmd_idx >= MPI3MR_NUM_EVTACKCMD) { in mpi3mr_send_evt_ack()
3789 drv_cmd = &sc->evtack_cmds[cmd_idx]; in mpi3mr_send_evt_ack()
3792 cmd_idx = drv_cmd->host_tag - MPI3MR_HOSTTAG_EVTACKCMD_MIN; in mpi3mr_send_evt_ack()
3818 mpi3mr_clear_bit(cmd_idx, sc->evtack_cmds_bitmap); in mpi3mr_send_evt_ack()