Lines Matching refs:r1_cmd

3128 			    struct megasas_cmd_fusion *r1_cmd)  in megasas_prepare_secondRaid1_IO()  argument
3135 memcpy(r1_cmd->io_request, cmd->io_request, in megasas_prepare_secondRaid1_IO()
3137 memcpy(&r1_cmd->io_request->SGL, &cmd->io_request->SGL, in megasas_prepare_secondRaid1_IO()
3140 r1_cmd->io_request->SenseBufferLowAddress = in megasas_prepare_secondRaid1_IO()
3141 cpu_to_le32(lower_32_bits(r1_cmd->sense_phys_addr)); in megasas_prepare_secondRaid1_IO()
3142 r1_cmd->scmd = cmd->scmd; in megasas_prepare_secondRaid1_IO()
3144 (r1_cmd->index - 1)); in megasas_prepare_secondRaid1_IO()
3146 r1_cmd->request_desc = req_desc2; in megasas_prepare_secondRaid1_IO()
3147 req_desc2->SCSIIO.SMID = cpu_to_le16(r1_cmd->index); in megasas_prepare_secondRaid1_IO()
3149 r1_cmd->request_desc->SCSIIO.DevHandle = cmd->r1_alt_dev_handle; in megasas_prepare_secondRaid1_IO()
3150 r1_cmd->io_request->DevHandle = cmd->r1_alt_dev_handle; in megasas_prepare_secondRaid1_IO()
3151 r1_cmd->r1_alt_dev_handle = cmd->io_request->DevHandle; in megasas_prepare_secondRaid1_IO()
3153 cpu_to_le16(r1_cmd->index); in megasas_prepare_secondRaid1_IO()
3154 r1_cmd->io_request->RaidContext.raid_context_g35.smid.peer_smid = in megasas_prepare_secondRaid1_IO()
3157 r1_cmd->request_desc->SCSIIO.MSIxIndex = in megasas_prepare_secondRaid1_IO()
3160 r1_cmd->io_request->RaidContext.raid_context_g35.span_arm = in megasas_prepare_secondRaid1_IO()
3174 struct megasas_cmd_fusion *cmd, *r1_cmd = NULL; in megasas_build_and_issue_cmd_fusion() local
3235 r1_cmd = megasas_get_cmd_fusion(instance, in megasas_build_and_issue_cmd_fusion()
3237 megasas_prepare_secondRaid1_IO(instance, cmd, r1_cmd); in megasas_build_and_issue_cmd_fusion()
3247 if (r1_cmd) in megasas_build_and_issue_cmd_fusion()
3248 megasas_fire_cmd_fusion(instance, r1_cmd->request_desc); in megasas_build_and_issue_cmd_fusion()
3269 struct megasas_cmd_fusion *r1_cmd = NULL; in megasas_complete_r1_command() local
3277 r1_cmd = fusion->cmd_list[peer_smid - 1]; in megasas_complete_r1_command()
3287 if (r1_cmd->cmd_completed) { in megasas_complete_r1_command()
3288 rctx_g35 = &r1_cmd->io_request->RaidContext.raid_context_g35; in megasas_complete_r1_command()
3292 data_length = r1_cmd->io_request->DataLength; in megasas_complete_r1_command()
3293 sense = r1_cmd->sense; in megasas_complete_r1_command()
3296 megasas_return_cmd_fusion(instance, r1_cmd); in megasas_complete_r1_command()
4500 struct megasas_cmd_fusion *cmd_fusion, *r1_cmd; in megasas_reset_fusion() local
4582 r1_cmd = fusion->cmd_list[i + instance->max_fw_cmds]; in megasas_reset_fusion()
4583 megasas_return_cmd_fusion(instance, r1_cmd); in megasas_reset_fusion()