Lines Matching refs:cmd_mfi
3549 struct megasas_cmd *cmd_mfi; in complete_cmd_fusion() local
3641 cmd_mfi = instance->cmd_list[cmd_fusion->sync_cmd_idx]; in complete_cmd_fusion()
3645 if (cmd_mfi->flags & DRV_DCMD_POLLED_MODE) { in complete_cmd_fusion()
3646 cmd_mfi->flags &= ~DRV_DCMD_POLLED_MODE; in complete_cmd_fusion()
3647 megasas_return_cmd(instance, cmd_mfi); in complete_cmd_fusion()
3649 megasas_complete_cmd(instance, cmd_mfi, DID_OK); in complete_cmd_fusion()
4300 struct megasas_cmd *cmd_mfi; in megasas_refire_mgmt_cmd() local
4315 cmd_mfi = instance->cmd_list[cmd_fusion->sync_cmd_idx]; in megasas_refire_mgmt_cmd()
4316 smid = le16_to_cpu(cmd_mfi->context.smid); in megasas_refire_mgmt_cmd()
4324 switch (cmd_mfi->frame->hdr.cmd) { in megasas_refire_mgmt_cmd()
4326 opcode = le32_to_cpu(cmd_mfi->frame->dcmd.opcode); in megasas_refire_mgmt_cmd()
4329 cmd_mfi->frame->dcmd.cmd_status = MFI_STAT_OK; in megasas_refire_mgmt_cmd()
4336 !(cmd_mfi->flags & DRV_DCMD_SKIP_REFIRE); in megasas_refire_mgmt_cmd()
4344 cmd_mfi->frame->hdr.cmd_status = MFI_STAT_INVALID_CMD; in megasas_refire_mgmt_cmd()
4351 cmd_mfi->frame->hdr.cmd_status = MFI_STAT_INVALID_CMD; in megasas_refire_mgmt_cmd()
4360 if (return_ioctl && cmd_mfi->sync_cmd && in megasas_refire_mgmt_cmd()
4361 cmd_mfi->frame->hdr.cmd != MFI_CMD_ABORT) { in megasas_refire_mgmt_cmd()
4364 __func__, __LINE__, cmd_mfi->frame->hdr.cmd, in megasas_refire_mgmt_cmd()
4365 le32_to_cpu(cmd_mfi->frame->dcmd.opcode)); in megasas_refire_mgmt_cmd()
4366 cmd_mfi->cmd_status_drv = DCMD_BUSY; in megasas_refire_mgmt_cmd()
4380 megasas_return_cmd(instance, cmd_mfi); in megasas_refire_mgmt_cmd()
4383 megasas_complete_cmd(instance, cmd_mfi, DID_OK); in megasas_refire_mgmt_cmd()
4400 struct megasas_cmd *cmd_mfi; in megasas_return_polled_cmds() local
4406 cmd_mfi = instance->cmd_list[cmd_fusion->sync_cmd_idx]; in megasas_return_polled_cmds()
4408 if (cmd_mfi->flags & DRV_DCMD_POLLED_MODE) { in megasas_return_polled_cmds()
4412 __func__, __LINE__, cmd_mfi->frame->hdr.cmd, in megasas_return_polled_cmds()
4413 le32_to_cpu(cmd_mfi->frame->dcmd.opcode)); in megasas_return_polled_cmds()
4414 cmd_mfi->flags &= ~DRV_DCMD_POLLED_MODE; in megasas_return_polled_cmds()
4415 megasas_return_cmd(instance, cmd_mfi); in megasas_return_polled_cmds()
4532 struct megasas_cmd *cmd_mfi; in megasas_issue_tm() local
4542 cmd_mfi = megasas_get_cmd(instance); in megasas_issue_tm()
4544 if (!cmd_mfi) { in megasas_issue_tm()
4551 instance->max_scsi_cmds + cmd_mfi->index); in megasas_issue_tm()
4554 cmd_mfi->context.smid = cmd_fusion->index; in megasas_issue_tm()
4612 megasas_return_cmd(instance, cmd_mfi); in megasas_issue_tm()