Lines Matching refs:r1_cmd
3328 struct megasas_cmd_fusion *r1_cmd) in megasas_prepare_secondRaid1_IO() argument
3335 memcpy(r1_cmd->io_request, cmd->io_request, in megasas_prepare_secondRaid1_IO()
3337 memcpy(&r1_cmd->io_request->SGL, &cmd->io_request->SGL, in megasas_prepare_secondRaid1_IO()
3340 r1_cmd->io_request->SenseBufferLowAddress = in megasas_prepare_secondRaid1_IO()
3341 cpu_to_le32(lower_32_bits(r1_cmd->sense_phys_addr)); in megasas_prepare_secondRaid1_IO()
3342 r1_cmd->scmd = cmd->scmd; in megasas_prepare_secondRaid1_IO()
3344 (r1_cmd->index - 1)); in megasas_prepare_secondRaid1_IO()
3346 r1_cmd->request_desc = req_desc2; in megasas_prepare_secondRaid1_IO()
3347 req_desc2->SCSIIO.SMID = cpu_to_le16(r1_cmd->index); in megasas_prepare_secondRaid1_IO()
3349 r1_cmd->request_desc->SCSIIO.DevHandle = cmd->r1_alt_dev_handle; in megasas_prepare_secondRaid1_IO()
3350 r1_cmd->io_request->DevHandle = cmd->r1_alt_dev_handle; in megasas_prepare_secondRaid1_IO()
3351 r1_cmd->r1_alt_dev_handle = cmd->io_request->DevHandle; in megasas_prepare_secondRaid1_IO()
3353 cpu_to_le16(r1_cmd->index); in megasas_prepare_secondRaid1_IO()
3354 r1_cmd->io_request->RaidContext.raid_context_g35.flow_specific.peer_smid = in megasas_prepare_secondRaid1_IO()
3357 r1_cmd->request_desc->SCSIIO.MSIxIndex = in megasas_prepare_secondRaid1_IO()
3360 r1_cmd->io_request->RaidContext.raid_context_g35.span_arm = in megasas_prepare_secondRaid1_IO()
3374 struct megasas_cmd_fusion *cmd, *r1_cmd = NULL; in megasas_build_and_issue_cmd_fusion() local
3432 r1_cmd = megasas_get_cmd_fusion(instance, in megasas_build_and_issue_cmd_fusion()
3434 megasas_prepare_secondRaid1_IO(instance, cmd, r1_cmd); in megasas_build_and_issue_cmd_fusion()
3444 if (r1_cmd) in megasas_build_and_issue_cmd_fusion()
3445 megasas_fire_cmd_fusion(instance, r1_cmd->request_desc); in megasas_build_and_issue_cmd_fusion()
3466 struct megasas_cmd_fusion *r1_cmd = NULL; in megasas_complete_r1_command() local
3474 r1_cmd = fusion->cmd_list[peer_smid - 1]; in megasas_complete_r1_command()
3484 if (r1_cmd->cmd_completed) { in megasas_complete_r1_command()
3485 rctx_g35 = &r1_cmd->io_request->RaidContext.raid_context_g35; in megasas_complete_r1_command()
3489 data_length = r1_cmd->io_request->DataLength; in megasas_complete_r1_command()
3490 sense = r1_cmd->sense; in megasas_complete_r1_command()
3493 megasas_return_cmd_fusion(instance, r1_cmd); in megasas_complete_r1_command()
4787 struct megasas_cmd_fusion *cmd_fusion, *r1_cmd; in megasas_reset_fusion() local
4871 r1_cmd = fusion->cmd_list[i + instance->max_fw_cmds]; in megasas_reset_fusion()
4872 megasas_return_cmd_fusion(instance, r1_cmd); in megasas_reset_fusion()